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