Struct aws_sdk_gamelift::types::builders::GameSessionDetailBuilder
source · #[non_exhaustive]pub struct GameSessionDetailBuilder { /* private fields */ }
Expand description
A builder for GameSessionDetail
.
Implementations§
source§impl GameSessionDetailBuilder
impl GameSessionDetailBuilder
sourcepub fn game_session(self, input: GameSession) -> Self
pub fn game_session(self, input: GameSession) -> Self
Object that describes a game session.
sourcepub fn set_game_session(self, input: Option<GameSession>) -> Self
pub fn set_game_session(self, input: Option<GameSession>) -> Self
Object that describes a game session.
sourcepub fn get_game_session(&self) -> &Option<GameSession>
pub fn get_game_session(&self) -> &Option<GameSession>
Object that describes a game session.
sourcepub fn protection_policy(self, input: ProtectionPolicy) -> Self
pub fn protection_policy(self, input: ProtectionPolicy) -> Self
Current status of protection for the game session.
-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVE
status, it cannot be terminated during a scale-down event.
sourcepub fn set_protection_policy(self, input: Option<ProtectionPolicy>) -> Self
pub fn set_protection_policy(self, input: Option<ProtectionPolicy>) -> Self
Current status of protection for the game session.
-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVE
status, it cannot be terminated during a scale-down event.
sourcepub fn get_protection_policy(&self) -> &Option<ProtectionPolicy>
pub fn get_protection_policy(&self) -> &Option<ProtectionPolicy>
Current status of protection for the game session.
-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVE
status, it cannot be terminated during a scale-down event.
sourcepub fn build(self) -> GameSessionDetail
pub fn build(self) -> GameSessionDetail
Consumes the builder and constructs a GameSessionDetail
.
Trait Implementations§
source§impl Clone for GameSessionDetailBuilder
impl Clone for GameSessionDetailBuilder
source§fn clone(&self) -> GameSessionDetailBuilder
fn clone(&self) -> GameSessionDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GameSessionDetailBuilder
impl Debug for GameSessionDetailBuilder
source§impl Default for GameSessionDetailBuilder
impl Default for GameSessionDetailBuilder
source§fn default() -> GameSessionDetailBuilder
fn default() -> GameSessionDetailBuilder
source§impl PartialEq for GameSessionDetailBuilder
impl PartialEq for GameSessionDetailBuilder
source§fn eq(&self, other: &GameSessionDetailBuilder) -> bool
fn eq(&self, other: &GameSessionDetailBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GameSessionDetailBuilder
Auto Trait Implementations§
impl Freeze for GameSessionDetailBuilder
impl RefUnwindSafe for GameSessionDetailBuilder
impl Send for GameSessionDetailBuilder
impl Sync for GameSessionDetailBuilder
impl Unpin for GameSessionDetailBuilder
impl UnwindSafe for GameSessionDetailBuilder
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