@Generated(value="software.amazon.awssdk:codegen") public final class Session extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Session.Builder,Session>
Describes a streaming session.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Session.Builder |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationType |
authenticationType()
The authentication method.
|
String |
authenticationTypeAsString()
The authentication method.
|
static Session.Builder |
builder() |
SessionConnectionState |
connectionState()
Specifies whether a user is connected to the streaming session.
|
String |
connectionStateAsString()
Specifies whether a user is connected to the streaming session.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
fleetName()
The name of the fleet for the streaming session.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The identifier of the streaming session.
|
Instant |
maxExpirationTime()
The time when the streaming session is set to expire.
|
NetworkAccessConfiguration |
networkAccessConfiguration()
The network details for the streaming session.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Session.Builder> |
serializableBuilderClass() |
String |
stackName()
The name of the stack for the streaming session.
|
Instant |
startTime()
The time when a streaming instance is dedicated for the user.
|
SessionState |
state()
The current state of the streaming session.
|
String |
stateAsString()
The current state of the streaming session.
|
Session.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userId()
The identifier of the user for whom the session was created.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The identifier of the streaming session.
public final String userId()
The identifier of the user for whom the session was created.
public final String stackName()
The name of the stack for the streaming session.
public final String fleetName()
The name of the fleet for the streaming session.
public final SessionState state()
The current state of the streaming session.
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().
SessionStatepublic final String stateAsString()
The current state of the streaming session.
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().
SessionStatepublic final SessionConnectionState connectionState()
Specifies whether a user is connected to the streaming session.
If the service returns an enum value that is not available in the current SDK version, connectionState
will return SessionConnectionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from connectionStateAsString().
SessionConnectionStatepublic final String connectionStateAsString()
Specifies whether a user is connected to the streaming session.
If the service returns an enum value that is not available in the current SDK version, connectionState
will return SessionConnectionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from connectionStateAsString().
SessionConnectionStatepublic final Instant startTime()
The time when a streaming instance is dedicated for the user.
public final Instant maxExpirationTime()
The time when the streaming session is set to expire. This time is based on the
MaxUserDurationinSeconds value, which determines the maximum length of time that a streaming session
can run. A streaming session might end earlier than the time specified in SessionMaxExpirationTime,
when the DisconnectTimeOutInSeconds elapses or the user chooses to end his or her session. If the
DisconnectTimeOutInSeconds elapses, or the user chooses to end his or her session, the streaming
instance is terminated and the streaming session ends.
MaxUserDurationinSeconds value, which determines the maximum length of time that a streaming
session can run. A streaming session might end earlier than the time specified in
SessionMaxExpirationTime, when the DisconnectTimeOutInSeconds elapses or the
user chooses to end his or her session. If the DisconnectTimeOutInSeconds elapses, or the
user chooses to end his or her session, the streaming instance is terminated and the streaming session
ends.public final AuthenticationType authenticationType()
The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0
federation (SAML).
If the service returns an enum value that is not available in the current SDK version,
authenticationType will return AuthenticationType.UNKNOWN_TO_SDK_VERSION. The raw value returned
by the service is available from authenticationTypeAsString().
API) or SAML 2.0
federation (SAML).AuthenticationTypepublic final String authenticationTypeAsString()
The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0
federation (SAML).
If the service returns an enum value that is not available in the current SDK version,
authenticationType will return AuthenticationType.UNKNOWN_TO_SDK_VERSION. The raw value returned
by the service is available from authenticationTypeAsString().
API) or SAML 2.0
federation (SAML).AuthenticationTypepublic final NetworkAccessConfiguration networkAccessConfiguration()
The network details for the streaming session.
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 © 2023. All rights reserved.