@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSnapshotCopyGrantRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The result of the CreateSnapshotCopyGrant
action.
NOOP
Constructor and Description |
---|
CreateSnapshotCopyGrantRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSnapshotCopyGrantRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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.
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.
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.
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.
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.
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.
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.
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 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.
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.
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)
A list of tag instances.
tags
- A list of tag instances.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)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of tag instances.public CreateSnapshotCopyGrantRequest withTags(Collection<Tag> tags)
A list of tag instances.
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 © 2013 Amazon Web Services, Inc. All Rights Reserved.