@Generated(value="software.amazon.awssdk:codegen") public final class ActiveInstance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ActiveInstance.Builder,ActiveInstance>
Describes a running instance in a Spot Fleet.
Modifier and Type | Class and Description |
---|---|
static interface |
ActiveInstance.Builder |
Modifier and Type | Method and Description |
---|---|
static ActiveInstance.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
InstanceHealthStatus |
instanceHealth()
The health status of the instance.
|
String |
instanceHealthAsString()
The health status of the instance.
|
String |
instanceId()
The ID of the instance.
|
String |
instanceType()
The instance type.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ActiveInstance.Builder> |
serializableBuilderClass() |
String |
spotInstanceRequestId()
The ID of the Spot Instance request.
|
ActiveInstance.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 instanceType()
The instance type.
public String spotInstanceRequestId()
The ID of the Spot Instance request.
public InstanceHealthStatus instanceHealth()
The health status of the instance. If the status of either the instance status check or the system status check
is impaired
, the health status of the instance is unhealthy
. Otherwise, the health
status is healthy
.
If the service returns an enum value that is not available in the current SDK version, instanceHealth
will return InstanceHealthStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from instanceHealthAsString()
.
impaired
, the health status of the instance is unhealthy
. Otherwise,
the health status is healthy
.InstanceHealthStatus
public String instanceHealthAsString()
The health status of the instance. If the status of either the instance status check or the system status check
is impaired
, the health status of the instance is unhealthy
. Otherwise, the health
status is healthy
.
If the service returns an enum value that is not available in the current SDK version, instanceHealth
will return InstanceHealthStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from instanceHealthAsString()
.
impaired
, the health status of the instance is unhealthy
. Otherwise,
the health status is healthy
.InstanceHealthStatus
public ActiveInstance.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ActiveInstance.Builder,ActiveInstance>
public static ActiveInstance.Builder builder()
public static Class<? extends ActiveInstance.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.