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