Class CfnGlobalClusterProps.Builder
java.lang.Object
software.amazon.awscdk.services.rds.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
-
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()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deletionProtection
@Stability(Stable) public CfnGlobalClusterProps.Builder deletionProtection(Boolean deletionProtection) Sets the value ofCfnGlobalClusterProps.getDeletionProtection()
- Parameters:
deletionProtection
- The deletion protection setting for the new global database. The global database 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
- The deletion protection setting for the new global database. The global database can't be deleted when deletion protection is enabled.- Returns:
this
-
engine
Sets the value ofCfnGlobalClusterProps.getEngine()
- Parameters:
engine
- The name of the database engine to be used for this DB cluster. If this property isn't specified, the database engine is derived from the source DB cluster specified by theSourceDBClusterIdentifier
property.If the
SourceDBClusterIdentifier
property isn't specified, this property is required. If theSourceDBClusterIdentifier
property is specified, make sure this property isn't specified.- Returns:
this
-
engineVersion
Sets the value ofCfnGlobalClusterProps.getEngineVersion()
- Parameters:
engineVersion
- The engine version of the Aurora global database.- Returns:
this
-
globalClusterIdentifier
@Stability(Stable) public CfnGlobalClusterProps.Builder globalClusterIdentifier(String globalClusterIdentifier) Sets the value ofCfnGlobalClusterProps.getGlobalClusterIdentifier()
- Parameters:
globalClusterIdentifier
- The cluster identifier of the global database cluster.- Returns:
this
-
sourceDbClusterIdentifier
@Stability(Stable) public CfnGlobalClusterProps.Builder sourceDbClusterIdentifier(String sourceDbClusterIdentifier) Sets the value ofCfnGlobalClusterProps.getSourceDbClusterIdentifier()
- Parameters:
sourceDbClusterIdentifier
- The DB cluster identifier or Amazon Resource Name (ARN) to use as the primary cluster of the global database.If the
Engine
property isn't specified, this property is required. If theEngine
property is specified, make sure this property isn't specified.- Returns:
this
-
storageEncrypted
Sets the value ofCfnGlobalClusterProps.getStorageEncrypted()
- Parameters:
storageEncrypted
- The storage encryption setting for the global database cluster.- Returns:
this
-
storageEncrypted
@Stability(Stable) public CfnGlobalClusterProps.Builder storageEncrypted(IResolvable storageEncrypted) Sets the value ofCfnGlobalClusterProps.getStorageEncrypted()
- Parameters:
storageEncrypted
- The storage encryption setting for the global database cluster.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGlobalClusterProps>
- Returns:
- a new instance of
CfnGlobalClusterProps
- Throws:
NullPointerException
- if any required attribute was not provided
-