public class CreateSnapshotCopyGrantRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateSnapshotCopyGrant operation
.
Creates a snapshot copy grant that permits Amazon Redshift to use a customer master key (CMK) from AWS Key Management Service (AWS KMS) to encrypt copied snapshots in a destination region.
For more information about managing snapshot copy grants, go to Amazon Redshift Database Encryption in the Amazon Redshift Cluster Management Guide .
NOOP
Constructor and Description |
---|
CreateSnapshotCopyGrantRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSnapshotCopyGrantRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getKmsKeyId()
The unique identifier of the customer master key (CMK) to which to
grant Amazon Redshift 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) to which to
grant Amazon Redshift 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.
|
CreateSnapshotCopyGrantRequest |
withKmsKeyId(String kmsKeyId)
The unique identifier of the customer master key (CMK) to which to
grant Amazon Redshift permission.
|
CreateSnapshotCopyGrantRequest |
withSnapshotCopyGrantName(String snapshotCopyGrantName)
The name of the snapshot copy grant.
|
CreateSnapshotCopyGrantRequest |
withTags(Collection<Tag> tags)
A list of tag instances.
|
CreateSnapshotCopyGrantRequest |
withTags(Tag... tags)
A list of tag instances.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getSnapshotCopyGrantName()
Constraints:
Constraints:
public void setSnapshotCopyGrantName(String snapshotCopyGrantName)
Constraints:
snapshotCopyGrantName
- The name of the snapshot copy grant. This name must be unique in the
region for the AWS account.
Constraints:
public CreateSnapshotCopyGrantRequest withSnapshotCopyGrantName(String snapshotCopyGrantName)
Constraints:
Returns a reference to this object so that method calls can be chained together.
snapshotCopyGrantName
- The name of the snapshot copy grant. This name must be unique in the
region for the AWS account.
Constraints:
public String getKmsKeyId()
public void setKmsKeyId(String kmsKeyId)
kmsKeyId
- The unique identifier of the customer master key (CMK) to which to
grant Amazon Redshift permission. If no key is specified, the default
key is used.public CreateSnapshotCopyGrantRequest 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) to which to
grant Amazon Redshift permission. If no key is specified, the default
key is used.public void setTags(Collection<Tag> tags)
tags
- A list of tag instances.public CreateSnapshotCopyGrantRequest 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 CreateSnapshotCopyGrantRequest 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 CreateSnapshotCopyGrantRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.