Class ModifyClusterSnapshotRequest
- 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.ModifyClusterSnapshotRequest
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<ModifyClusterSnapshotRequest.Builder,ModifyClusterSnapshotRequest>
@Generated("software.amazon.awssdk:codegen") public final class ModifyClusterSnapshotRequest extends RedshiftRequest implements ToCopyableBuilder<ModifyClusterSnapshotRequest.Builder,ModifyClusterSnapshotRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ModifyClusterSnapshotRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModifyClusterSnapshotRequest.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
Boolean
force()
A Boolean option to override an exception if the retention period has already passed.<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 ModifyClusterSnapshotRequest.Builder>
serializableBuilderClass()
String
snapshotIdentifier()
The identifier of the snapshot whose setting you want to modify.ModifyClusterSnapshotRequest.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
-
snapshotIdentifier
public final String snapshotIdentifier()
The identifier of the snapshot whose setting you want to modify.
- Returns:
- The identifier of the snapshot whose setting you want to modify.
-
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.
If the manual snapshot falls outside of the new retention period, you can specify the force option to immediately delete the snapshot.
The value must be either -1 or an integer between 1 and 3,653.
- Returns:
- The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is
retained indefinitely.
If the manual snapshot falls outside of the new retention period, you can specify the force option to immediately delete the snapshot.
The value must be either -1 or an integer between 1 and 3,653.
-
force
public final Boolean force()
A Boolean option to override an exception if the retention period has already passed.
- Returns:
- A Boolean option to override an exception if the retention period has already passed.
-
toBuilder
public ModifyClusterSnapshotRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ModifyClusterSnapshotRequest.Builder,ModifyClusterSnapshotRequest>
- Specified by:
toBuilder
in classRedshiftRequest
-
builder
public static ModifyClusterSnapshotRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends ModifyClusterSnapshotRequest.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
-
-