Class CfnGlobalClusterProps.Builder
java.lang.Object
software.amazon.awscdk.services.docdb.CfnGlobalClusterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalClusterProps>
- Enclosing interface:
CfnGlobalClusterProps
@Stability(Stable)
public static final class CfnGlobalClusterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalClusterProps>
A builder for
CfnGlobalClusterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deletionProtection(Boolean deletionProtection) Sets the value ofCfnGlobalClusterProps.getDeletionProtection()deletionProtection(IResolvable deletionProtection) Sets the value ofCfnGlobalClusterProps.getDeletionProtection()Sets the value ofCfnGlobalClusterProps.getEngine()engineVersion(String engineVersion) Sets the value ofCfnGlobalClusterProps.getEngineVersion()globalClusterIdentifier(String globalClusterIdentifier) Sets the value ofCfnGlobalClusterProps.getGlobalClusterIdentifier()sourceDbClusterIdentifier(String sourceDbClusterIdentifier) Sets the value ofCfnGlobalClusterProps.getSourceDbClusterIdentifier()storageEncrypted(Boolean storageEncrypted) Sets the value ofCfnGlobalClusterProps.getStorageEncrypted()storageEncrypted(IResolvable storageEncrypted) Sets the value ofCfnGlobalClusterProps.getStorageEncrypted()Sets the value ofCfnGlobalClusterProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
globalClusterIdentifier
@Stability(Stable) public CfnGlobalClusterProps.Builder globalClusterIdentifier(String globalClusterIdentifier) Sets the value ofCfnGlobalClusterProps.getGlobalClusterIdentifier()- Parameters:
globalClusterIdentifier- The cluster identifier of the global cluster. This parameter is required.- Returns:
this
-
deletionProtection
@Stability(Stable) public CfnGlobalClusterProps.Builder deletionProtection(Boolean deletionProtection) Sets the value ofCfnGlobalClusterProps.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 CfnGlobalClusterProps.Builder deletionProtection(IResolvable deletionProtection) Sets the value ofCfnGlobalClusterProps.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 ofCfnGlobalClusterProps.getEngine()- Parameters:
engine- The database engine to use for this global cluster.- Returns:
this
-
engineVersion
Sets the value ofCfnGlobalClusterProps.getEngineVersion()- Parameters:
engineVersion- The engine version to use for this global cluster.- Returns:
this
-
sourceDbClusterIdentifier
@Stability(Stable) public CfnGlobalClusterProps.Builder sourceDbClusterIdentifier(String sourceDbClusterIdentifier) Sets the value ofCfnGlobalClusterProps.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
Sets the value ofCfnGlobalClusterProps.getStorageEncrypted()- Parameters:
storageEncrypted- Indicates whether the global cluster has storage encryption enabled.- Returns:
this
-
storageEncrypted
@Stability(Stable) public CfnGlobalClusterProps.Builder storageEncrypted(IResolvable storageEncrypted) Sets the value ofCfnGlobalClusterProps.getStorageEncrypted()- Parameters:
storageEncrypted- Indicates whether the global cluster has storage encryption enabled.- Returns:
this
-
tags
Sets the value ofCfnGlobalClusterProps.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<CfnGlobalClusterProps>- Returns:
- a new instance of
CfnGlobalClusterProps - Throws:
NullPointerException- if any required attribute was not provided
-