Interface BatchModifyClusterSnapshotsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<BatchModifyClusterSnapshotsRequest.Builder,
,BatchModifyClusterSnapshotsRequest> RedshiftRequest.Builder
,SdkBuilder<BatchModifyClusterSnapshotsRequest.Builder,
,BatchModifyClusterSnapshotsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
BatchModifyClusterSnapshotsRequest
-
Method Summary
Modifier and TypeMethodDescriptionA boolean value indicating whether to override an exception if the retention period has 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.snapshotIdentifierList
(String... snapshotIdentifierList) A list of snapshot identifiers you want to modify.snapshotIdentifierList
(Collection<String> snapshotIdentifierList) A list of snapshot identifiers 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, sdkFieldNameToField, sdkFields
-
Method Details
-
snapshotIdentifierList
BatchModifyClusterSnapshotsRequest.Builder snapshotIdentifierList(Collection<String> snapshotIdentifierList) A list of snapshot identifiers you want to modify.
- Parameters:
snapshotIdentifierList
- A list of snapshot identifiers you want to modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotIdentifierList
A list of snapshot identifiers you want to modify.
- Parameters:
snapshotIdentifierList
- A list of snapshot identifiers you want to modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
manualSnapshotRetentionPeriod
BatchModifyClusterSnapshotsRequest.Builder manualSnapshotRetentionPeriod(Integer manualSnapshotRetentionPeriod) The number of days that a manual snapshot is retained. If you specify the value -1, the manual snapshot is retained indefinitely.
The number must be either -1 or an integer between 1 and 3,653.
If you decrease the manual snapshot retention period from its current value, existing manual snapshots that fall outside of the new retention period will return an error. If you want to suppress the errors and delete the snapshots, use the force option.
- Parameters:
manualSnapshotRetentionPeriod
- The number of days that a manual snapshot is retained. If you specify the value -1, the manual snapshot is retained indefinitely.The number must be either -1 or an integer between 1 and 3,653.
If you decrease the manual snapshot retention period from its current value, existing manual snapshots that fall outside of the new retention period will return an error. If you want to suppress the errors and delete the snapshots, use the force option.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
force
A boolean value indicating whether to override an exception if the retention period has passed.
- Parameters:
force
- A boolean value indicating whether to override an exception if the retention period has passed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
BatchModifyClusterSnapshotsRequest.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
BatchModifyClusterSnapshotsRequest.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.
-