Class InstanceStatusDetails
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.InstanceStatusDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InstanceStatusDetails.Builder,InstanceStatusDetails>
@Generated("software.amazon.awssdk:codegen") public final class InstanceStatusDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceStatusDetails.Builder,InstanceStatusDetails>
Describes the instance status.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInstanceStatusDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstanceStatusDetails.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantimpairedSince()The time when a status check failed.StatusNamename()The type of instance status.StringnameAsString()The type of instance status.List<SdkField<?>>sdkFields()static Class<? extends InstanceStatusDetails.Builder>serializableBuilderClass()StatusTypestatus()The status.StringstatusAsString()The status.InstanceStatusDetails.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
-
impairedSince
public final Instant impairedSince()
The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.
- Returns:
- The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.
-
name
public final StatusName name()
The type of instance status.
If the service returns an enum value that is not available in the current SDK version,
namewill returnStatusName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The type of instance status.
- See Also:
StatusName
-
nameAsString
public final String nameAsString()
The type of instance status.
If the service returns an enum value that is not available in the current SDK version,
namewill returnStatusName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The type of instance status.
- See Also:
StatusName
-
status
public final StatusType status()
The status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status.
- See Also:
StatusType
-
statusAsString
public final String statusAsString()
The status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status.
- See Also:
StatusType
-
toBuilder
public InstanceStatusDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InstanceStatusDetails.Builder,InstanceStatusDetails>
-
builder
public static InstanceStatusDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends InstanceStatusDetails.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.
-
-