@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) |
boolean |
equalsBySdkFields(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() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String instanceId()
The ID of the instance.
public final String instanceType()
The instance type.
public final String spotInstanceRequestId()
The ID of the Spot Instance request.
public final 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 final 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()
toBuilder
in interface ToCopyableBuilder<ActiveInstance.Builder,ActiveInstance>
public static ActiveInstance.Builder builder()
public static Class<? extends ActiveInstance.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.