@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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
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() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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 boolean hasTags()
public List<Tag> tags()
A list of tag instances.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public CreateSnapshotCopyGrantRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateSnapshotCopyGrantRequest.Builder,CreateSnapshotCopyGrantRequest>toBuilder in class RedshiftRequestpublic static CreateSnapshotCopyGrantRequest.Builder builder()
public static Class<? extends CreateSnapshotCopyGrantRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.