#[non_exhaustive]pub struct ComputeCapacityStatusBuilder { /* private fields */ }
Expand description
A builder for ComputeCapacityStatus
.
Implementations§
source§impl ComputeCapacityStatusBuilder
impl ComputeCapacityStatusBuilder
sourcepub fn desired(self, input: i32) -> Self
pub fn desired(self, input: i32) -> Self
The desired number of streaming instances.
This field is required.sourcepub fn set_desired(self, input: Option<i32>) -> Self
pub fn set_desired(self, input: Option<i32>) -> Self
The desired number of streaming instances.
sourcepub fn get_desired(&self) -> &Option<i32>
pub fn get_desired(&self) -> &Option<i32>
The desired number of streaming instances.
sourcepub fn running(self, input: i32) -> Self
pub fn running(self, input: i32) -> Self
The total number of simultaneous streaming instances that are running.
sourcepub fn set_running(self, input: Option<i32>) -> Self
pub fn set_running(self, input: Option<i32>) -> Self
The total number of simultaneous streaming instances that are running.
sourcepub fn get_running(&self) -> &Option<i32>
pub fn get_running(&self) -> &Option<i32>
The total number of simultaneous streaming instances that are running.
sourcepub fn set_in_use(self, input: Option<i32>) -> Self
pub fn set_in_use(self, input: Option<i32>) -> Self
The number of instances in use for streaming.
sourcepub fn get_in_use(&self) -> &Option<i32>
pub fn get_in_use(&self) -> &Option<i32>
The number of instances in use for streaming.
sourcepub fn available(self, input: i32) -> Self
pub fn available(self, input: i32) -> Self
The number of currently available instances that can be used to stream sessions.
sourcepub fn set_available(self, input: Option<i32>) -> Self
pub fn set_available(self, input: Option<i32>) -> Self
The number of currently available instances that can be used to stream sessions.
sourcepub fn get_available(&self) -> &Option<i32>
pub fn get_available(&self) -> &Option<i32>
The number of currently available instances that can be used to stream sessions.
sourcepub fn desired_user_sessions(self, input: i32) -> Self
pub fn desired_user_sessions(self, input: i32) -> Self
The total number of sessions slots that are either running or pending. This represents the total number of concurrent streaming sessions your fleet can support in a steady state.
DesiredUserSessionCapacity = ActualUserSessionCapacity + PendingUserSessionCapacity
This only applies to multi-session fleets.
sourcepub fn set_desired_user_sessions(self, input: Option<i32>) -> Self
pub fn set_desired_user_sessions(self, input: Option<i32>) -> Self
The total number of sessions slots that are either running or pending. This represents the total number of concurrent streaming sessions your fleet can support in a steady state.
DesiredUserSessionCapacity = ActualUserSessionCapacity + PendingUserSessionCapacity
This only applies to multi-session fleets.
sourcepub fn get_desired_user_sessions(&self) -> &Option<i32>
pub fn get_desired_user_sessions(&self) -> &Option<i32>
The total number of sessions slots that are either running or pending. This represents the total number of concurrent streaming sessions your fleet can support in a steady state.
DesiredUserSessionCapacity = ActualUserSessionCapacity + PendingUserSessionCapacity
This only applies to multi-session fleets.
sourcepub fn available_user_sessions(self, input: i32) -> Self
pub fn available_user_sessions(self, input: i32) -> Self
The number of idle session slots currently available for user sessions.
AvailableUserSessionCapacity = ActualUserSessionCapacity - ActiveUserSessions
This only applies to multi-session fleets.
sourcepub fn set_available_user_sessions(self, input: Option<i32>) -> Self
pub fn set_available_user_sessions(self, input: Option<i32>) -> Self
The number of idle session slots currently available for user sessions.
AvailableUserSessionCapacity = ActualUserSessionCapacity - ActiveUserSessions
This only applies to multi-session fleets.
sourcepub fn get_available_user_sessions(&self) -> &Option<i32>
pub fn get_available_user_sessions(&self) -> &Option<i32>
The number of idle session slots currently available for user sessions.
AvailableUserSessionCapacity = ActualUserSessionCapacity - ActiveUserSessions
This only applies to multi-session fleets.
sourcepub fn active_user_sessions(self, input: i32) -> Self
pub fn active_user_sessions(self, input: i32) -> Self
The number of user sessions currently being used for streaming sessions. This only applies to multi-session fleets.
sourcepub fn set_active_user_sessions(self, input: Option<i32>) -> Self
pub fn set_active_user_sessions(self, input: Option<i32>) -> Self
The number of user sessions currently being used for streaming sessions. This only applies to multi-session fleets.
sourcepub fn get_active_user_sessions(&self) -> &Option<i32>
pub fn get_active_user_sessions(&self) -> &Option<i32>
The number of user sessions currently being used for streaming sessions. This only applies to multi-session fleets.
sourcepub fn actual_user_sessions(self, input: i32) -> Self
pub fn actual_user_sessions(self, input: i32) -> Self
The total number of session slots that are available for streaming or are currently streaming.
ActualUserSessionCapacity = AvailableUserSessionCapacity + ActiveUserSessions
This only applies to multi-session fleets.
sourcepub fn set_actual_user_sessions(self, input: Option<i32>) -> Self
pub fn set_actual_user_sessions(self, input: Option<i32>) -> Self
The total number of session slots that are available for streaming or are currently streaming.
ActualUserSessionCapacity = AvailableUserSessionCapacity + ActiveUserSessions
This only applies to multi-session fleets.
sourcepub fn get_actual_user_sessions(&self) -> &Option<i32>
pub fn get_actual_user_sessions(&self) -> &Option<i32>
The total number of session slots that are available for streaming or are currently streaming.
ActualUserSessionCapacity = AvailableUserSessionCapacity + ActiveUserSessions
This only applies to multi-session fleets.
sourcepub fn build(self) -> ComputeCapacityStatus
pub fn build(self) -> ComputeCapacityStatus
Consumes the builder and constructs a ComputeCapacityStatus
.
Trait Implementations§
source§impl Clone for ComputeCapacityStatusBuilder
impl Clone for ComputeCapacityStatusBuilder
source§fn clone(&self) -> ComputeCapacityStatusBuilder
fn clone(&self) -> ComputeCapacityStatusBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComputeCapacityStatusBuilder
impl Debug for ComputeCapacityStatusBuilder
source§impl Default for ComputeCapacityStatusBuilder
impl Default for ComputeCapacityStatusBuilder
source§fn default() -> ComputeCapacityStatusBuilder
fn default() -> ComputeCapacityStatusBuilder
source§impl PartialEq for ComputeCapacityStatusBuilder
impl PartialEq for ComputeCapacityStatusBuilder
source§fn eq(&self, other: &ComputeCapacityStatusBuilder) -> bool
fn eq(&self, other: &ComputeCapacityStatusBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComputeCapacityStatusBuilder
Auto Trait Implementations§
impl Freeze for ComputeCapacityStatusBuilder
impl RefUnwindSafe for ComputeCapacityStatusBuilder
impl Send for ComputeCapacityStatusBuilder
impl Sync for ComputeCapacityStatusBuilder
impl Unpin for ComputeCapacityStatusBuilder
impl UnwindSafe for ComputeCapacityStatusBuilder
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