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 interfaceActiveInstance.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ActiveInstance.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstanceHealthStatusinstanceHealth()The health status of the instance.StringinstanceHealthAsString()The health status of the instance.StringinstanceId()The ID of the instance.StringinstanceType()The instance type.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ActiveInstance.Builder>serializableBuilderClass()StringspotInstanceRequestId()The ID of the Spot Instance request.ActiveInstance.BuildertoBuilder()StringtoString()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,
instanceHealthwill 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,
instanceHealthwill 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:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-