#[non_exhaustive]pub struct LoadBalancerStateBuilder { /* private fields */ }
Expand description
A builder for LoadBalancerState
.
Implementations§
source§impl LoadBalancerStateBuilder
impl LoadBalancerStateBuilder
sourcepub fn code(self, input: LoadBalancerStateEnum) -> Self
pub fn code(self, input: LoadBalancerStateEnum) -> Self
The state code. The initial state of the load balancer is provisioning
. After the load balancer is fully set up and ready to route traffic, its state is active
. If load balancer is routing traffic but does not have the resources it needs to scale, its state isactive_impaired
. If the load balancer could not be set up, its state is failed
.
sourcepub fn set_code(self, input: Option<LoadBalancerStateEnum>) -> Self
pub fn set_code(self, input: Option<LoadBalancerStateEnum>) -> Self
The state code. The initial state of the load balancer is provisioning
. After the load balancer is fully set up and ready to route traffic, its state is active
. If load balancer is routing traffic but does not have the resources it needs to scale, its state isactive_impaired
. If the load balancer could not be set up, its state is failed
.
sourcepub fn get_code(&self) -> &Option<LoadBalancerStateEnum>
pub fn get_code(&self) -> &Option<LoadBalancerStateEnum>
The state code. The initial state of the load balancer is provisioning
. After the load balancer is fully set up and ready to route traffic, its state is active
. If load balancer is routing traffic but does not have the resources it needs to scale, its state isactive_impaired
. If the load balancer could not be set up, its state is failed
.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
A description of the state.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
A description of the state.
sourcepub fn build(self) -> LoadBalancerState
pub fn build(self) -> LoadBalancerState
Consumes the builder and constructs a LoadBalancerState
.
Trait Implementations§
source§impl Clone for LoadBalancerStateBuilder
impl Clone for LoadBalancerStateBuilder
source§fn clone(&self) -> LoadBalancerStateBuilder
fn clone(&self) -> LoadBalancerStateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LoadBalancerStateBuilder
impl Debug for LoadBalancerStateBuilder
source§impl Default for LoadBalancerStateBuilder
impl Default for LoadBalancerStateBuilder
source§fn default() -> LoadBalancerStateBuilder
fn default() -> LoadBalancerStateBuilder
source§impl PartialEq for LoadBalancerStateBuilder
impl PartialEq for LoadBalancerStateBuilder
source§fn eq(&self, other: &LoadBalancerStateBuilder) -> bool
fn eq(&self, other: &LoadBalancerStateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LoadBalancerStateBuilder
Auto Trait Implementations§
impl Freeze for LoadBalancerStateBuilder
impl RefUnwindSafe for LoadBalancerStateBuilder
impl Send for LoadBalancerStateBuilder
impl Sync for LoadBalancerStateBuilder
impl Unpin for LoadBalancerStateBuilder
impl UnwindSafe for LoadBalancerStateBuilder
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