Class ArtifactStore

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class ArtifactStore
    extends Object
    implements Serializable, Cloneable

    The Amazon S3 location where artifacts are stored for the pipeline. If this Amazon S3 bucket is created manually, it must meet the requirements for AWS CodePipeline. For more information, see the Concepts.

    See Also:
    Serialized Form
    • Constructor Detail

      • ArtifactStore

        public ArtifactStore()
    • Method Detail

      • setType

        public void setType​(String type)

        The type of the artifact store, such as S3.

        Parameters:
        type - The type of the artifact store, such as S3.
        See Also:
        ArtifactStoreType
      • getType

        public String getType()

        The type of the artifact store, such as S3.

        Returns:
        The type of the artifact store, such as S3.
        See Also:
        ArtifactStoreType
      • withType

        public ArtifactStore withType​(String type)

        The type of the artifact store, such as S3.

        Parameters:
        type - The type of the artifact store, such as S3.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ArtifactStoreType
      • setType

        public void setType​(ArtifactStoreType type)

        The type of the artifact store, such as S3.

        Parameters:
        type - The type of the artifact store, such as S3.
        See Also:
        ArtifactStoreType
      • withType

        public ArtifactStore withType​(ArtifactStoreType type)

        The type of the artifact store, such as S3.

        Parameters:
        type - The type of the artifact store, such as S3.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ArtifactStoreType
      • setLocation

        public void setLocation​(String location)

        The location for storing the artifacts for a pipeline, such as an S3 bucket or folder.

        Parameters:
        location - The location for storing the artifacts for a pipeline, such as an S3 bucket or folder.
      • getLocation

        public String getLocation()

        The location for storing the artifacts for a pipeline, such as an S3 bucket or folder.

        Returns:
        The location for storing the artifacts for a pipeline, such as an S3 bucket or folder.
      • withLocation

        public ArtifactStore withLocation​(String location)

        The location for storing the artifacts for a pipeline, such as an S3 bucket or folder.

        Parameters:
        location - The location for storing the artifacts for a pipeline, such as an S3 bucket or folder.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEncryptionKey

        public void setEncryptionKey​(EncryptionKey encryptionKey)

        The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If this is undefined, the default key for Amazon S3 is used.

        Parameters:
        encryptionKey - The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If this is undefined, the default key for Amazon S3 is used.
      • getEncryptionKey

        public EncryptionKey getEncryptionKey()

        The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If this is undefined, the default key for Amazon S3 is used.

        Returns:
        The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If this is undefined, the default key for Amazon S3 is used.
      • withEncryptionKey

        public ArtifactStore withEncryptionKey​(EncryptionKey encryptionKey)

        The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If this is undefined, the default key for Amazon S3 is used.

        Parameters:
        encryptionKey - The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If this is undefined, the default key for Amazon S3 is used.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object