Class CfnGlobalClusterMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.neptune.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- Whether deletion protection is enabled.- Returns:
this
-
deletionProtection
@Stability(Stable) public CfnGlobalClusterMixinProps.Builder deletionProtection(IResolvable deletionProtection) Sets the value ofCfnGlobalClusterMixinProps.getDeletionProtection()- Parameters:
deletionProtection- Whether deletion protection is enabled.- Returns:
this
-
engine
Sets the value ofCfnGlobalClusterMixinProps.getEngine()- Parameters:
engine- The name of the database engine.- Returns:
this
-
engineVersion
Sets the value ofCfnGlobalClusterMixinProps.getEngineVersion()- Parameters:
engineVersion- The version number of the database engine.- Returns:
this
-
globalClusterIdentifier
@Stability(Stable) public CfnGlobalClusterMixinProps.Builder globalClusterIdentifier(String globalClusterIdentifier) Sets the value ofCfnGlobalClusterMixinProps.getGlobalClusterIdentifier()- Parameters:
globalClusterIdentifier- The cluster identifier of the global database cluster.- Returns:
this
-
sourceDbClusterIdentifier
@Stability(Stable) public CfnGlobalClusterMixinProps.Builder sourceDbClusterIdentifier(String sourceDbClusterIdentifier) Sets the value ofCfnGlobalClusterMixinProps.getSourceDbClusterIdentifier()- Parameters:
sourceDbClusterIdentifier- The Amazon Resource Name (ARN) of an existing Neptune DB cluster to use as the primary cluster of the new global database.- Returns:
this
-
storageEncrypted
@Stability(Stable) public CfnGlobalClusterMixinProps.Builder storageEncrypted(Boolean storageEncrypted) Sets the value ofCfnGlobalClusterMixinProps.getStorageEncrypted()- Parameters:
storageEncrypted- Whether the global database cluster is storage encrypted.- Returns:
this
-
storageEncrypted
@Stability(Stable) public CfnGlobalClusterMixinProps.Builder storageEncrypted(IResolvable storageEncrypted) Sets the value ofCfnGlobalClusterMixinProps.getStorageEncrypted()- Parameters:
storageEncrypted- Whether the global database cluster is storage encrypted.- Returns:
this
-
tags
Sets the value ofCfnGlobalClusterMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this 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
-