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 EncryptionKeyclone()booleanequals(Object obj)StringgetId()The ID used to identify the key.StringgetType()The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.inthashCode()voidsetId(String id)The ID used to identify the key.voidsetType(EncryptionKeyType type)The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.voidsetType(String type)The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.StringtoString()Returns a string representation of this object; useful for testing and debugging.EncryptionKeywithId(String id)The ID used to identify the key.EncryptionKeywithType(EncryptionKeyType type)The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.EncryptionKeywithType(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public EncryptionKey clone()
-
-