@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)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<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()
Returns a string representation of this object.
|
copy
public 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()
.
SessionStatus
public 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()
.
SessionStatus
public 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 AWS 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()
ToCopyableBuilder
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)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.