@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 Amazon Web Services Key Management Service (Key Management Service) 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 Amazon Web Services 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 Amazon Web Services KMS key.
|
void |
setType(String type)
The type of encryption key, such as an Amazon Web Services KMS key.
|
String |
toString()
Returns a string representation of this object.
|
EncryptionKey |
withId(String id)
The ID used to identify the key.
|
EncryptionKey |
withType(EncryptionKeyType type)
The type of encryption key, such as an Amazon Web Services KMS key.
|
EncryptionKey |
withType(String type)
The type of encryption key, such as an Amazon Web Services KMS key.
|
public void setId(String id)
The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.
Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).
id
- The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN,
or the alias ARN. Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).
public String getId()
The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.
Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).
Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).
public EncryptionKey withId(String id)
The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.
Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).
id
- The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN,
or the alias ARN. Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).
public void setType(String type)
The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
type
- The type of encryption key, such as an Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
type
- The type of encryption key, such as an Amazon Web Services 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 Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
type
- The type of encryption key, such as an Amazon Web Services 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 Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
type
- The type of encryption key, such as an Amazon Web Services 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.