Class CfnEnvironment.HighAvailabilityConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.m2.CfnEnvironment.HighAvailabilityConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnvironment.HighAvailabilityConfigProperty>
- Enclosing interface:
CfnEnvironment.HighAvailabilityConfigProperty
@Stability(Stable)
public static final class CfnEnvironment.HighAvailabilityConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnvironment.HighAvailabilityConfigProperty>
A builder for
CfnEnvironment.HighAvailabilityConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.desiredCapacity(Number desiredCapacity) Sets the value ofCfnEnvironment.HighAvailabilityConfigProperty.getDesiredCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desiredCapacity
@Stability(Stable) public CfnEnvironment.HighAvailabilityConfigProperty.Builder desiredCapacity(Number desiredCapacity) Sets the value ofCfnEnvironment.HighAvailabilityConfigProperty.getDesiredCapacity()- Parameters:
desiredCapacity- The number of instances in a high availability configuration. This parameter is required. The minimum possible value is 1 and the maximum is 100.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEnvironment.HighAvailabilityConfigProperty>- Returns:
- a new instance of
CfnEnvironment.HighAvailabilityConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-