@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 void setSnapshotCopyGrantName(String snapshotCopyGrantName)
The name of the snapshot copy grant.
snapshotCopyGrantName
- The name of the snapshot copy grant.public String getSnapshotCopyGrantName()
The name of the snapshot copy grant.
public SnapshotCopyGrant withSnapshotCopyGrantName(String snapshotCopyGrantName)
The name of the snapshot copy grant.
snapshotCopyGrantName
- The name of the snapshot copy grant.public void setKmsKeyId(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 String getKmsKeyId()
The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.
public SnapshotCopyGrant withKmsKeyId(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 void setTags(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(Collection<Tag> tags)
A list of tag instances.
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.