Struct aws_sdk_appstream::types::builders::ComputeCapacityBuilder
source · #[non_exhaustive]pub struct ComputeCapacityBuilder { /* private fields */ }
Expand description
A builder for ComputeCapacity
.
Implementations§
source§impl ComputeCapacityBuilder
impl ComputeCapacityBuilder
sourcepub fn desired_instances(self, input: i32) -> Self
pub fn desired_instances(self, input: i32) -> Self
The desired number of streaming instances.
sourcepub fn set_desired_instances(self, input: Option<i32>) -> Self
pub fn set_desired_instances(self, input: Option<i32>) -> Self
The desired number of streaming instances.
sourcepub fn get_desired_instances(&self) -> &Option<i32>
pub fn get_desired_instances(&self) -> &Option<i32>
The desired number of streaming instances.
sourcepub fn desired_sessions(self, input: i32) -> Self
pub fn desired_sessions(self, input: i32) -> Self
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.
sourcepub fn set_desired_sessions(self, input: Option<i32>) -> Self
pub fn set_desired_sessions(self, input: Option<i32>) -> Self
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.
sourcepub fn get_desired_sessions(&self) -> &Option<i32>
pub fn get_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.
sourcepub fn build(self) -> ComputeCapacity
pub fn build(self) -> ComputeCapacity
Consumes the builder and constructs a ComputeCapacity
.
Trait Implementations§
source§impl Clone for ComputeCapacityBuilder
impl Clone for ComputeCapacityBuilder
source§fn clone(&self) -> ComputeCapacityBuilder
fn clone(&self) -> ComputeCapacityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComputeCapacityBuilder
impl Debug for ComputeCapacityBuilder
source§impl Default for ComputeCapacityBuilder
impl Default for ComputeCapacityBuilder
source§fn default() -> ComputeCapacityBuilder
fn default() -> ComputeCapacityBuilder
source§impl PartialEq for ComputeCapacityBuilder
impl PartialEq for ComputeCapacityBuilder
source§fn eq(&self, other: &ComputeCapacityBuilder) -> bool
fn eq(&self, other: &ComputeCapacityBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.