Class CreateSnapshotCopyGrantRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.redshift.model.CreateSnapshotCopyGrantRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class CreateSnapshotCopyGrantRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The result of the
CreateSnapshotCopyGrant
action.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateSnapshotCopyGrantRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(Tag... tags)
A list of tag instances.CreateSnapshotCopyGrantRequest
withTags(Collection<Tag> tags)
A list of tag instances.-
Methods inherited from class com.amazonaws.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
-
-
-
-
Method Detail
-
setSnapshotCopyGrantName
public void setSnapshotCopyGrantName(String 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.
- 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
public String 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
public CreateSnapshotCopyGrantRequest withSnapshotCopyGrantName(String 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.
- 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
public void setKmsKeyId(String 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.
- 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
public String 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
public CreateSnapshotCopyGrantRequest withKmsKeyId(String 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.
- 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.
-
setTags
public void setTags(Collection<Tag> tags)
A list of tag instances.
- Parameters:
tags
- A list of tag instances.
-
withTags
public CreateSnapshotCopyGrantRequest 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 CreateSnapshotCopyGrantRequest 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 CreateSnapshotCopyGrantRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-