@Generated(value="software.amazon.awssdk:codegen") public final class CreateSnapshotCopyGrantRequest extends RedshiftRequest implements ToCopyableBuilder<CreateSnapshotCopyGrantRequest.Builder,CreateSnapshotCopyGrantRequest>
The result of the CreateSnapshotCopyGrant
action.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateSnapshotCopyGrantRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateSnapshotCopyGrantRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
kmsKeyId()
The unique identifier of the customer master key (CMK) to which to grant Amazon Redshift permission.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateSnapshotCopyGrantRequest.Builder> |
serializableBuilderClass() |
String |
snapshotCopyGrantName()
The name of the snapshot copy grant.
|
List<Tag> |
tags()
A list of tag instances.
|
CreateSnapshotCopyGrantRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public 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.
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 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 List<Tag> tags()
A list of tag instances.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public CreateSnapshotCopyGrantRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateSnapshotCopyGrantRequest.Builder,CreateSnapshotCopyGrantRequest>
toBuilder
in class RedshiftRequest
public static CreateSnapshotCopyGrantRequest.Builder builder()
public static Class<? extends CreateSnapshotCopyGrantRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.