@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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
SessionManagerOutputUrl |
outputUrl()
Reserved for future use.
|
String |
owner()
The ID of the AWS 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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String sessionId()
The ID of the session.
public String target()
The instance that the Session Manager session connected to.
public 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()
.
SessionStatus
public 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()
.
SessionStatus
public Instant startDate()
The date and time, in ISO-8601 Extended format, when the session began.
public Instant endDate()
The date and time, in ISO-8601 Extended format, when the session was terminated.
public 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 String owner()
The ID of the AWS user account that started the session.
public String details()
Reserved for future use.
public SessionManagerOutputUrl outputUrl()
Reserved for future use.
public Session.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Session.Builder,Session>
public static Session.Builder builder()
public static Class<? extends Session.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.