public class AutoScalingInstanceDetails
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an EC2 instance associated with an Auto Scaling group.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
autoScalingGroupName
The name of the Auto Scaling group associated with the instance.
|
private java.lang.String |
availabilityZone
The Availability Zone for the instance.
|
private java.lang.String |
healthStatus
The health status of this instance.
|
private java.lang.String |
instanceId
The ID of the instance.
|
private java.lang.String |
launchConfigurationName
The launch configuration associated with the instance.
|
private java.lang.String |
lifecycleState
The lifecycle state for the instance.
|
private java.lang.Boolean |
protectedFromScaleIn
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
Constructor and Description |
---|
AutoScalingInstanceDetails() |
Modifier and Type | Method and Description |
---|---|
AutoScalingInstanceDetails |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name of the Auto Scaling group associated with the instance.
|
java.lang.String |
getAvailabilityZone()
The Availability Zone for the instance.
|
java.lang.String |
getHealthStatus()
The health status of this instance.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.String |
getLaunchConfigurationName()
The launch configuration associated with the instance.
|
java.lang.String |
getLifecycleState()
The lifecycle state for the instance.
|
java.lang.Boolean |
getProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
int |
hashCode() |
java.lang.Boolean |
isProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group associated with the instance.
|
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the instance.
|
void |
setHealthStatus(java.lang.String healthStatus)
The health status of this instance.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setLaunchConfigurationName(java.lang.String launchConfigurationName)
The launch configuration associated with the instance.
|
void |
setLifecycleState(java.lang.String lifecycleState)
The lifecycle state for the instance.
|
void |
setProtectedFromScaleIn(java.lang.Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AutoScalingInstanceDetails |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group associated with the instance.
|
AutoScalingInstanceDetails |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the instance.
|
AutoScalingInstanceDetails |
withHealthStatus(java.lang.String healthStatus)
The health status of this instance.
|
AutoScalingInstanceDetails |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
AutoScalingInstanceDetails |
withLaunchConfigurationName(java.lang.String launchConfigurationName)
The launch configuration associated with the instance.
|
AutoScalingInstanceDetails |
withLifecycleState(java.lang.String lifecycleState)
The lifecycle state for the instance.
|
AutoScalingInstanceDetails |
withProtectedFromScaleIn(java.lang.Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
private java.lang.String instanceId
The ID of the instance.
private java.lang.String autoScalingGroupName
The name of the Auto Scaling group associated with the instance.
private java.lang.String availabilityZone
The Availability Zone for the instance.
private java.lang.String lifecycleState
The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
private java.lang.String healthStatus
The health status of this instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy and Auto Scaling should terminate and replace it.
private java.lang.String launchConfigurationName
The launch configuration associated with the instance.
private java.lang.Boolean protectedFromScaleIn
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public AutoScalingInstanceDetails withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group associated with the instance.
autoScalingGroupName
- The name of the Auto Scaling group associated with the instance.public java.lang.String getAutoScalingGroupName()
The name of the Auto Scaling group associated with the instance.
public AutoScalingInstanceDetails withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group associated with the instance.
autoScalingGroupName
- The name of the Auto Scaling group associated with the instance.public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the instance.
availabilityZone
- The Availability Zone for the instance.public java.lang.String getAvailabilityZone()
The Availability Zone for the instance.
public AutoScalingInstanceDetails withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the instance.
availabilityZone
- The Availability Zone for the instance.public void setLifecycleState(java.lang.String lifecycleState)
The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
lifecycleState
- The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer
Guide.public java.lang.String getLifecycleState()
The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
public AutoScalingInstanceDetails withLifecycleState(java.lang.String lifecycleState)
The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
lifecycleState
- The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer
Guide.public void setHealthStatus(java.lang.String healthStatus)
The health status of this instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy and Auto Scaling should terminate and replace it.
healthStatus
- The health status of this instance. "Healthy" means that the
instance is healthy and should remain in service. "Unhealthy"
means that the instance is unhealthy and Auto Scaling should
terminate and replace it.public java.lang.String getHealthStatus()
The health status of this instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy and Auto Scaling should terminate and replace it.
public AutoScalingInstanceDetails withHealthStatus(java.lang.String healthStatus)
The health status of this instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy and Auto Scaling should terminate and replace it.
healthStatus
- The health status of this instance. "Healthy" means that the
instance is healthy and should remain in service. "Unhealthy"
means that the instance is unhealthy and Auto Scaling should
terminate and replace it.public void setLaunchConfigurationName(java.lang.String launchConfigurationName)
The launch configuration associated with the instance.
launchConfigurationName
- The launch configuration associated with the instance.public java.lang.String getLaunchConfigurationName()
The launch configuration associated with the instance.
public AutoScalingInstanceDetails withLaunchConfigurationName(java.lang.String launchConfigurationName)
The launch configuration associated with the instance.
launchConfigurationName
- The launch configuration associated with the instance.public void setProtectedFromScaleIn(java.lang.Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
protectedFromScaleIn
- Indicates whether the instance is protected from termination by
Auto Scaling when scaling in.public java.lang.Boolean getProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
public AutoScalingInstanceDetails withProtectedFromScaleIn(java.lang.Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
protectedFromScaleIn
- Indicates whether the instance is protected from termination by
Auto Scaling when scaling in.public java.lang.Boolean isProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AutoScalingInstanceDetails clone()
clone
in class java.lang.Object