Class CfnSnapshotProps.Builder
java.lang.Object
software.amazon.awscdk.services.redshiftserverless.CfnSnapshotProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshotProps>
- Enclosing interface:
CfnSnapshotProps
@Stability(Stable)
public static final class CfnSnapshotProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshotProps>
A builder for
CfnSnapshotProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.namespaceName(String namespaceName) Sets the value ofCfnSnapshotProps.getNamespaceName()retentionPeriod(Number retentionPeriod) Sets the value ofCfnSnapshotProps.getRetentionPeriod()snapshotName(String snapshotName) Sets the value ofCfnSnapshotProps.getSnapshotName()Sets the value ofCfnSnapshotProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
snapshotName
Sets the value ofCfnSnapshotProps.getSnapshotName()- Parameters:
snapshotName- The name of the snapshot. This parameter is required.- Returns:
this
-
namespaceName
Sets the value ofCfnSnapshotProps.getNamespaceName()- Parameters:
namespaceName- The name of the namepsace.- Returns:
this
-
retentionPeriod
Sets the value ofCfnSnapshotProps.getRetentionPeriod()- Parameters:
retentionPeriod- The retention period of the snapshot created by the scheduled action.- Returns:
this
-
tags
Sets the value ofCfnSnapshotProps.getTags()- Parameters:
tags- An array of Tag objects to associate with the snapshot.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSnapshotProps>- Returns:
- a new instance of
CfnSnapshotProps - Throws:
NullPointerException- if any required attribute was not provided
-