#[non_exhaustive]pub struct DeploymentCircuitBreakerBuilder { /* private fields */ }
Expand description
A builder for DeploymentCircuitBreaker
.
Implementations§
source§impl DeploymentCircuitBreakerBuilder
impl DeploymentCircuitBreakerBuilder
sourcepub fn enable(self, input: bool) -> Self
pub fn enable(self, input: bool) -> Self
Determines whether to use the deployment circuit breaker logic for the service.
This field is required.sourcepub fn set_enable(self, input: Option<bool>) -> Self
pub fn set_enable(self, input: Option<bool>) -> Self
Determines whether to use the deployment circuit breaker logic for the service.
sourcepub fn get_enable(&self) -> &Option<bool>
pub fn get_enable(&self) -> &Option<bool>
Determines whether to use the deployment circuit breaker logic for the service.
sourcepub fn rollback(self, input: bool) -> Self
pub fn rollback(self, input: bool) -> Self
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
This field is required.sourcepub fn set_rollback(self, input: Option<bool>) -> Self
pub fn set_rollback(self, input: Option<bool>) -> Self
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
sourcepub fn get_rollback(&self) -> &Option<bool>
pub fn get_rollback(&self) -> &Option<bool>
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
sourcepub fn build(self) -> DeploymentCircuitBreaker
pub fn build(self) -> DeploymentCircuitBreaker
Consumes the builder and constructs a DeploymentCircuitBreaker
.
Trait Implementations§
source§impl Clone for DeploymentCircuitBreakerBuilder
impl Clone for DeploymentCircuitBreakerBuilder
source§fn clone(&self) -> DeploymentCircuitBreakerBuilder
fn clone(&self) -> DeploymentCircuitBreakerBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DeploymentCircuitBreakerBuilder
impl Default for DeploymentCircuitBreakerBuilder
source§fn default() -> DeploymentCircuitBreakerBuilder
fn default() -> DeploymentCircuitBreakerBuilder
source§impl PartialEq for DeploymentCircuitBreakerBuilder
impl PartialEq for DeploymentCircuitBreakerBuilder
source§fn eq(&self, other: &DeploymentCircuitBreakerBuilder) -> bool
fn eq(&self, other: &DeploymentCircuitBreakerBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeploymentCircuitBreakerBuilder
Auto Trait Implementations§
impl Freeze for DeploymentCircuitBreakerBuilder
impl RefUnwindSafe for DeploymentCircuitBreakerBuilder
impl Send for DeploymentCircuitBreakerBuilder
impl Sync for DeploymentCircuitBreakerBuilder
impl Unpin for DeploymentCircuitBreakerBuilder
impl UnwindSafe for DeploymentCircuitBreakerBuilder
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