@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 encrypted symmetric key 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 encrypted symmetric key 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.
|
CreateSnapshotCopyGrantRequest |
withKmsKeyId(String kmsKeyId)
The unique identifier of the encrypted symmetric key 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 Amazon Web Services 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 Amazon Web Services account.
snapshotCopyGrantName
- The name of the snapshot copy grant. This name must be unique in the region for the Amazon Web Services
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 Amazon Web Services account.
public String getSnapshotCopyGrantName()
The name of the snapshot copy grant. This name must be unique in the region for the Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services account.
public CreateSnapshotCopyGrantRequest withSnapshotCopyGrantName(String snapshotCopyGrantName)
The name of the snapshot copy grant. This name must be unique in the region for the Amazon Web Services 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 Amazon Web Services account.
snapshotCopyGrantName
- The name of the snapshot copy grant. This name must be unique in the region for the Amazon Web Services
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 Amazon Web Services account.
public void setKmsKeyId(String kmsKeyId)
The unique identifier of the encrypted symmetric key to which to grant Amazon Redshift permission. If no key is specified, the default key is used.
kmsKeyId
- The unique identifier of the encrypted symmetric key 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 encrypted symmetric key 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 encrypted symmetric key to which to grant Amazon Redshift permission. If no key is specified, the default key is used.
kmsKeyId
- The unique identifier of the encrypted symmetric key 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()