Class CfnSnapshot.Builder
java.lang.Object
software.amazon.awscdk.services.redshiftserverless.CfnSnapshot.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshot>
- Enclosing class:
CfnSnapshot
@Stability(Stable)
public static final class CfnSnapshot.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshot>
A fluent builder for
CfnSnapshot
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnSnapshot.Builder
namespaceName
(String namespaceName) The name of the namepsace.retentionPeriod
(Number retentionPeriod) The retention period of the snapshot created by the scheduled action.snapshotName
(String snapshotName) The name of the snapshot.An array of Tag objects to associate with the snapshot.
-
Method Details
-
create
@Stability(Stable) public static CfnSnapshot.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnSnapshot.Builder
.
-
snapshotName
The name of the snapshot.- Parameters:
snapshotName
- The name of the snapshot. This parameter is required.- Returns:
this
- See Also:
-
namespaceName
The name of the namepsace.- Parameters:
namespaceName
- The name of the namepsace. This parameter is required.- Returns:
this
- See Also:
-
retentionPeriod
The retention period of the snapshot created by the scheduled action.- Parameters:
retentionPeriod
- The retention period of the snapshot created by the scheduled action. This parameter is required.- Returns:
this
- See Also:
-
tags
An array of Tag objects to associate with the snapshot.- Parameters:
tags
- An array of Tag objects to associate with the snapshot. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSnapshot>
- Returns:
- a newly built instance of
CfnSnapshot
.
-