public class AutoScalingInstanceDetails extends Object implements Serializable, Cloneable
Describes an EC2 instance associated with an Auto Scaling group.
Constructor and Description |
---|
AutoScalingInstanceDetails() |
Modifier and Type | Method and Description |
---|---|
AutoScalingInstanceDetails |
clone() |
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group associated with the instance.
|
String |
getAvailabilityZone()
The Availability Zone for the instance.
|
String |
getHealthStatus()
The health status of this instance.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getLaunchConfigurationName()
The launch configuration associated with the instance.
|
String |
getLifecycleState()
The lifecycle state for the instance.
|
Boolean |
getProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
int |
hashCode() |
Boolean |
isProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group associated with the instance.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
|
void |
setHealthStatus(String healthStatus)
The health status of this instance.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setLaunchConfigurationName(String launchConfigurationName)
The launch configuration associated with the instance.
|
void |
setLifecycleState(String lifecycleState)
The lifecycle state for the instance.
|
void |
setProtectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AutoScalingInstanceDetails |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group associated with the instance.
|
AutoScalingInstanceDetails |
withAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
|
AutoScalingInstanceDetails |
withHealthStatus(String healthStatus)
The health status of this instance.
|
AutoScalingInstanceDetails |
withInstanceId(String instanceId)
The ID of the instance.
|
AutoScalingInstanceDetails |
withLaunchConfigurationName(String launchConfigurationName)
The launch configuration associated with the instance.
|
AutoScalingInstanceDetails |
withLifecycleState(String lifecycleState)
The lifecycle state for the instance.
|
AutoScalingInstanceDetails |
withProtectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto
Scaling when scaling in.
|
public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public AutoScalingInstanceDetails withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setAutoScalingGroupName(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 String getAutoScalingGroupName()
The name of the Auto Scaling group associated with the instance.
public AutoScalingInstanceDetails withAutoScalingGroupName(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(String availabilityZone)
The Availability Zone for the instance.
availabilityZone
- The Availability Zone for the instance.public String getAvailabilityZone()
The Availability Zone for the instance.
public AutoScalingInstanceDetails withAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
availabilityZone
- The Availability Zone for the instance.public void setLifecycleState(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 String getLifecycleState()
The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
public AutoScalingInstanceDetails withLifecycleState(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(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 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(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(String launchConfigurationName)
The launch configuration associated with the instance.
launchConfigurationName
- The launch configuration associated with the instance.public String getLaunchConfigurationName()
The launch configuration associated with the instance.
public AutoScalingInstanceDetails withLaunchConfigurationName(String launchConfigurationName)
The launch configuration associated with the instance.
launchConfigurationName
- The launch configuration associated with the instance.public void setProtectedFromScaleIn(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 Boolean getProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
public AutoScalingInstanceDetails withProtectedFromScaleIn(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 Boolean isProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
public String toString()
toString
in class Object
Object.toString()
public AutoScalingInstanceDetails clone()
Copyright © 2018. All rights reserved.