@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WarmPoolConfiguration extends Object implements Serializable, Cloneable
Describes a warm pool configuration.
Constructor and Description |
---|
WarmPoolConfiguration() |
Modifier and Type | Method and Description |
---|---|
WarmPoolConfiguration |
clone() |
boolean |
equals(Object obj) |
InstanceReusePolicy |
getInstanceReusePolicy()
The instance reuse policy.
|
Integer |
getMaxGroupPreparedCapacity()
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. |
Integer |
getMinSize()
The minimum number of instances to maintain in the warm pool.
|
String |
getPoolState()
The instance state to transition to after the lifecycle actions are complete.
|
String |
getStatus()
The status of a warm pool that is marked for deletion.
|
int |
hashCode() |
void |
setInstanceReusePolicy(InstanceReusePolicy instanceReusePolicy)
The instance reuse policy.
|
void |
setMaxGroupPreparedCapacity(Integer 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. |
void |
setMinSize(Integer minSize)
The minimum number of instances to maintain in the warm pool.
|
void |
setPoolState(String poolState)
The instance state to transition to after the lifecycle actions are complete.
|
void |
setStatus(String status)
The status of a warm pool that is marked for deletion.
|
String |
toString()
Returns a string representation of this object.
|
WarmPoolConfiguration |
withInstanceReusePolicy(InstanceReusePolicy instanceReusePolicy)
The instance reuse policy.
|
WarmPoolConfiguration |
withMaxGroupPreparedCapacity(Integer 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. |
WarmPoolConfiguration |
withMinSize(Integer minSize)
The minimum number of instances to maintain in the warm pool.
|
WarmPoolConfiguration |
withPoolState(String poolState)
The instance state to transition to after the lifecycle actions are complete.
|
WarmPoolConfiguration |
withPoolState(WarmPoolState poolState)
The instance state to transition to after the lifecycle actions are complete.
|
WarmPoolConfiguration |
withStatus(String status)
The status of a warm pool that is marked for deletion.
|
WarmPoolConfiguration |
withStatus(WarmPoolStatus status)
The status of a warm pool that is marked for deletion.
|
public void setMaxGroupPreparedCapacity(Integer 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.
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.public Integer getMaxGroupPreparedCapacity()
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.
Terminated
for the Auto Scaling group.public WarmPoolConfiguration withMaxGroupPreparedCapacity(Integer 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.
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.public void setMinSize(Integer minSize)
The minimum number of instances to maintain in the warm pool.
minSize
- The minimum number of instances to maintain in the warm pool.public Integer getMinSize()
The minimum number of instances to maintain in the warm pool.
public WarmPoolConfiguration withMinSize(Integer minSize)
The minimum number of instances to maintain in the warm pool.
minSize
- The minimum number of instances to maintain in the warm pool.public void setPoolState(String poolState)
The instance state to transition to after the lifecycle actions are complete.
poolState
- The instance state to transition to after the lifecycle actions are complete.WarmPoolState
public String getPoolState()
The instance state to transition to after the lifecycle actions are complete.
WarmPoolState
public WarmPoolConfiguration withPoolState(String poolState)
The instance state to transition to after the lifecycle actions are complete.
poolState
- The instance state to transition to after the lifecycle actions are complete.WarmPoolState
public WarmPoolConfiguration withPoolState(WarmPoolState poolState)
The instance state to transition to after the lifecycle actions are complete.
poolState
- The instance state to transition to after the lifecycle actions are complete.WarmPoolState
public void setStatus(String status)
The status of a warm pool that is marked for deletion.
status
- The status of a warm pool that is marked for deletion.WarmPoolStatus
public String getStatus()
The status of a warm pool that is marked for deletion.
WarmPoolStatus
public WarmPoolConfiguration withStatus(String status)
The status of a warm pool that is marked for deletion.
status
- The status of a warm pool that is marked for deletion.WarmPoolStatus
public WarmPoolConfiguration withStatus(WarmPoolStatus status)
The status of a warm pool that is marked for deletion.
status
- The status of a warm pool that is marked for deletion.WarmPoolStatus
public void setInstanceReusePolicy(InstanceReusePolicy instanceReusePolicy)
The instance reuse policy.
instanceReusePolicy
- The instance reuse policy.public InstanceReusePolicy getInstanceReusePolicy()
The instance reuse policy.
public WarmPoolConfiguration withInstanceReusePolicy(InstanceReusePolicy instanceReusePolicy)
The instance reuse policy.
instanceReusePolicy
- The instance reuse policy.public String toString()
toString
in class Object
Object.toString()
public WarmPoolConfiguration clone()