@Generated(value="software.amazon.awssdk:codegen") public final class AutoScalingInstanceDetails extends Object implements ToCopyableBuilder<AutoScalingInstanceDetails.Builder,AutoScalingInstanceDetails>
Describes an EC2 instance associated with an Auto Scaling group.
Modifier and Type | Class and Description |
---|---|
static interface |
AutoScalingInstanceDetails.Builder |
Modifier and Type | Method and Description |
---|---|
String |
autoScalingGroupName()
The name of the Auto Scaling group associated with the instance.
|
String |
availabilityZone()
The Availability Zone for the instance.
|
static AutoScalingInstanceDetails.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
healthStatus()
The last reported health status of this instance.
|
String |
instanceId()
The ID of the instance.
|
String |
launchConfigurationName()
The launch configuration used to launch the instance.
|
String |
lifecycleState()
The lifecycle state for the instance.
|
Boolean |
protectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
|
static Class<? extends AutoScalingInstanceDetails.Builder> |
serializableBuilderClass() |
AutoScalingInstanceDetails.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String instanceId()
The ID of the instance.
public String autoScalingGroupName()
The name of the Auto Scaling group associated with the instance.
public String availabilityZone()
The Availability Zone for the instance.
public String lifecycleState()
The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.
public String healthStatus()
The last reported 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 launchConfigurationName()
The launch configuration used to launch the instance. This value is not available if you attached the instance to the Auto Scaling group.
public Boolean protectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
public AutoScalingInstanceDetails.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AutoScalingInstanceDetails.Builder,AutoScalingInstanceDetails>
public static AutoScalingInstanceDetails.Builder builder()
public static Class<? extends AutoScalingInstanceDetails.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.