public class CreateSnapshotCopyGrantRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
The result of the CreateSnapshotCopyGrant
action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
kmsKeyId
The unique identifier of the customer master key (CMK) to which to grant
Amazon Redshift permission.
|
private java.lang.String |
snapshotCopyGrantName
The name of the snapshot copy grant.
|
private SdkInternalList<Tag> |
tags
A list of tag instances.
|
NOOP
Constructor and Description |
---|
CreateSnapshotCopyGrantRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSnapshotCopyGrantRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKmsKeyId()
The unique identifier of the customer master key (CMK) to which to grant
Amazon Redshift permission.
|
java.lang.String |
getSnapshotCopyGrantName()
The name of the snapshot copy grant.
|
java.util.List<Tag> |
getTags()
A list of tag instances.
|
int |
hashCode() |
void |
setKmsKeyId(java.lang.String kmsKeyId)
The unique identifier of the customer master key (CMK) to which to grant
Amazon Redshift permission.
|
void |
setSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant.
|
void |
setTags(java.util.Collection<Tag> tags)
A list of tag instances.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateSnapshotCopyGrantRequest |
withKmsKeyId(java.lang.String kmsKeyId)
The unique identifier of the customer master key (CMK) to which to grant
Amazon Redshift permission.
|
CreateSnapshotCopyGrantRequest |
withSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant.
|
CreateSnapshotCopyGrantRequest |
withTags(java.util.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, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String snapshotCopyGrantName
The name of the snapshot copy grant. This name must be unique in the region for the AWS account.
Constraints:
private java.lang.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.
private SdkInternalList<Tag> tags
A list of tag instances.
public void setSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant. This name must be unique in the region for the AWS account.
Constraints:
snapshotCopyGrantName
- The name of the snapshot copy grant. This name must be unique in
the region for the AWS account.
Constraints:
public java.lang.String getSnapshotCopyGrantName()
The name of the snapshot copy grant. This name must be unique in the region for the AWS account.
Constraints:
Constraints:
public CreateSnapshotCopyGrantRequest withSnapshotCopyGrantName(java.lang.String snapshotCopyGrantName)
The name of the snapshot copy grant. This name must be unique in the region for the AWS account.
Constraints:
snapshotCopyGrantName
- The name of the snapshot copy grant. This name must be unique in
the region for the AWS account.
Constraints:
public void setKmsKeyId(java.lang.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 java.lang.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(java.lang.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 java.util.List<Tag> getTags()
A list of tag instances.
public void setTags(java.util.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(java.util.Collection<Tag> tags)
A list of tag instances.
tags
- A list of tag instances.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateSnapshotCopyGrantRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()