Class SnapshotCopyGrant
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.The name of the snapshot copy grant.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.toString()
Returns a string representation of this object; useful for testing and debugging.withKmsKeyId
(String kmsKeyId) The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.withSnapshotCopyGrantName
(String snapshotCopyGrantName) The name of the snapshot copy grant.A list of tag instances.withTags
(Collection<Tag> tags) A list of tag instances.
-
Constructor Details
-
SnapshotCopyGrant
public SnapshotCopyGrant()
-
-
Method Details
-
setSnapshotCopyGrantName
The name of the snapshot copy grant.
- Parameters:
snapshotCopyGrantName
- The name of the snapshot copy grant.
-
getSnapshotCopyGrantName
The name of the snapshot copy grant.
- Returns:
- The name of the snapshot copy grant.
-
withSnapshotCopyGrantName
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
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
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
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
A list of tag instances.
- Returns:
- A list of tag instances.
-
setTags
A list of tag instances.
- Parameters:
tags
- A list of tag instances.
-
withTags
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-