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 ==
.impl StructuralPartialEq for ComputeCapacityBuilder
Auto Trait Implementations§
impl Freeze for ComputeCapacityBuilder
impl RefUnwindSafe for ComputeCapacityBuilder
impl Send for ComputeCapacityBuilder
impl Sync for ComputeCapacityBuilder
impl Unpin for ComputeCapacityBuilder
impl UnwindSafe for ComputeCapacityBuilder
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