Struct aws_sdk_codedeploy::model::alarm_configuration::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for AlarmConfiguration
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Indicates whether the alarm configuration is enabled.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Indicates whether the alarm configuration is enabled.
sourcepub fn ignore_poll_alarm_failure(self, input: bool) -> Self
pub fn ignore_poll_alarm_failure(self, input: bool) -> Self
Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch. The default value is false.
-
true
: The deployment proceeds even if alarm status information can't be retrieved from Amazon CloudWatch. -
false
: The deployment stops if alarm status information can't be retrieved from Amazon CloudWatch.
sourcepub fn set_ignore_poll_alarm_failure(self, input: Option<bool>) -> Self
pub fn set_ignore_poll_alarm_failure(self, input: Option<bool>) -> Self
Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch. The default value is false.
-
true
: The deployment proceeds even if alarm status information can't be retrieved from Amazon CloudWatch. -
false
: The deployment stops if alarm status information can't be retrieved from Amazon CloudWatch.
sourcepub fn alarms(self, input: Alarm) -> Self
pub fn alarms(self, input: Alarm) -> Self
Appends an item to alarms
.
To override the contents of this collection use set_alarms
.
A list of alarms configured for the deployment group. A maximum of 10 alarms can be added to a deployment group.
sourcepub fn set_alarms(self, input: Option<Vec<Alarm>>) -> Self
pub fn set_alarms(self, input: Option<Vec<Alarm>>) -> Self
A list of alarms configured for the deployment group. A maximum of 10 alarms can be added to a deployment group.
sourcepub fn build(self) -> AlarmConfiguration
pub fn build(self) -> AlarmConfiguration
Consumes the builder and constructs a AlarmConfiguration
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more