Class CfnNamespacePropsMixin.SnapshotCopyConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.redshiftserverless.CfnNamespacePropsMixin.SnapshotCopyConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNamespacePropsMixin.SnapshotCopyConfigurationProperty>
- Enclosing interface:
CfnNamespacePropsMixin.SnapshotCopyConfigurationProperty
@Stability(Stable)
public static final class CfnNamespacePropsMixin.SnapshotCopyConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNamespacePropsMixin.SnapshotCopyConfigurationProperty>
A builder for
CfnNamespacePropsMixin.SnapshotCopyConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationKmsKeyId(String destinationKmsKeyId) destinationRegion(String destinationRegion) snapshotRetentionPeriod(Number snapshotRetentionPeriod)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationKmsKeyId
@Stability(Stable) public CfnNamespacePropsMixin.SnapshotCopyConfigurationProperty.Builder destinationKmsKeyId(String destinationKmsKeyId) - Parameters:
destinationKmsKeyId- The ID of the KMS key to use to encrypt your snapshots in the destination AWS Region .- Returns:
this
-
destinationRegion
@Stability(Stable) public CfnNamespacePropsMixin.SnapshotCopyConfigurationProperty.Builder destinationRegion(String destinationRegion) - Parameters:
destinationRegion- The destination AWS Region to copy snapshots to.- Returns:
this
-
snapshotRetentionPeriod
@Stability(Stable) public CfnNamespacePropsMixin.SnapshotCopyConfigurationProperty.Builder snapshotRetentionPeriod(Number snapshotRetentionPeriod) Sets the value ofCfnNamespacePropsMixin.SnapshotCopyConfigurationProperty.getSnapshotRetentionPeriod()- Parameters:
snapshotRetentionPeriod- The retention period of snapshots that are copied to the destination AWS Region .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNamespacePropsMixin.SnapshotCopyConfigurationProperty>- Returns:
- a new instance of
CfnNamespacePropsMixin.SnapshotCopyConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-