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:
  • Constructor Details

    • EncryptionKey

      public EncryptionKey()
  • Method Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public EncryptionKey clone()
      Overrides:
      clone in class Object