@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EncryptionKey extends Object implements Serializable, Cloneable, StructuredPojo
Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key.
Constructor and Description |
---|
EncryptionKey() |
Modifier and Type | Method and Description |
---|---|
EncryptionKey |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The ID used to identify the key.
|
String |
getType()
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
The ID used to identify the key.
|
void |
setType(EncryptionKeyType type)
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.
|
void |
setType(String type)
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
EncryptionKey |
withId(String id)
The ID used to identify the key.
|
EncryptionKey |
withType(EncryptionKeyType type)
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.
|
EncryptionKey |
withType(String type)
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.
|
public void setId(String id)
The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.
id
- The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.public String getId()
The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.
public EncryptionKey withId(String id)
The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.
id
- The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.public void setType(String type)
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.
type
- The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating
a pipeline, the value must be set to 'KMS'.EncryptionKeyType
public String getType()
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.
EncryptionKeyType
public EncryptionKey withType(String type)
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.
type
- The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating
a pipeline, the value must be set to 'KMS'.EncryptionKeyType
public void setType(EncryptionKeyType type)
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.
type
- The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating
a pipeline, the value must be set to 'KMS'.EncryptionKeyType
public EncryptionKey withType(EncryptionKeyType type)
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.
type
- The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating
a pipeline, the value must be set to 'KMS'.EncryptionKeyType
public String toString()
toString
in class Object
Object.toString()
public EncryptionKey clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.