public static final class WarmPoolOptions.Builder
extends java.lang.Object
WarmPoolOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
WarmPoolOptions |
build()
Builds the configured instance.
|
WarmPoolOptions.Builder |
maxGroupPreparedCapacity(java.lang.Number maxGroupPreparedCapacity)
Sets the value of
WarmPoolOptions.getMaxGroupPreparedCapacity() |
WarmPoolOptions.Builder |
minSize(java.lang.Number minSize)
Sets the value of
WarmPoolOptions.getMinSize() |
WarmPoolOptions.Builder |
poolState(PoolState poolState)
Sets the value of
WarmPoolOptions.getPoolState() |
WarmPoolOptions.Builder |
reuseOnScaleIn(java.lang.Boolean reuseOnScaleIn)
Sets the value of
WarmPoolOptions.getReuseOnScaleIn() |
public WarmPoolOptions.Builder maxGroupPreparedCapacity(java.lang.Number maxGroupPreparedCapacity)
WarmPoolOptions.getMaxGroupPreparedCapacity()
maxGroupPreparedCapacity
- The maximum number of instances that are allowed to be in the warm pool or in any state except Terminated for the Auto Scaling group.
If the value is not specified, Amazon EC2 Auto Scaling launches and maintains
the difference between the group's maximum capacity and its desired capacity.this
public WarmPoolOptions.Builder minSize(java.lang.Number minSize)
WarmPoolOptions.getMinSize()
minSize
- The minimum number of instances to maintain in the warm pool.this
public WarmPoolOptions.Builder poolState(PoolState poolState)
WarmPoolOptions.getPoolState()
poolState
- The instance state to transition to after the lifecycle actions are complete.this
public WarmPoolOptions.Builder reuseOnScaleIn(java.lang.Boolean reuseOnScaleIn)
WarmPoolOptions.getReuseOnScaleIn()
reuseOnScaleIn
- Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
If the value is not specified, instances in the Auto Scaling group will be terminated
when the group scales in.this
public WarmPoolOptions build()
WarmPoolOptions
java.lang.NullPointerException
- if any required attribute was not provided