Class CfnTable.SnapshotManagementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3tables.CfnTable.SnapshotManagementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.SnapshotManagementProperty>
- Enclosing interface:
CfnTable.SnapshotManagementProperty
@Stability(Stable)
public static final class CfnTable.SnapshotManagementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.SnapshotManagementProperty>
A builder for
CfnTable.SnapshotManagementProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maxSnapshotAgeHours
(Number maxSnapshotAgeHours) Sets the value ofCfnTable.SnapshotManagementProperty.getMaxSnapshotAgeHours()
minSnapshotsToKeep
(Number minSnapshotsToKeep) Sets the value ofCfnTable.SnapshotManagementProperty.getMinSnapshotsToKeep()
Sets the value ofCfnTable.SnapshotManagementProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxSnapshotAgeHours
@Stability(Stable) public CfnTable.SnapshotManagementProperty.Builder maxSnapshotAgeHours(Number maxSnapshotAgeHours) Sets the value ofCfnTable.SnapshotManagementProperty.getMaxSnapshotAgeHours()
- Parameters:
maxSnapshotAgeHours
- The maximum age of a snapshot before it can be expired.- Returns:
this
-
minSnapshotsToKeep
@Stability(Stable) public CfnTable.SnapshotManagementProperty.Builder minSnapshotsToKeep(Number minSnapshotsToKeep) Sets the value ofCfnTable.SnapshotManagementProperty.getMinSnapshotsToKeep()
- Parameters:
minSnapshotsToKeep
- The minimum number of snapshots to keep.- Returns:
this
-
status
Sets the value ofCfnTable.SnapshotManagementProperty.getStatus()
- Parameters:
status
- Indicates whether the SnapshotManagement maintenance action is enabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTable.SnapshotManagementProperty>
- Returns:
- a new instance of
CfnTable.SnapshotManagementProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-