public class SnapshotCopyGrant extends Object implements Serializable, 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 .
Constructor and Description |
---|
SnapshotCopyGrant() |
Modifier and Type | Method and Description |
---|---|
SnapshotCopyGrant |
clone() |
boolean |
equals(Object obj) |
String |
getKmsKeyId()
The unique identifier of the customer master key (CMK) in AWS KMS to
which Amazon Redshift is granted permission.
|
String |
getSnapshotCopyGrantName()
The name of the snapshot copy grant.
|
List<Tag> |
getTags()
A list of tag instances.
|
int |
hashCode() |
void |
setKmsKeyId(String kmsKeyId)
The unique identifier of the customer master key (CMK) in AWS KMS to
which Amazon Redshift is granted permission.
|
void |
setSnapshotCopyGrantName(String snapshotCopyGrantName)
The name of the snapshot copy grant.
|
void |
setTags(Collection<Tag> tags)
A list of tag instances.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SnapshotCopyGrant |
withKmsKeyId(String kmsKeyId)
The unique identifier of the customer master key (CMK) in AWS KMS to
which Amazon Redshift is granted permission.
|
SnapshotCopyGrant |
withSnapshotCopyGrantName(String snapshotCopyGrantName)
The name of the snapshot copy grant.
|
SnapshotCopyGrant |
withTags(Collection<Tag> tags)
A list of tag instances.
|
SnapshotCopyGrant |
withTags(Tag... tags)
A list of tag instances.
|
public String getSnapshotCopyGrantName()
public void setSnapshotCopyGrantName(String snapshotCopyGrantName)
snapshotCopyGrantName
- The name of the snapshot copy grant.public SnapshotCopyGrant withSnapshotCopyGrantName(String snapshotCopyGrantName)
Returns a reference to this object so that method calls can be chained together.
snapshotCopyGrantName
- The name of the snapshot copy grant.public String getKmsKeyId()
public void setKmsKeyId(String kmsKeyId)
kmsKeyId
- The unique identifier of the customer master key (CMK) in AWS KMS to
which Amazon Redshift is granted permission.public SnapshotCopyGrant withKmsKeyId(String kmsKeyId)
Returns a reference to this object so that method calls can be chained together.
kmsKeyId
- The unique identifier of the customer master key (CMK) in AWS KMS to
which Amazon Redshift is granted permission.public void setTags(Collection<Tag> tags)
tags
- A list of tag instances.public SnapshotCopyGrant withTags(Tag... tags)
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.
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tag instances.public SnapshotCopyGrant withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tag instances.public String toString()
toString
in class Object
Object.toString()
public SnapshotCopyGrant clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.