@Generated(value="software.amazon.awssdk:codegen") public final class SessionStatus extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SessionStatus.Builder,SessionStatus>
Contains information about the status of a session.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SessionStatus.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SessionStatus.Builder |
builder() |
Instant |
endDateTime()
The date and time that the session ended.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
idleSinceDateTime()
The date and time starting at which the session became idle.
|
Instant |
lastModifiedDateTime()
The most recent date and time that the session was modified.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SessionStatus.Builder> |
serializableBuilderClass() |
Instant |
startDateTime()
The date and time that the session started.
|
SessionState |
state()
The state of the session.
|
String |
stateAsString()
The state of the session.
|
String |
stateChangeReason()
The reason for the session state change (for example, canceled because the session was terminated).
|
SessionStatus.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Instant startDateTime()
The date and time that the session started.
public final Instant lastModifiedDateTime()
The most recent date and time that the session was modified.
public final Instant endDateTime()
The date and time that the session ended.
public final Instant idleSinceDateTime()
The date and time starting at which the session became idle. Can be empty if the session is not currently idle.
public final SessionState state()
The state of the session. A description of each state follows.
CREATING - The session is being started, including acquiring resources.
CREATED - The session has been started.
IDLE - The session is able to accept a calculation.
BUSY - The session is processing another task and is unable to accept a calculation.
TERMINATING - The session is in the process of shutting down.
TERMINATED - The session and its resources are no longer running.
DEGRADED - The session has no healthy coordinators.
FAILED - Due to a failure, the session and its resources are no longer running.
If the service returns an enum value that is not available in the current SDK version, state will return
SessionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
CREATING - The session is being started, including acquiring resources.
CREATED - The session has been started.
IDLE - The session is able to accept a calculation.
BUSY - The session is processing another task and is unable to accept a calculation.
TERMINATING - The session is in the process of shutting down.
TERMINATED - The session and its resources are no longer running.
DEGRADED - The session has no healthy coordinators.
FAILED - Due to a failure, the session and its resources are no longer running.
SessionStatepublic final String stateAsString()
The state of the session. A description of each state follows.
CREATING - The session is being started, including acquiring resources.
CREATED - The session has been started.
IDLE - The session is able to accept a calculation.
BUSY - The session is processing another task and is unable to accept a calculation.
TERMINATING - The session is in the process of shutting down.
TERMINATED - The session and its resources are no longer running.
DEGRADED - The session has no healthy coordinators.
FAILED - Due to a failure, the session and its resources are no longer running.
If the service returns an enum value that is not available in the current SDK version, state will return
SessionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
CREATING - The session is being started, including acquiring resources.
CREATED - The session has been started.
IDLE - The session is able to accept a calculation.
BUSY - The session is processing another task and is unable to accept a calculation.
TERMINATING - The session is in the process of shutting down.
TERMINATED - The session and its resources are no longer running.
DEGRADED - The session has no healthy coordinators.
FAILED - Due to a failure, the session and its resources are no longer running.
SessionStatepublic final String stateChangeReason()
The reason for the session state change (for example, canceled because the session was terminated).
public SessionStatus.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SessionStatus.Builder,SessionStatus>public static SessionStatus.Builder builder()
public static Class<? extends SessionStatus.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.