Interface Session.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Session.Builder,
,Session> SdkBuilder<Session.Builder,
,Session> SdkPojo
- Enclosing class:
Session
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationType
(String authenticationType) The authentication method.authenticationType
(AuthenticationType authenticationType) The authentication method.connectionState
(String connectionState) Specifies whether a user is connected to the streaming session.connectionState
(SessionConnectionState connectionState) Specifies whether a user is connected to the streaming session.The name of the fleet for the streaming session.The identifier of the streaming session.instanceId
(String instanceId) The identifier for the instance hosting the session.maxExpirationTime
(Instant maxExpirationTime) The time when the streaming session is set to expire.default Session.Builder
networkAccessConfiguration
(Consumer<NetworkAccessConfiguration.Builder> networkAccessConfiguration) The network details for the streaming session.networkAccessConfiguration
(NetworkAccessConfiguration networkAccessConfiguration) The network details for the streaming session.The name of the stack for the streaming session.The time when a streaming instance is dedicated for the user.The current state of the streaming session.state
(SessionState state) The current state of the streaming session.The identifier of the user for whom the session was created.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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
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:
-
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:
-
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:
-
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:
-
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
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 inSessionMaxExpirationTime
, when theDisconnectTimeOutInSeconds
elapses or the user chooses to end his or her session. If theDisconnectTimeOutInSeconds
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 theMaxUserDurationinSeconds
value, 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 theDisconnectTimeOutInSeconds
elapses or the user chooses to end his or her session. If theDisconnectTimeOutInSeconds
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
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
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:
-
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.
-
networkAccessConfiguration
default Session.Builder networkAccessConfiguration(Consumer<NetworkAccessConfiguration.Builder> networkAccessConfiguration) The network details for the streaming session.
This is a convenience method that creates an instance of theNetworkAccessConfiguration.Builder
avoiding the need to create one manually viaNetworkAccessConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkAccessConfiguration(NetworkAccessConfiguration)
.- Parameters:
networkAccessConfiguration
- a consumer that will call methods onNetworkAccessConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-