Class CfnSnapshotMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.redshift.CfnSnapshotMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshotMixinProps>
- Enclosing interface:
CfnSnapshotMixinProps
@Stability(Stable)
public static final class CfnSnapshotMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshotMixinProps>
A builder for
CfnSnapshotMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clusterIdentifier(String clusterIdentifier) Sets the value ofCfnSnapshotMixinProps.getClusterIdentifier()manualSnapshotRetentionPeriod(Number manualSnapshotRetentionPeriod) Sets the value ofCfnSnapshotMixinProps.getManualSnapshotRetentionPeriod()snapshotIdentifier(String snapshotIdentifier) Sets the value ofCfnSnapshotMixinProps.getSnapshotIdentifier()Sets the value ofCfnSnapshotMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterIdentifier
Sets the value ofCfnSnapshotMixinProps.getClusterIdentifier()- Parameters:
clusterIdentifier- The cluster identifier for which you want a snapshot.- Returns:
this
-
manualSnapshotRetentionPeriod
@Stability(Stable) public CfnSnapshotMixinProps.Builder manualSnapshotRetentionPeriod(Number manualSnapshotRetentionPeriod) Sets the value ofCfnSnapshotMixinProps.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
-
snapshotIdentifier
@Stability(Stable) public CfnSnapshotMixinProps.Builder snapshotIdentifier(String snapshotIdentifier) Sets the value ofCfnSnapshotMixinProps.getSnapshotIdentifier()- Parameters:
snapshotIdentifier- A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.- Returns:
this
-
tags
Sets the value ofCfnSnapshotMixinProps.getTags()- Parameters:
tags- A list of tag instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSnapshotMixinProps>- Returns:
- a new instance of
CfnSnapshotMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-