public class EncryptionKey
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
id
The ID used to identify the key.
|
private java.lang.String |
type
The type of encryption key, such as an AWS Key Management Service (AWS
KMS) key.
|
Constructor and Description |
---|
EncryptionKey() |
Modifier and Type | Method and Description |
---|---|
EncryptionKey |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId()
The ID used to identify the key.
|
java.lang.String |
getType()
The type of encryption key, such as an AWS Key Management Service (AWS
KMS) key.
|
int |
hashCode() |
void |
setId(java.lang.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(java.lang.String type)
The type of encryption key, such as an AWS Key Management Service (AWS
KMS) key.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EncryptionKey |
withId(java.lang.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(java.lang.String type)
The type of encryption key, such as an AWS Key Management Service (AWS
KMS) key.
|
private java.lang.String id
The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.
private java.lang.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'.
public void setId(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public EncryptionKey clone()
clone
in class java.lang.Object