Class EncryptionKey
- java.lang.Object
-
- com.amazonaws.services.codepipeline.model.EncryptionKey
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class EncryptionKey extends Object implements Serializable, Cloneable
Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EncryptionKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
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.
-
-
-
Method Detail
-
setId
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.
- Parameters:
id
- The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.
-
getId
public String getId()
The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.
- Returns:
- The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.
-
withId
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.
- Parameters:
id
- The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
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'.
- Parameters:
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'.- See Also:
EncryptionKeyType
-
getType
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'.
- Returns:
- 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'.
- See Also:
EncryptionKeyType
-
withType
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'.
- Parameters:
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'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EncryptionKeyType
-
setType
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'.
- Parameters:
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'.- See Also:
EncryptionKeyType
-
withType
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'.
- Parameters:
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'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EncryptionKeyType
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public EncryptionKey clone()
-
-