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.
|
int |
hashCode() |
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.
|
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.
|
public String getInstanceId()
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setInstanceId(String instanceId)
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceId - The ID of the instance.public AutoScalingInstanceDetails withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceId - The ID of the instance.public String getAutoScalingGroupName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName - The name of the Auto Scaling group associated with the instance.public AutoScalingInstanceDetails withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName - The name of the Auto Scaling group associated with the instance.public String getAvailabilityZone()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAvailabilityZone(String availabilityZone)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
availabilityZone - The Availability Zone for the instance.public AutoScalingInstanceDetails withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
availabilityZone - The Availability Zone for the instance.public String getLifecycleState()
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setLifecycleState(String lifecycleState)
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
lifecycleState - The lifecycle state for the instance. For more information, see Auto
Scaling Instance States in the Auto Scaling Developer
Guide.public AutoScalingInstanceDetails withLifecycleState(String lifecycleState)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
lifecycleState - The lifecycle state for the instance. For more information, see Auto
Scaling Instance States in the Auto Scaling Developer
Guide.public String getHealthStatus()
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setHealthStatus(String healthStatus)
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 AutoScalingInstanceDetails withHealthStatus(String healthStatus)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 getLaunchConfigurationName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setLaunchConfigurationName(String launchConfigurationName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
launchConfigurationName - The launch configuration associated with the instance.public AutoScalingInstanceDetails withLaunchConfigurationName(String launchConfigurationName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
launchConfigurationName - The launch configuration associated with the instance.public String toString()
toString in class ObjectObject.toString()public AutoScalingInstanceDetails clone()
Copyright © 2015. All rights reserved.