Class CfnSnapshotMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.redshiftserverless.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.namespaceName(String namespaceName) Sets the value ofCfnSnapshotMixinProps.getNamespaceName()retentionPeriod(Number retentionPeriod) Sets the value ofCfnSnapshotMixinProps.getRetentionPeriod()snapshotName(String snapshotName) Sets the value ofCfnSnapshotMixinProps.getSnapshotName()Sets the value ofCfnSnapshotMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
namespaceName
Sets the value ofCfnSnapshotMixinProps.getNamespaceName()- Parameters:
namespaceName- The name of the namepsace.- Returns:
this
-
retentionPeriod
Sets the value ofCfnSnapshotMixinProps.getRetentionPeriod()- Parameters:
retentionPeriod- The retention period of the snapshot created by the scheduled action.- Returns:
this
-
snapshotName
Sets the value ofCfnSnapshotMixinProps.getSnapshotName()- Parameters:
snapshotName- The name of the snapshot.- Returns:
this
-
tags
Sets the value ofCfnSnapshotMixinProps.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<CfnSnapshotMixinProps>- Returns:
- a new instance of
CfnSnapshotMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-