Class Session
- java.lang.Object
-
- software.amazon.awssdk.services.appstream.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>
Describes a streaming session.
- 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 AuthenticationTypeauthenticationType()The authentication method.StringauthenticationTypeAsString()The authentication method.static Session.Builderbuilder()SessionConnectionStateconnectionState()Specifies whether a user is connected to the streaming session.StringconnectionStateAsString()Specifies whether a user is connected to the streaming session.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfleetName()The name of the fleet for the streaming session.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The identifier of the streaming session.StringinstanceId()The identifier for the instance hosting the session.InstantmaxExpirationTime()The time when the streaming session is set to expire.NetworkAccessConfigurationnetworkAccessConfiguration()The network details for the streaming session.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Session.Builder>serializableBuilderClass()StringstackName()The name of the stack for the streaming session.InstantstartTime()The time when a streaming instance is dedicated for the user.SessionStatestate()The current state of the streaming session.StringstateAsString()The current state of the streaming session.Session.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringuserId()The identifier of the user for whom the session was created.-
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
-
id
public final String id()
The identifier of the streaming session.
- Returns:
- The identifier of the streaming session.
-
userId
public final String 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
public final String stackName()
The name of the stack for the streaming session.
- Returns:
- The name of the stack for the streaming session.
-
fleetName
public final String fleetName()
The name of the fleet for the streaming session.
- Returns:
- The name of the fleet for the streaming session.
-
state
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,
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:
SessionState
-
stateAsString
public 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,
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:
SessionState
-
connectionState
public 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,
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:
SessionConnectionState
-
connectionStateAsString
public 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,
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:
SessionConnectionState
-
startTime
public final Instant 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
public final Instant 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
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,
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:
AuthenticationType
-
authenticationTypeAsString
public 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,
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:
AuthenticationType
-
networkAccessConfiguration
public final NetworkAccessConfiguration networkAccessConfiguration()
The network details for the streaming session.
- Returns:
- The network details for the streaming session.
-
instanceId
public final String instanceId()
The identifier for the instance hosting the session.
- Returns:
- The identifier for the instance hosting the session.
-
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
-
-