public static final class CfnFleet.LocationCapacityProperty.Builder
extends java.lang.Object
CfnFleet.LocationCapacityProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnFleet.LocationCapacityProperty |
build()
Builds the configured instance.
|
CfnFleet.LocationCapacityProperty.Builder |
desiredEc2Instances(java.lang.Number desiredEc2Instances)
Sets the value of
CfnFleet.LocationCapacityProperty.getDesiredEc2Instances() |
CfnFleet.LocationCapacityProperty.Builder |
maxSize(java.lang.Number maxSize)
Sets the value of
CfnFleet.LocationCapacityProperty.getMaxSize() |
CfnFleet.LocationCapacityProperty.Builder |
minSize(java.lang.Number minSize)
Sets the value of
CfnFleet.LocationCapacityProperty.getMinSize() |
public CfnFleet.LocationCapacityProperty.Builder desiredEc2Instances(java.lang.Number desiredEc2Instances)
CfnFleet.LocationCapacityProperty.getDesiredEc2Instances()
desiredEc2Instances
- The number of Amazon EC2 instances you want to maintain in the specified fleet location. This parameter is required.
This value must fall between the minimum and maximum size limits.this
public CfnFleet.LocationCapacityProperty.Builder maxSize(java.lang.Number maxSize)
CfnFleet.LocationCapacityProperty.getMaxSize()
maxSize
- The maximum number of instances that are allowed in the specified fleet location. This parameter is required.
If this parameter is not set, the default is 1.this
public CfnFleet.LocationCapacityProperty.Builder minSize(java.lang.Number minSize)
CfnFleet.LocationCapacityProperty.getMinSize()
minSize
- The minimum number of instances that are allowed in the specified fleet location. This parameter is required.
If this parameter is not set, the default is 0.this
public CfnFleet.LocationCapacityProperty build()
CfnFleet.LocationCapacityProperty
java.lang.NullPointerException
- if any required attribute was not provided