ToCopyableBuilder<Instance.Builder,Instance>
@Generated("software.amazon.awssdk:codegen") public class Instance extends Object implements ToCopyableBuilder<Instance.Builder,Instance>
Describes an EC2 instance.
Modifier and Type | Class | Description |
---|---|---|
static interface |
Instance.Builder |
Modifier and Type | Method | Description |
---|---|---|
String |
availabilityZone() |
The Availability Zone in which the instance is running.
|
static Instance.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
healthStatus() |
The last reported health status of the instance.
|
String |
instanceId() |
The ID of the instance.
|
String |
launchConfigurationName() |
The launch configuration associated with the instance.
|
String |
lifecycleState() |
A description of the current lifecycle state.
|
Boolean |
protectedFromScaleIn() |
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
|
static Class<? extends Instance.Builder> |
serializableBuilderClass() |
|
Instance.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
public String instanceId()
The ID of the instance.
public String availabilityZone()
The Availability Zone in which the instance is running.
public String lifecycleState()
A description of the current lifecycle state. Note that the Quarantined
state is not used.
Quarantined
state is not used.LifecycleState
public String healthStatus()
The last reported health status of the 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 associated with the instance.
public Boolean protectedFromScaleIn()
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
public Instance.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Instance.Builder,Instance>
public static Instance.Builder builder()
public static Class<? extends Instance.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.