@Generated(value="software.amazon.awssdk:codegen") public final class Session extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Session.Builder,Session>
Information about a Session Manager connection to an instance.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Session.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Session.Builder |
builder() |
String |
details()
Reserved for future use.
|
String |
documentName()
The name of the Session Manager SSM document used to define the parameters and plugin settings for the session.
|
Instant |
endDate()
The date and time, in ISO-8601 Extended format, when the session was terminated.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
SessionManagerOutputUrl |
outputUrl()
Reserved for future use.
|
String |
owner()
The ID of the Amazon Web Services user account that started the session.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Session.Builder> |
serializableBuilderClass() |
String |
sessionId()
The ID of the session.
|
Instant |
startDate()
The date and time, in ISO-8601 Extended format, when the session began.
|
SessionStatus |
status()
The status of the session.
|
String |
statusAsString()
The status of the session.
|
String |
target()
The instance that the Session Manager session connected to.
|
Session.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String sessionId()
The ID of the session.
public final String target()
The instance that the Session Manager session connected to.
public final SessionStatus status()
The status of the session. For example, "Connected" or "Terminated".
If the service returns an enum value that is not available in the current SDK version, status will
return SessionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
SessionStatuspublic final String statusAsString()
The status of the session. For example, "Connected" or "Terminated".
If the service returns an enum value that is not available in the current SDK version, status will
return SessionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
SessionStatuspublic final Instant startDate()
The date and time, in ISO-8601 Extended format, when the session began.
public final Instant endDate()
The date and time, in ISO-8601 Extended format, when the session was terminated.
public final String documentName()
The name of the Session Manager SSM document used to define the parameters and plugin settings for the session.
For example, SSM-SessionManagerRunShell.
SSM-SessionManagerRunShell.public final String owner()
The ID of the Amazon Web Services user account that started the session.
public final String details()
Reserved for future use.
public final SessionManagerOutputUrl outputUrl()
Reserved for future use.
public Session.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Session.Builder,Session>public static Session.Builder builder()
public static Class<? extends Session.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.