Interface ModifyClusterSnapshotRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ModifyClusterSnapshotRequest.Builder,
,ModifyClusterSnapshotRequest> RedshiftRequest.Builder
,SdkBuilder<ModifyClusterSnapshotRequest.Builder,
,ModifyClusterSnapshotRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ModifyClusterSnapshotRequest
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
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.redshift.model.RedshiftRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-