Interface Session.Builder

    • Method Detail

      • id

        Session.Builder id​(String id)

        The identifier of the streaming session.

        Parameters:
        id - The identifier of the streaming session.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userId

        Session.Builder userId​(String userId)

        The identifier of the user for whom the session was created.

        Parameters:
        userId - The identifier of the user for whom the session was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • stackName

        Session.Builder stackName​(String stackName)

        The name of the stack for the streaming session.

        Parameters:
        stackName - The name of the stack for the streaming session.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • fleetName

        Session.Builder fleetName​(String fleetName)

        The name of the fleet for the streaming session.

        Parameters:
        fleetName - The name of the fleet for the streaming session.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • state

        Session.Builder state​(String state)

        The current state of the streaming session.

        Parameters:
        state - The current state of the streaming session.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SessionState, SessionState
      • state

        Session.Builder state​(SessionState state)

        The current state of the streaming session.

        Parameters:
        state - The current state of the streaming session.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SessionState, SessionState
      • connectionState

        Session.Builder connectionState​(String connectionState)

        Specifies whether a user is connected to the streaming session.

        Parameters:
        connectionState - Specifies whether a user is connected to the streaming session.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SessionConnectionState, SessionConnectionState
      • startTime

        Session.Builder startTime​(Instant startTime)

        The time when a streaming instance is dedicated for the user.

        Parameters:
        startTime - The time when a streaming instance is dedicated for the user.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxExpirationTime

        Session.Builder maxExpirationTime​(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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • authenticationType

        Session.Builder authenticationType​(String authenticationType)

        The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0 federation (SAML).

        Parameters:
        authenticationType - The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0 federation (SAML).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AuthenticationType, AuthenticationType
      • authenticationType

        Session.Builder authenticationType​(AuthenticationType authenticationType)

        The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0 federation (SAML).

        Parameters:
        authenticationType - The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0 federation (SAML).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AuthenticationType, AuthenticationType
      • networkAccessConfiguration

        Session.Builder networkAccessConfiguration​(NetworkAccessConfiguration networkAccessConfiguration)

        The network details for the streaming session.

        Parameters:
        networkAccessConfiguration - The network details for the streaming session.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceId

        Session.Builder instanceId​(String instanceId)

        The identifier for the instance hosting the session.

        Parameters:
        instanceId - The identifier for the instance hosting the session.
        Returns:
        Returns a reference to this object so that method calls can be chained together.