public class SnapshotCopyGrant
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The snapshot copy grant that grants Amazon Redshift permission to encrypt copied snapshots with the specified customer master key (CMK) from AWS KMS in the destination region.
For more information about managing snapshot copy grants, go to Amazon Redshift Database Encryption in the Amazon Redshift Cluster Management Guide.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
kmsKeyId
The unique identifier of the customer master key (CMK) in AWS KMS to
which Amazon Redshift is granted permission.
|
private java.lang.String |
snapshotCopyGrantName
The name of the snapshot copy grant.
|
private SdkInternalList<Tag> |
tags
A list of tag instances.
|
Constructor and Description |
---|
SnapshotCopyGrant() |
Modifier and Type | Method and Description |
---|---|
SnapshotCopyGrant |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKmsKeyId()
The unique identifier of the customer master key (CMK) in AWS KMS to
which Amazon Redshift is granted permission.
|
java.lang.String |
getSnapshotCopyGrantName()
The name of the snapshot copy grant.
|
java.util.List<Tag> |
getTags()
A list of tag instances.
|
int |
hashCode() |
void |
setKmsKeyId(java.lang.String kmsKeyId)
The unique identifier of the customer master key (CMK) in AWS KMS to
which Amazon Redshift is granted permission.
|
void |
setSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant.
|
void |
setTags(java.util.Collection<Tag> tags)
A list of tag instances.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SnapshotCopyGrant |
withKmsKeyId(java.lang.String kmsKeyId)
The unique identifier of the customer master key (CMK) in AWS KMS to
which Amazon Redshift is granted permission.
|
SnapshotCopyGrant |
withSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant.
|
SnapshotCopyGrant |
withTags(java.util.Collection<Tag> tags)
A list of tag instances.
|
SnapshotCopyGrant |
withTags(Tag... tags)
A list of tag instances.
|
private java.lang.String snapshotCopyGrantName
The name of the snapshot copy grant.
private java.lang.String kmsKeyId
The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.
private SdkInternalList<Tag> tags
A list of tag instances.
public void setSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant.
snapshotCopyGrantName
- The name of the snapshot copy grant.public java.lang.String getSnapshotCopyGrantName()
The name of the snapshot copy grant.
public SnapshotCopyGrant withSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant.
snapshotCopyGrantName
- The name of the snapshot copy grant.public void setKmsKeyId(java.lang.String kmsKeyId)
The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.
kmsKeyId
- The unique identifier of the customer master key (CMK) in AWS KMS
to which Amazon Redshift is granted permission.public java.lang.String getKmsKeyId()
The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.
public SnapshotCopyGrant withKmsKeyId(java.lang.String kmsKeyId)
The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.
kmsKeyId
- The unique identifier of the customer master key (CMK) in AWS KMS
to which Amazon Redshift is granted permission.public java.util.List<Tag> getTags()
A list of tag instances.
public void setTags(java.util.Collection<Tag> tags)
A list of tag instances.
tags
- A list of tag instances.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.
tags
- A list of tag instances.public SnapshotCopyGrant withTags(java.util.Collection<Tag> tags)
A list of tag instances.
tags
- A list of tag instances.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SnapshotCopyGrant clone()
clone
in class java.lang.Object