public class EncryptionKey extends Object implements Serializable, Cloneable
Represents information about the AWS Key Management Service (AWS KMS) key used to encrypt data in the artifact store.
Constructor and Description |
---|
EncryptionKey() |
Modifier and Type | Method and Description |
---|---|
EncryptionKey |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The ID of the AWS KMS key.
|
String |
getType()
The type of AWS KMS key, such as a customer master key.
|
int |
hashCode() |
void |
setId(String id)
The ID of the AWS KMS key.
|
void |
setType(EncryptionKeyType type)
The type of AWS KMS key, such as a customer master key.
|
void |
setType(String type)
The type of AWS KMS key, such as a customer master key.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EncryptionKey |
withId(String id)
The ID of the AWS KMS key.
|
EncryptionKey |
withType(EncryptionKeyType type)
The type of AWS KMS key, such as a customer master key.
|
EncryptionKey |
withType(String type)
The type of AWS KMS key, such as a customer master key.
|
public void setId(String id)
The ID of the AWS KMS key.
id
- The ID of the AWS KMS key.public String getId()
The ID of the AWS KMS key.
public EncryptionKey withId(String id)
The ID of the AWS KMS key.
id
- The ID of the AWS KMS key.public void setType(String type)
The type of AWS KMS key, such as a customer master key.
type
- The type of AWS KMS key, such as a customer master key.EncryptionKeyType
public String getType()
The type of AWS KMS key, such as a customer master key.
EncryptionKeyType
public EncryptionKey withType(String type)
The type of AWS KMS key, such as a customer master key.
type
- The type of AWS KMS key, such as a customer master key.EncryptionKeyType
public void setType(EncryptionKeyType type)
The type of AWS KMS key, such as a customer master key.
type
- The type of AWS KMS key, such as a customer master key.EncryptionKeyType
public EncryptionKey withType(EncryptionKeyType type)
The type of AWS KMS key, such as a customer master key.
type
- The type of AWS KMS key, such as a customer master key.EncryptionKeyType
public String toString()
toString
in class Object
Object.toString()
public EncryptionKey clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.