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