pub struct Builder { /* private fields */ }
Expand description
A builder for LoadBalancerState
.
Implementations
sourceimpl Builder
impl Builder
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 set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
A description of the state.
sourcepub fn build(self) -> LoadBalancerState
pub fn build(self) -> LoadBalancerState
Consumes the builder and constructs a LoadBalancerState
.