Struct aws_sdk_appstream::types::ComputeCapacity
source · #[non_exhaustive]pub struct ComputeCapacity {
pub desired_instances: Option<i32>,
pub desired_sessions: Option<i32>,
}
Expand description
Describes the capacity for a fleet.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.desired_instances: Option<i32>
The desired number of streaming instances.
desired_sessions: Option<i32>
The desired number of user sessions for a multi-session fleet. This is not allowed for single-session fleets.
When you create a fleet, you must set either the DesiredSessions or DesiredInstances attribute, based on the type of fleet you create. You can’t define both attributes or leave both attributes blank.
Implementations§
source§impl ComputeCapacity
impl ComputeCapacity
sourcepub fn desired_instances(&self) -> Option<i32>
pub fn desired_instances(&self) -> Option<i32>
The desired number of streaming instances.
sourcepub fn desired_sessions(&self) -> Option<i32>
pub fn desired_sessions(&self) -> Option<i32>
The desired number of user sessions for a multi-session fleet. This is not allowed for single-session fleets.
When you create a fleet, you must set either the DesiredSessions or DesiredInstances attribute, based on the type of fleet you create. You can’t define both attributes or leave both attributes blank.
source§impl ComputeCapacity
impl ComputeCapacity
sourcepub fn builder() -> ComputeCapacityBuilder
pub fn builder() -> ComputeCapacityBuilder
Creates a new builder-style object to manufacture ComputeCapacity
.
Trait Implementations§
source§impl Clone for ComputeCapacity
impl Clone for ComputeCapacity
source§fn clone(&self) -> ComputeCapacity
fn clone(&self) -> ComputeCapacity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComputeCapacity
impl Debug for ComputeCapacity
source§impl PartialEq for ComputeCapacity
impl PartialEq for ComputeCapacity
source§fn eq(&self, other: &ComputeCapacity) -> bool
fn eq(&self, other: &ComputeCapacity) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComputeCapacity
Auto Trait Implementations§
impl Freeze for ComputeCapacity
impl RefUnwindSafe for ComputeCapacity
impl Send for ComputeCapacity
impl Sync for ComputeCapacity
impl Unpin for ComputeCapacity
impl UnwindSafe for ComputeCapacity
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