#[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 ==
.