Class Session
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Session.Builder,Session>
Describes a streaming session.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal AuthenticationTypeThe authentication method.final StringThe authentication method.static Session.Builderbuilder()final SessionConnectionStateSpecifies whether a user is connected to the streaming session.final StringSpecifies whether a user is connected to the streaming session.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe name of the fleet for the streaming session.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringid()The identifier of the streaming session.final StringThe identifier for the instance hosting the session.final InstantThe time when the streaming session is set to expire.The network details for the streaming session.static Class<? extends Session.Builder> final StringThe name of the stack for the streaming session.final InstantThe time when a streaming instance is dedicated for the user.final SessionStatestate()The current state of the streaming session.final StringThe current state of the streaming session.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringuserId()The identifier of the user for whom the session was created.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The identifier of the streaming session.
- Returns:
- The identifier of the streaming session.
-
userId
The identifier of the user for whom the session was created.
- Returns:
- The identifier of the user for whom the session was created.
-
stackName
The name of the stack for the streaming session.
- Returns:
- The name of the stack for the streaming session.
-
fleetName
The name of the fleet for the streaming session.
- Returns:
- The name of the fleet for the streaming session.
-
state
The current state of the streaming session.
If the service returns an enum value that is not available in the current SDK version,
statewill returnSessionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the streaming session.
- See Also:
-
stateAsString
The current state of the streaming session.
If the service returns an enum value that is not available in the current SDK version,
statewill returnSessionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the streaming session.
- See Also:
-
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,
connectionStatewill returnSessionConnectionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconnectionStateAsString().- Returns:
- Specifies whether a user is connected to the streaming session.
- See Also:
-
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,
connectionStatewill returnSessionConnectionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconnectionStateAsString().- Returns:
- Specifies whether a user is connected to the streaming session.
- See Also:
-
startTime
The time when a streaming instance is dedicated for the user.
- Returns:
- The time when a streaming instance is dedicated for the user.
-
maxExpirationTime
The time when the streaming session is set to expire. This time is based on the
MaxUserDurationinSecondsvalue, which determines the maximum length of time that a streaming session can run. A streaming session might end earlier than the time specified inSessionMaxExpirationTime, when theDisconnectTimeOutInSecondselapses or the user chooses to end his or her session. If theDisconnectTimeOutInSecondselapses, or the user chooses to end his or her session, the streaming instance is terminated and the streaming session ends.- Returns:
- The time when the streaming session is set to expire. This time is based on the
MaxUserDurationinSecondsvalue, which determines the maximum length of time that a streaming session can run. A streaming session might end earlier than the time specified inSessionMaxExpirationTime, when theDisconnectTimeOutInSecondselapses or the user chooses to end his or her session. If theDisconnectTimeOutInSecondselapses, or the user chooses to end his or her session, the streaming instance is terminated and the streaming session ends.
-
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,
authenticationTypewill returnAuthenticationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromauthenticationTypeAsString().- Returns:
- The authentication method. The user is authenticated using a streaming URL (
API) or SAML 2.0 federation (SAML). - See Also:
-
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,
authenticationTypewill returnAuthenticationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromauthenticationTypeAsString().- Returns:
- The authentication method. The user is authenticated using a streaming URL (
API) or SAML 2.0 federation (SAML). - See Also:
-
networkAccessConfiguration
The network details for the streaming session.
- Returns:
- The network details for the streaming session.
-
instanceId
The identifier for the instance hosting the session.
- Returns:
- The identifier for the instance hosting the session.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Session.Builder,Session> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-