Class SnapshotCopyGrant
- java.lang.Object
-
- com.amazonaws.services.redshift.model.SnapshotCopyGrant
-
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnapshotCopyGrant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(Tag... tags)
A list of tag instances.SnapshotCopyGrant
withTags(Collection<Tag> tags)
A list of tag instances.
-
-
-
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.
-
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)
orwithTags(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SnapshotCopyGrant clone()
-
-