Class SnapshotManagementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3tables.alpha.SnapshotManagementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SnapshotManagementProperty>
- Enclosing interface:
SnapshotManagementProperty
@Stability(Experimental)
public static final class SnapshotManagementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<SnapshotManagementProperty>
A builder for
SnapshotManagementProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maxSnapshotAgeHours
(Number maxSnapshotAgeHours) Sets the value ofSnapshotManagementProperty.getMaxSnapshotAgeHours()
minSnapshotsToKeep
(Number minSnapshotsToKeep) Sets the value ofSnapshotManagementProperty.getMinSnapshotsToKeep()
Sets the value ofSnapshotManagementProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxSnapshotAgeHours
@Stability(Experimental) public SnapshotManagementProperty.Builder maxSnapshotAgeHours(Number maxSnapshotAgeHours) Sets the value ofSnapshotManagementProperty.getMaxSnapshotAgeHours()
- Parameters:
maxSnapshotAgeHours
- The maximum age of a snapshot before it can be expired.- Returns:
this
-
minSnapshotsToKeep
@Stability(Experimental) public SnapshotManagementProperty.Builder minSnapshotsToKeep(Number minSnapshotsToKeep) Sets the value ofSnapshotManagementProperty.getMinSnapshotsToKeep()
- Parameters:
minSnapshotsToKeep
- The minimum number of snapshots to keep.- Returns:
this
-
status
Sets the value ofSnapshotManagementProperty.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<SnapshotManagementProperty>
- Returns:
- a new instance of
SnapshotManagementProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-