@Generated(value="software.amazon.awssdk:codegen") public final class EnableSnapshotCopyRequest extends RedshiftRequest implements ToCopyableBuilder<EnableSnapshotCopyRequest.Builder,EnableSnapshotCopyRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
EnableSnapshotCopyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static EnableSnapshotCopyRequest.Builder |
builder() |
String |
clusterIdentifier()
The unique identifier of the source cluster to copy snapshots from.
|
String |
destinationRegion()
The destination Amazon Web Services Region that you want to copy snapshots to.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
manualSnapshotRetentionPeriod()
The number of days to retain newly copied snapshots in the destination Amazon Web Services Region after they are
copied from the source Amazon Web Services Region.
|
Integer |
retentionPeriod()
The number of days to retain automated snapshots in the destination region after they are copied from the source
region.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EnableSnapshotCopyRequest.Builder> |
serializableBuilderClass() |
String |
snapshotCopyGrantName()
The name of the snapshot copy grant to use when snapshots of an Amazon Web Services KMS-encrypted cluster are
copied to the destination region.
|
EnableSnapshotCopyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String clusterIdentifier()
The unique identifier of the source cluster to copy snapshots from.
Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.
Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.
public final String destinationRegion()
The destination Amazon Web Services Region that you want to copy snapshots to.
Constraints: Must be the name of a valid Amazon Web Services Region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
Constraints: Must be the name of a valid Amazon Web Services Region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
public final Integer retentionPeriod()
The number of days to retain automated snapshots in the destination region after they are copied from the source region.
Default: 7.
Constraints: Must be at least 1 and no more than 35.
Default: 7.
Constraints: Must be at least 1 and no more than 35.
public final String snapshotCopyGrantName()
The name of the snapshot copy grant to use when snapshots of an Amazon Web Services KMS-encrypted cluster are copied to the destination region.
public final Integer manualSnapshotRetentionPeriod()
The number of days to retain newly copied snapshots in the destination Amazon Web Services Region after they are copied from the source Amazon Web Services Region. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
The value must be either -1 or an integer between 1 and 3,653.
public EnableSnapshotCopyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EnableSnapshotCopyRequest.Builder,EnableSnapshotCopyRequest>toBuilder in class RedshiftRequestpublic static EnableSnapshotCopyRequest.Builder builder()
public static Class<? extends EnableSnapshotCopyRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.