Class CfnNamespace.SnapshotCopyConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.redshiftserverless.CfnNamespace.SnapshotCopyConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNamespace.SnapshotCopyConfigurationProperty>
- Enclosing interface:
CfnNamespace.SnapshotCopyConfigurationProperty
@Stability(Stable)
public static final class CfnNamespace.SnapshotCopyConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNamespace.SnapshotCopyConfigurationProperty>
A builder for
CfnNamespace.SnapshotCopyConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationKmsKeyId(String destinationKmsKeyId) Sets the value ofCfnNamespace.SnapshotCopyConfigurationProperty.getDestinationKmsKeyId()destinationRegion(String destinationRegion) Sets the value ofCfnNamespace.SnapshotCopyConfigurationProperty.getDestinationRegion()snapshotRetentionPeriod(Number snapshotRetentionPeriod)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationRegion
@Stability(Stable) public CfnNamespace.SnapshotCopyConfigurationProperty.Builder destinationRegion(String destinationRegion) Sets the value ofCfnNamespace.SnapshotCopyConfigurationProperty.getDestinationRegion()- Parameters:
destinationRegion- The destination AWS Region to copy snapshots to. This parameter is required.- Returns:
this
-
destinationKmsKeyId
@Stability(Stable) public CfnNamespace.SnapshotCopyConfigurationProperty.Builder destinationKmsKeyId(String destinationKmsKeyId) Sets the value ofCfnNamespace.SnapshotCopyConfigurationProperty.getDestinationKmsKeyId()- Parameters:
destinationKmsKeyId- The ID of the KMS key to use to encrypt your snapshots in the destination AWS Region .- Returns:
this
-
snapshotRetentionPeriod
@Stability(Stable) public CfnNamespace.SnapshotCopyConfigurationProperty.Builder snapshotRetentionPeriod(Number snapshotRetentionPeriod) - 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<CfnNamespace.SnapshotCopyConfigurationProperty>- Returns:
- a new instance of
CfnNamespace.SnapshotCopyConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-