@Generated(value="software.amazon.awssdk:codegen") public final class InstanceStatusDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceStatusDetails.Builder,InstanceStatusDetails>
Describes the instance status.
Modifier and Type | Class and Description |
---|---|
static interface |
InstanceStatusDetails.Builder |
Modifier and Type | Method and Description |
---|---|
static InstanceStatusDetails.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
impairedSince()
The time when a status check failed.
|
StatusName |
name()
The type of instance status.
|
String |
nameAsString()
The type of instance status.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InstanceStatusDetails.Builder> |
serializableBuilderClass() |
StatusType |
status()
The status.
|
String |
statusAsString()
The status.
|
InstanceStatusDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public 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.
public StatusName name()
The type of instance status.
If the service returns an enum value that is not available in the current SDK version, name
will return
StatusName.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
nameAsString()
.
StatusName
public String nameAsString()
The type of instance status.
If the service returns an enum value that is not available in the current SDK version, name
will return
StatusName.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
nameAsString()
.
StatusName
public StatusType status()
The status.
If the service returns an enum value that is not available in the current SDK version, status
will
return StatusType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
StatusType
public String statusAsString()
The status.
If the service returns an enum value that is not available in the current SDK version, status
will
return StatusType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
StatusType
public InstanceStatusDetails.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<InstanceStatusDetails.Builder,InstanceStatusDetails>
public static InstanceStatusDetails.Builder builder()
public static Class<? extends InstanceStatusDetails.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.