@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 AWS 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 AWS Region after they are copied from the
source AWS 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 AWS 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 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 String destinationRegion()
The destination AWS Region that you want to copy snapshots to.
Constraints: Must be the name of a valid AWS Region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
Constraints: Must be the name of a valid AWS Region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
public 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 String snapshotCopyGrantName()
The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.
public Integer manualSnapshotRetentionPeriod()
The number of days to retain newly copied snapshots in the destination AWS Region after they are copied from the source AWS 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 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.