Class Session
- java.lang.Object
-
- software.amazon.awssdk.services.ssm.model.Session
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Session.Builder,Session>
@Generated("software.amazon.awssdk:codegen") public final class Session extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Session.Builder,Session>
Information about a Session Manager connection to a managed node.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSession.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Session.Builderbuilder()Stringdetails()Reserved for future use.StringdocumentName()The name of the Session Manager SSM document used to define the parameters and plugin settings for the session.InstantendDate()The date and time, in ISO-8601 Extended format, when the session was terminated.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringmaxSessionDuration()The maximum duration of a session before it terminates.SessionManagerOutputUrloutputUrl()Reserved for future use.Stringowner()The ID of the Amazon Web Services user that started the session.Stringreason()The reason for connecting to the instance.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Session.Builder>serializableBuilderClass()StringsessionId()The ID of the session.InstantstartDate()The date and time, in ISO-8601 Extended format, when the session began.SessionStatusstatus()The status of the session.StringstatusAsString()The status of the session.Stringtarget()The managed node that the Session Manager session connected to.Session.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
sessionId
public final String sessionId()
The ID of the session.
- Returns:
- The ID of the session.
-
target
public final String target()
The managed node that the Session Manager session connected to.
- Returns:
- The managed node that the Session Manager session connected to.
-
status
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,
statuswill returnSessionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the session. For example, "Connected" or "Terminated".
- See Also:
SessionStatus
-
statusAsString
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,
statuswill returnSessionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the session. For example, "Connected" or "Terminated".
- See Also:
SessionStatus
-
startDate
public final Instant startDate()
The date and time, in ISO-8601 Extended format, when the session began.
- Returns:
- The date and time, in ISO-8601 Extended format, when the session began.
-
endDate
public final Instant endDate()
The date and time, in ISO-8601 Extended format, when the session was terminated.
- Returns:
- The date and time, in ISO-8601 Extended format, when the session was terminated.
-
documentName
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.- Returns:
- The name of the Session Manager SSM document used to define the parameters and plugin settings for the
session. For example,
SSM-SessionManagerRunShell.
-
owner
public final String owner()
The ID of the Amazon Web Services user that started the session.
- Returns:
- The ID of the Amazon Web Services user that started the session.
-
reason
public final String reason()
The reason for connecting to the instance.
- Returns:
- The reason for connecting to the instance.
-
details
public final String details()
Reserved for future use.
- Returns:
- Reserved for future use.
-
outputUrl
public final SessionManagerOutputUrl outputUrl()
Reserved for future use.
- Returns:
- Reserved for future use.
-
maxSessionDuration
public final String maxSessionDuration()
The maximum duration of a session before it terminates.
- Returns:
- The maximum duration of a session before it terminates.
-
toBuilder
public Session.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Session.Builder,Session>
-
builder
public static Session.Builder builder()
-
serializableBuilderClass
public static Class<? extends Session.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-