#[non_exhaustive]pub struct AlarmSpecificationBuilder { /* private fields */ }Expand description
A builder for AlarmSpecification.
Implementations§
source§impl AlarmSpecificationBuilder
impl AlarmSpecificationBuilder
sourcepub fn alarms(self, input: impl Into<String>) -> Self
pub fn alarms(self, input: impl Into<String>) -> Self
Appends an item to alarms.
To override the contents of this collection use set_alarms.
The names of one or more CloudWatch alarms to monitor for the instance refresh. You can specify up to 10 alarms.
sourcepub fn set_alarms(self, input: Option<Vec<String>>) -> Self
pub fn set_alarms(self, input: Option<Vec<String>>) -> Self
The names of one or more CloudWatch alarms to monitor for the instance refresh. You can specify up to 10 alarms.
sourcepub fn get_alarms(&self) -> &Option<Vec<String>>
pub fn get_alarms(&self) -> &Option<Vec<String>>
The names of one or more CloudWatch alarms to monitor for the instance refresh. You can specify up to 10 alarms.
sourcepub fn build(self) -> AlarmSpecification
pub fn build(self) -> AlarmSpecification
Consumes the builder and constructs a AlarmSpecification.
Trait Implementations§
source§impl Clone for AlarmSpecificationBuilder
impl Clone for AlarmSpecificationBuilder
source§fn clone(&self) -> AlarmSpecificationBuilder
fn clone(&self) -> AlarmSpecificationBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AlarmSpecificationBuilder
impl Debug for AlarmSpecificationBuilder
source§impl Default for AlarmSpecificationBuilder
impl Default for AlarmSpecificationBuilder
source§fn default() -> AlarmSpecificationBuilder
fn default() -> AlarmSpecificationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AlarmSpecificationBuilder
impl PartialEq for AlarmSpecificationBuilder
source§fn eq(&self, other: &AlarmSpecificationBuilder) -> bool
fn eq(&self, other: &AlarmSpecificationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AlarmSpecificationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AlarmSpecificationBuilder
impl Send for AlarmSpecificationBuilder
impl Sync for AlarmSpecificationBuilder
impl Unpin for AlarmSpecificationBuilder
impl UnwindSafe for AlarmSpecificationBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.