Class CopyClusterSnapshotRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.redshift.model.RedshiftRequest
-
- software.amazon.awssdk.services.redshift.model.CopyClusterSnapshotRequest
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<CopyClusterSnapshotRequest.Builder,CopyClusterSnapshotRequest>
@Generated("software.amazon.awssdk:codegen") public final class CopyClusterSnapshotRequest extends RedshiftRequest implements ToCopyableBuilder<CopyClusterSnapshotRequest.Builder,CopyClusterSnapshotRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CopyClusterSnapshotRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CopyClusterSnapshotRequest.Builder
builder()
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 that a manual snapshot is retained.List<SdkField<?>>
sdkFields()
static Class<? extends CopyClusterSnapshotRequest.Builder>
serializableBuilderClass()
String
sourceSnapshotClusterIdentifier()
The identifier of the cluster the source snapshot was created from.String
sourceSnapshotIdentifier()
The identifier for the source snapshot.String
targetSnapshotIdentifier()
The identifier given to the new manual snapshot.CopyClusterSnapshotRequest.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
sourceSnapshotIdentifier
public final String sourceSnapshotIdentifier()
The identifier for the source snapshot.
Constraints:
-
Must be the identifier for a valid automated snapshot whose state is
available
.
- Returns:
- The identifier for the source snapshot.
Constraints:
-
Must be the identifier for a valid automated snapshot whose state is
available
.
-
-
-
sourceSnapshotClusterIdentifier
public final String sourceSnapshotClusterIdentifier()
The identifier of the cluster the source snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.
Constraints:
-
Must be the identifier for a valid cluster.
- Returns:
- The identifier of the cluster the source snapshot was created from. This parameter is required if your
IAM user has a policy containing a snapshot resource element that specifies anything other than * for the
cluster name.
Constraints:
-
Must be the identifier for a valid cluster.
-
-
-
targetSnapshotIdentifier
public final String targetSnapshotIdentifier()
The identifier given to the new manual snapshot.
Constraints:
-
Cannot be null, empty, or blank.
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
Must be unique for the Amazon Web Services account that is making the request.
- Returns:
- The identifier given to the new manual snapshot.
Constraints:
-
Cannot be null, empty, or blank.
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
Must be unique for the Amazon Web Services account that is making the request.
-
-
-
manualSnapshotRetentionPeriod
public final Integer manualSnapshotRetentionPeriod()
The number of days that a manual snapshot is retained. 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 default value is -1.
- Returns:
- The number of days that a manual snapshot is retained. 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 default value is -1.
-
toBuilder
public CopyClusterSnapshotRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<CopyClusterSnapshotRequest.Builder,CopyClusterSnapshotRequest>
- Specified by:
toBuilder
in classRedshiftRequest
-
builder
public static CopyClusterSnapshotRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CopyClusterSnapshotRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkRequest
-
-