Struct aws_sdk_appstream::types::builders::SessionBuilder
source · #[non_exhaustive]pub struct SessionBuilder { /* private fields */ }
Expand description
A builder for Session
.
Implementations§
source§impl SessionBuilder
impl SessionBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier of the streaming session.
This field is required.sourcepub fn user_id(self, input: impl Into<String>) -> Self
pub fn user_id(self, input: impl Into<String>) -> Self
The identifier of the user for whom the session was created.
This field is required.sourcepub fn set_user_id(self, input: Option<String>) -> Self
pub fn set_user_id(self, input: Option<String>) -> Self
The identifier of the user for whom the session was created.
sourcepub fn get_user_id(&self) -> &Option<String>
pub fn get_user_id(&self) -> &Option<String>
The identifier of the user for whom the session was created.
sourcepub fn stack_name(self, input: impl Into<String>) -> Self
pub fn stack_name(self, input: impl Into<String>) -> Self
The name of the stack for the streaming session.
This field is required.sourcepub fn set_stack_name(self, input: Option<String>) -> Self
pub fn set_stack_name(self, input: Option<String>) -> Self
The name of the stack for the streaming session.
sourcepub fn get_stack_name(&self) -> &Option<String>
pub fn get_stack_name(&self) -> &Option<String>
The name of the stack for the streaming session.
sourcepub fn fleet_name(self, input: impl Into<String>) -> Self
pub fn fleet_name(self, input: impl Into<String>) -> Self
The name of the fleet for the streaming session.
This field is required.sourcepub fn set_fleet_name(self, input: Option<String>) -> Self
pub fn set_fleet_name(self, input: Option<String>) -> Self
The name of the fleet for the streaming session.
sourcepub fn get_fleet_name(&self) -> &Option<String>
pub fn get_fleet_name(&self) -> &Option<String>
The name of the fleet for the streaming session.
sourcepub fn state(self, input: SessionState) -> Self
pub fn state(self, input: SessionState) -> Self
The current state of the streaming session.
This field is required.sourcepub fn set_state(self, input: Option<SessionState>) -> Self
pub fn set_state(self, input: Option<SessionState>) -> Self
The current state of the streaming session.
sourcepub fn get_state(&self) -> &Option<SessionState>
pub fn get_state(&self) -> &Option<SessionState>
The current state of the streaming session.
sourcepub fn connection_state(self, input: SessionConnectionState) -> Self
pub fn connection_state(self, input: SessionConnectionState) -> Self
Specifies whether a user is connected to the streaming session.
sourcepub fn set_connection_state(self, input: Option<SessionConnectionState>) -> Self
pub fn set_connection_state(self, input: Option<SessionConnectionState>) -> Self
Specifies whether a user is connected to the streaming session.
sourcepub fn get_connection_state(&self) -> &Option<SessionConnectionState>
pub fn get_connection_state(&self) -> &Option<SessionConnectionState>
Specifies whether a user is connected to the streaming session.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The time when a streaming instance is dedicated for the user.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The time when a streaming instance is dedicated for the user.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The time when a streaming instance is dedicated for the user.
sourcepub fn max_expiration_time(self, input: DateTime) -> Self
pub fn max_expiration_time(self, input: DateTime) -> Self
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.
sourcepub fn set_max_expiration_time(self, input: Option<DateTime>) -> Self
pub fn set_max_expiration_time(self, input: Option<DateTime>) -> Self
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.
sourcepub fn get_max_expiration_time(&self) -> &Option<DateTime>
pub fn get_max_expiration_time(&self) -> &Option<DateTime>
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.
sourcepub fn authentication_type(self, input: AuthenticationType) -> Self
pub fn authentication_type(self, input: AuthenticationType) -> Self
The authentication method. The user is authenticated using a streaming URL (API
) or SAML 2.0 federation (SAML
).
sourcepub fn set_authentication_type(self, input: Option<AuthenticationType>) -> Self
pub fn set_authentication_type(self, input: Option<AuthenticationType>) -> Self
The authentication method. The user is authenticated using a streaming URL (API
) or SAML 2.0 federation (SAML
).
sourcepub fn get_authentication_type(&self) -> &Option<AuthenticationType>
pub fn get_authentication_type(&self) -> &Option<AuthenticationType>
The authentication method. The user is authenticated using a streaming URL (API
) or SAML 2.0 federation (SAML
).
sourcepub fn network_access_configuration(
self,
input: NetworkAccessConfiguration
) -> Self
pub fn network_access_configuration( self, input: NetworkAccessConfiguration ) -> Self
The network details for the streaming session.
sourcepub fn set_network_access_configuration(
self,
input: Option<NetworkAccessConfiguration>
) -> Self
pub fn set_network_access_configuration( self, input: Option<NetworkAccessConfiguration> ) -> Self
The network details for the streaming session.
sourcepub fn get_network_access_configuration(
&self
) -> &Option<NetworkAccessConfiguration>
pub fn get_network_access_configuration( &self ) -> &Option<NetworkAccessConfiguration>
The network details for the streaming session.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The identifier for the instance hosting the session.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The identifier for the instance hosting the session.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The identifier for the instance hosting the session.
Trait Implementations§
source§impl Clone for SessionBuilder
impl Clone for SessionBuilder
source§fn clone(&self) -> SessionBuilder
fn clone(&self) -> SessionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SessionBuilder
impl Debug for SessionBuilder
source§impl Default for SessionBuilder
impl Default for SessionBuilder
source§fn default() -> SessionBuilder
fn default() -> SessionBuilder
source§impl PartialEq for SessionBuilder
impl PartialEq for SessionBuilder
source§fn eq(&self, other: &SessionBuilder) -> bool
fn eq(&self, other: &SessionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SessionBuilder
Auto Trait Implementations§
impl Freeze for SessionBuilder
impl RefUnwindSafe for SessionBuilder
impl Send for SessionBuilder
impl Sync for SessionBuilder
impl Unpin for SessionBuilder
impl UnwindSafe for SessionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more