@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceReusePolicy extends Object implements Serializable, Cloneable
Describes an instance reuse policy for a warm pool.
For more information, see Warm pools for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
Constructor and Description |
---|
InstanceReusePolicy() |
Modifier and Type | Method and Description |
---|---|
InstanceReusePolicy |
clone() |
boolean |
equals(Object obj) |
Boolean |
getReuseOnScaleIn()
Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
|
int |
hashCode() |
Boolean |
isReuseOnScaleIn()
Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
|
void |
setReuseOnScaleIn(Boolean reuseOnScaleIn)
Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
|
String |
toString()
Returns a string representation of this object.
|
InstanceReusePolicy |
withReuseOnScaleIn(Boolean reuseOnScaleIn)
Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
|
public void setReuseOnScaleIn(Boolean reuseOnScaleIn)
Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
reuseOnScaleIn
- Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.public Boolean getReuseOnScaleIn()
Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
public InstanceReusePolicy withReuseOnScaleIn(Boolean reuseOnScaleIn)
Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
reuseOnScaleIn
- Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.public Boolean isReuseOnScaleIn()
Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
public String toString()
toString
in class Object
Object.toString()
public InstanceReusePolicy clone()