@Generated(value="software.amazon.awssdk:codegen") public final class AutoScalingInstanceDetails extends Object implements SdkPojo, Serializable, 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 for the instance.
|
String |
availabilityZone()
The Availability Zone for the instance.
|
static AutoScalingInstanceDetails.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(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 |
instanceType()
The instance type of the EC2 instance.
|
String |
launchConfigurationName()
The launch configuration used to launch the instance.
|
LaunchTemplateSpecification |
launchTemplate()
The launch template for the instance.
|
String |
lifecycleState()
The lifecycle state for the instance.
|
Boolean |
protectedFromScaleIn()
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AutoScalingInstanceDetails.Builder> |
serializableBuilderClass() |
AutoScalingInstanceDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
weightedCapacity()
The number of capacity units contributed by the instance based on its instance type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String instanceId()
The ID of the instance.
public String instanceType()
The instance type of the EC2 instance.
public String autoScalingGroupName()
The name of the Auto Scaling group for the instance.
public String availabilityZone()
The Availability Zone for the instance.
public String lifecycleState()
The lifecycle state for the instance.
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 Amazon EC2 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 LaunchTemplateSpecification launchTemplate()
The launch template for the instance.
public Boolean protectedFromScaleIn()
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
public String weightedCapacity()
The number of capacity units contributed by the instance based on its instance type.
Valid Range: Minimum value of 1. Maximum value of 999.
Valid Range: Minimum value of 1. Maximum value of 999.
public AutoScalingInstanceDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AutoScalingInstanceDetails.Builder,AutoScalingInstanceDetails>public static AutoScalingInstanceDetails.Builder builder()
public static Class<? extends AutoScalingInstanceDetails.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2019. All rights reserved.