Class CfnSnapshotProps.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.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.clusterIdentifier(String clusterIdentifier) Sets the value ofCfnSnapshotProps.getClusterIdentifier()manualSnapshotRetentionPeriod(Number manualSnapshotRetentionPeriod) Sets the value ofCfnSnapshotProps.getManualSnapshotRetentionPeriod()snapshotIdentifier(String snapshotIdentifier) Sets the value ofCfnSnapshotProps.getSnapshotIdentifier()Sets the value ofCfnSnapshotProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterIdentifier
Sets the value ofCfnSnapshotProps.getClusterIdentifier()- Parameters:
clusterIdentifier- The cluster identifier for which you want a snapshot. This parameter is required.- Returns:
this
-
snapshotIdentifier
Sets the value ofCfnSnapshotProps.getSnapshotIdentifier()- Parameters:
snapshotIdentifier- A unique identifier for the snapshot that you are requesting. This parameter is required. This identifier must be unique for all snapshots within the Amazon Web Services account.- Returns:
this
-
manualSnapshotRetentionPeriod
@Stability(Stable) public CfnSnapshotProps.Builder manualSnapshotRetentionPeriod(Number manualSnapshotRetentionPeriod) Sets the value ofCfnSnapshotProps.getManualSnapshotRetentionPeriod()- Parameters:
manualSnapshotRetentionPeriod- The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely. The value must be either -1 or an integer between 1 and 3653.- Returns:
this
-
tags
Sets the value ofCfnSnapshotProps.getTags()- Parameters:
tags- A list of tag instances.- 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
-