Struct aws_sdk_ecs::types::builders::DeploymentAlarmsBuilder
source · #[non_exhaustive]pub struct DeploymentAlarmsBuilder { /* private fields */ }
Expand description
A builder for DeploymentAlarms
.
Implementations§
source§impl DeploymentAlarmsBuilder
impl DeploymentAlarmsBuilder
sourcepub fn alarm_names(self, input: impl Into<String>) -> Self
pub fn alarm_names(self, input: impl Into<String>) -> Self
Appends an item to alarm_names
.
To override the contents of this collection use set_alarm_names
.
One or more CloudWatch alarm names. Use a "," to separate the alarms.
sourcepub fn set_alarm_names(self, input: Option<Vec<String>>) -> Self
pub fn set_alarm_names(self, input: Option<Vec<String>>) -> Self
One or more CloudWatch alarm names. Use a "," to separate the alarms.
sourcepub fn get_alarm_names(&self) -> &Option<Vec<String>>
pub fn get_alarm_names(&self) -> &Option<Vec<String>>
One or more CloudWatch alarm names. Use a "," to separate the alarms.
sourcepub fn enable(self, input: bool) -> Self
pub fn enable(self, input: bool) -> Self
Determines whether to use the CloudWatch alarm option in the service deployment process.
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 CloudWatch alarm option in the service deployment process.
sourcepub fn get_enable(&self) -> &Option<bool>
pub fn get_enable(&self) -> &Option<bool>
Determines whether to use the CloudWatch alarm option in the service deployment process.
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 used, 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 used, 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 used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
sourcepub fn build(self) -> Result<DeploymentAlarms, BuildError>
pub fn build(self) -> Result<DeploymentAlarms, BuildError>
Consumes the builder and constructs a DeploymentAlarms
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DeploymentAlarmsBuilder
impl Clone for DeploymentAlarmsBuilder
source§fn clone(&self) -> DeploymentAlarmsBuilder
fn clone(&self) -> DeploymentAlarmsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeploymentAlarmsBuilder
impl Debug for DeploymentAlarmsBuilder
source§impl Default for DeploymentAlarmsBuilder
impl Default for DeploymentAlarmsBuilder
source§fn default() -> DeploymentAlarmsBuilder
fn default() -> DeploymentAlarmsBuilder
source§impl PartialEq for DeploymentAlarmsBuilder
impl PartialEq for DeploymentAlarmsBuilder
source§fn eq(&self, other: &DeploymentAlarmsBuilder) -> bool
fn eq(&self, other: &DeploymentAlarmsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeploymentAlarmsBuilder
Auto Trait Implementations§
impl Freeze for DeploymentAlarmsBuilder
impl RefUnwindSafe for DeploymentAlarmsBuilder
impl Send for DeploymentAlarmsBuilder
impl Sync for DeploymentAlarmsBuilder
impl Unpin for DeploymentAlarmsBuilder
impl UnwindSafe for DeploymentAlarmsBuilder
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