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 namespace the snapshot is associated with.- Returns:
this
-
retentionPeriod
Sets the value ofCfnSnapshotProps.getRetentionPeriod()
- Parameters:
retentionPeriod
- The retention period of the snapshot.- Returns:
this
-
tags
Sets the value ofCfnSnapshotProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSnapshotProps>
- Returns:
- a new instance of
CfnSnapshotProps
- Throws:
NullPointerException
- if any required attribute was not provided
-