Class CreateSnapshotCopyGrantRequest
- All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable
The result of the CreateSnapshotCopyGrant action.
- See Also:
-
Field Summary
Fields inherited from class AmazonWebServiceRequest
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanThe unique identifier of the customer master key (CMK) to which to grant Amazon Redshift permission.The name of the snapshot copy grant.getTags()A list of tag instances.inthashCode()voidsetKmsKeyId(String kmsKeyId) The unique identifier of the customer master key (CMK) to which to grant Amazon Redshift permission.voidsetSnapshotCopyGrantName(String snapshotCopyGrantName) The name of the snapshot copy grant.voidsetTags(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) to which to grant Amazon Redshift 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.Methods inherited from class AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
CreateSnapshotCopyGrantRequest
public CreateSnapshotCopyGrantRequest()
-
-
Method Details
-
setSnapshotCopyGrantName
The name of the snapshot copy grant. This name must be unique in the region for the AWS account.
Constraints:
- Must contain from 1 to 63 alphanumeric characters or hyphens.
- Alphabetic characters must be lowercase.
- First character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
- Must be unique for all clusters within an AWS account.
- Parameters:
snapshotCopyGrantName- The name of the snapshot copy grant. This name must be unique in the region for the AWS account.Constraints:
- Must contain from 1 to 63 alphanumeric characters or hyphens.
- Alphabetic characters must be lowercase.
- First character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
- Must be unique for all clusters within an AWS account.
-
getSnapshotCopyGrantName
The name of the snapshot copy grant. This name must be unique in the region for the AWS account.
Constraints:
- Must contain from 1 to 63 alphanumeric characters or hyphens.
- Alphabetic characters must be lowercase.
- First character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
- Must be unique for all clusters within an AWS account.
- Returns:
- The name of the snapshot copy grant. This name must be unique in
the region for the AWS account.
Constraints:
- Must contain from 1 to 63 alphanumeric characters or hyphens.
- Alphabetic characters must be lowercase.
- First character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
- Must be unique for all clusters within an AWS account.
-
withSnapshotCopyGrantName
The name of the snapshot copy grant. This name must be unique in the region for the AWS account.
Constraints:
- Must contain from 1 to 63 alphanumeric characters or hyphens.
- Alphabetic characters must be lowercase.
- First character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
- Must be unique for all clusters within an AWS account.
- Parameters:
snapshotCopyGrantName- The name of the snapshot copy grant. This name must be unique in the region for the AWS account.Constraints:
- Must contain from 1 to 63 alphanumeric characters or hyphens.
- Alphabetic characters must be lowercase.
- First character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
- Must be unique for all clusters within an AWS account.
- 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) to which to grant Amazon Redshift permission. If no key is specified, the default key is used.
- Parameters:
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.
-
getKmsKeyId
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.
- Returns:
- 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.
-
withKmsKeyId
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
-
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
-
equals
-
hashCode
-
clone
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
-