Class CfnGlobalClusterMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.docdb.CfnGlobalClusterMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalClusterMixinProps>
- Enclosing interface:
CfnGlobalClusterMixinProps
@Stability(Stable)
public static final class CfnGlobalClusterMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalClusterMixinProps>
A builder for
CfnGlobalClusterMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deletionProtection(Boolean deletionProtection) Sets the value ofCfnGlobalClusterMixinProps.getDeletionProtection()deletionProtection(IResolvable deletionProtection) Sets the value ofCfnGlobalClusterMixinProps.getDeletionProtection()Sets the value ofCfnGlobalClusterMixinProps.getEngine()engineVersion(String engineVersion) Sets the value ofCfnGlobalClusterMixinProps.getEngineVersion()globalClusterIdentifier(String globalClusterIdentifier) Sets the value ofCfnGlobalClusterMixinProps.getGlobalClusterIdentifier()sourceDbClusterIdentifier(String sourceDbClusterIdentifier) Sets the value ofCfnGlobalClusterMixinProps.getSourceDbClusterIdentifier()storageEncrypted(Boolean storageEncrypted) Sets the value ofCfnGlobalClusterMixinProps.getStorageEncrypted()storageEncrypted(IResolvable storageEncrypted) Sets the value ofCfnGlobalClusterMixinProps.getStorageEncrypted()Sets the value ofCfnGlobalClusterMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deletionProtection
@Stability(Stable) public CfnGlobalClusterMixinProps.Builder deletionProtection(Boolean deletionProtection) Sets the value ofCfnGlobalClusterMixinProps.getDeletionProtection()- Parameters:
deletionProtection- Indicates whether the global cluster has deletion protection enabled. The global cluster can't be deleted when deletion protection is enabled.- Returns:
this
-
deletionProtection
@Stability(Stable) public CfnGlobalClusterMixinProps.Builder deletionProtection(IResolvable deletionProtection) Sets the value ofCfnGlobalClusterMixinProps.getDeletionProtection()- Parameters:
deletionProtection- Indicates whether the global cluster has deletion protection enabled. The global cluster can't be deleted when deletion protection is enabled.- Returns:
this
-
engine
Sets the value ofCfnGlobalClusterMixinProps.getEngine()- Parameters:
engine- The database engine to use for this global cluster.- Returns:
this
-
engineVersion
Sets the value ofCfnGlobalClusterMixinProps.getEngineVersion()- Parameters:
engineVersion- The engine version to use for this global cluster.- Returns:
this
-
globalClusterIdentifier
@Stability(Stable) public CfnGlobalClusterMixinProps.Builder globalClusterIdentifier(String globalClusterIdentifier) Sets the value ofCfnGlobalClusterMixinProps.getGlobalClusterIdentifier()- Parameters:
globalClusterIdentifier- The cluster identifier of the global cluster.- Returns:
this
-
sourceDbClusterIdentifier
@Stability(Stable) public CfnGlobalClusterMixinProps.Builder sourceDbClusterIdentifier(String sourceDbClusterIdentifier) Sets the value ofCfnGlobalClusterMixinProps.getSourceDbClusterIdentifier()- Parameters:
sourceDbClusterIdentifier- The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster. You may also choose to instead specify the DBClusterIdentifier. If you provide a value for this parameter, don't specify values for the following settings because Amazon DocumentDB uses the values from the specified source DB cluster: Engine, EngineVersion, StorageEncrypted- Returns:
this
-
storageEncrypted
@Stability(Stable) public CfnGlobalClusterMixinProps.Builder storageEncrypted(Boolean storageEncrypted) Sets the value ofCfnGlobalClusterMixinProps.getStorageEncrypted()- Parameters:
storageEncrypted- Indicates whether the global cluster has storage encryption enabled.- Returns:
this
-
storageEncrypted
@Stability(Stable) public CfnGlobalClusterMixinProps.Builder storageEncrypted(IResolvable storageEncrypted) Sets the value ofCfnGlobalClusterMixinProps.getStorageEncrypted()- Parameters:
storageEncrypted- Indicates whether the global cluster has storage encryption enabled.- Returns:
this
-
tags
Sets the value ofCfnGlobalClusterMixinProps.getTags()- Parameters:
tags- The tags to be assigned to the Amazon DocumentDB resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGlobalClusterMixinProps>- Returns:
- a new instance of
CfnGlobalClusterMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-