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 ==
.