Class SnapshotCopyGrant

    • Constructor Detail

      • SnapshotCopyGrant

        public SnapshotCopyGrant()
    • Method Detail

      • setSnapshotCopyGrantName

        public void setSnapshotCopyGrantName​(String snapshotCopyGrantName)

        The name of the snapshot copy grant.

        Parameters:
        snapshotCopyGrantName - The name of the snapshot copy grant.
      • getSnapshotCopyGrantName

        public String getSnapshotCopyGrantName()

        The name of the snapshot copy grant.

        Returns:
        The name of the snapshot copy grant.
      • withSnapshotCopyGrantName

        public SnapshotCopyGrant withSnapshotCopyGrantName​(String snapshotCopyGrantName)

        The name of the snapshot copy grant.

        Parameters:
        snapshotCopyGrantName - The name of the snapshot copy grant.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setKmsKeyId

        public void setKmsKeyId​(String kmsKeyId)

        The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.

        Parameters:
        kmsKeyId - The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.
      • getKmsKeyId

        public String getKmsKeyId()

        The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.

        Returns:
        The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.
      • withKmsKeyId

        public SnapshotCopyGrant withKmsKeyId​(String kmsKeyId)

        The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.

        Parameters:
        kmsKeyId - The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getTags

        public List<Tag> getTags()

        A list of tag instances.

        Returns:
        A list of tag instances.
      • setTags

        public void setTags​(Collection<Tag> tags)

        A list of tag instances.

        Parameters:
        tags - A list of tag instances.
      • withTags

        public SnapshotCopyGrant withTags​(Tag... tags)

        A list of tag instances.

        NOTE: This method appends the values to the existing list (if any). Use setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing values.

        Parameters:
        tags - A list of tag instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withTags

        public SnapshotCopyGrant withTags​(Collection<Tag> tags)

        A list of tag instances.

        Parameters:
        tags - A list of tag instances.
        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