Class ActiveInstance
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.ActiveInstance
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ActiveInstance.Builder,ActiveInstance>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ActiveInstance.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
instanceId
public final String instanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
instanceType
public final String instanceType()
The instance type.
- Returns:
- The instance type.
-
spotInstanceRequestId
public final String spotInstanceRequestId()
The ID of the Spot Instance request.
- Returns:
- The ID of the Spot Instance request.
-
instanceHealth
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 isunhealthy
. Otherwise, the health status ishealthy
.If the service returns an enum value that is not available in the current SDK version,
instanceHealth
will returnInstanceHealthStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceHealthAsString()
.- Returns:
- 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 isunhealthy
. Otherwise, the health status ishealthy
. - See Also:
InstanceHealthStatus
-
instanceHealthAsString
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 isunhealthy
. Otherwise, the health status ishealthy
.If the service returns an enum value that is not available in the current SDK version,
instanceHealth
will returnInstanceHealthStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceHealthAsString()
.- Returns:
- 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 isunhealthy
. Otherwise, the health status ishealthy
. - See Also:
InstanceHealthStatus
-
toBuilder
public ActiveInstance.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ActiveInstance.Builder,ActiveInstance>
-
builder
public static ActiveInstance.Builder builder()
-
serializableBuilderClass
public static Class<? extends ActiveInstance.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-