Class CfnPlan.DocumentDbConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.arcregionswitch.CfnPlan.DocumentDbConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlan.DocumentDbConfigurationProperty>
- Enclosing interface:
CfnPlan.DocumentDbConfigurationProperty
@Stability(Stable)
public static final class CfnPlan.DocumentDbConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlan.DocumentDbConfigurationProperty>
A builder for
CfnPlan.DocumentDbConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPlan.DocumentDbConfigurationProperty.getBehavior()build()Builds the configured instance.crossAccountRole(String crossAccountRole) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getCrossAccountRole()databaseClusterArns(List<String> databaseClusterArns) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getDatabaseClusterArns()externalId(String externalId) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getExternalId()globalClusterIdentifier(String globalClusterIdentifier) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getGlobalClusterIdentifier()timeoutMinutes(Number timeoutMinutes) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getTimeoutMinutes()ungraceful(IResolvable ungraceful) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getUngraceful()ungraceful(CfnPlan.DocumentDbUngracefulProperty ungraceful) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getUngraceful()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
behavior
Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getBehavior()- Parameters:
behavior- The behavior for a global cluster, that is, only allow switchover or also allow failover. This parameter is required.- Returns:
this
-
databaseClusterArns
@Stability(Stable) public CfnPlan.DocumentDbConfigurationProperty.Builder databaseClusterArns(List<String> databaseClusterArns) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getDatabaseClusterArns()- Parameters:
databaseClusterArns- The database cluster Amazon Resource Names (ARNs) for a DocumentDB global cluster. This parameter is required.- Returns:
this
-
globalClusterIdentifier
@Stability(Stable) public CfnPlan.DocumentDbConfigurationProperty.Builder globalClusterIdentifier(String globalClusterIdentifier) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getGlobalClusterIdentifier()- Parameters:
globalClusterIdentifier- The global cluster identifier for a DocumentDB global cluster. This parameter is required.- Returns:
this
-
crossAccountRole
@Stability(Stable) public CfnPlan.DocumentDbConfigurationProperty.Builder crossAccountRole(String crossAccountRole) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getCrossAccountRole()- Parameters:
crossAccountRole- The cross account role for the configuration.- Returns:
this
-
externalId
@Stability(Stable) public CfnPlan.DocumentDbConfigurationProperty.Builder externalId(String externalId) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getExternalId()- Parameters:
externalId- The external ID (secret key) for the configuration.- Returns:
this
-
timeoutMinutes
@Stability(Stable) public CfnPlan.DocumentDbConfigurationProperty.Builder timeoutMinutes(Number timeoutMinutes) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getTimeoutMinutes()- Parameters:
timeoutMinutes- The timeout value specified for the configuration.- Returns:
this
-
ungraceful
@Stability(Stable) public CfnPlan.DocumentDbConfigurationProperty.Builder ungraceful(IResolvable ungraceful) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getUngraceful()- Parameters:
ungraceful- The settings for ungraceful execution.- Returns:
this
-
ungraceful
@Stability(Stable) public CfnPlan.DocumentDbConfigurationProperty.Builder ungraceful(CfnPlan.DocumentDbUngracefulProperty ungraceful) Sets the value ofCfnPlan.DocumentDbConfigurationProperty.getUngraceful()- Parameters:
ungraceful- The settings for ungraceful execution.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPlan.DocumentDbConfigurationProperty>- Returns:
- a new instance of
CfnPlan.DocumentDbConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-