Interface ModifyClusterSnapshotRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ModifyClusterSnapshotRequest.Builder,,ModifyClusterSnapshotRequest> RedshiftRequest.Builder,SdkBuilder<ModifyClusterSnapshotRequest.Builder,,ModifyClusterSnapshotRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ModifyClusterSnapshotRequest
@Mutable
@NotThreadSafe
public static interface ModifyClusterSnapshotRequest.Builder
extends RedshiftRequest.Builder, SdkPojo, CopyableBuilder<ModifyClusterSnapshotRequest.Builder,ModifyClusterSnapshotRequest>
-
Method Summary
Modifier and TypeMethodDescriptionA Boolean option to override an exception if the retention period has already passed.manualSnapshotRetentionPeriod(Integer manualSnapshotRetentionPeriod) The number of days that a manual snapshot is retained.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.snapshotIdentifier(String snapshotIdentifier) The identifier of the snapshot whose setting you want to modify.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.redshift.model.RedshiftRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
snapshotIdentifier
The identifier of the snapshot whose setting you want to modify.
- Parameters:
snapshotIdentifier- The identifier of the snapshot whose setting you want to modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
manualSnapshotRetentionPeriod
ModifyClusterSnapshotRequest.Builder manualSnapshotRetentionPeriod(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
force
A Boolean option to override an exception if the retention period has already passed.
- Parameters:
force- A Boolean option to override an exception if the retention period has already passed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ModifyClusterSnapshotRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ModifyClusterSnapshotRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-