Struct aws_sdk_iot::types::builders::CloudwatchAlarmActionBuilder
source · #[non_exhaustive]pub struct CloudwatchAlarmActionBuilder { /* private fields */ }Expand description
A builder for CloudwatchAlarmAction.
Implementations§
source§impl CloudwatchAlarmActionBuilder
impl CloudwatchAlarmActionBuilder
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The IAM role that allows access to the CloudWatch alarm.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The IAM role that allows access to the CloudWatch alarm.
sourcepub fn alarm_name(self, input: impl Into<String>) -> Self
pub fn alarm_name(self, input: impl Into<String>) -> Self
The CloudWatch alarm name.
sourcepub fn set_alarm_name(self, input: Option<String>) -> Self
pub fn set_alarm_name(self, input: Option<String>) -> Self
The CloudWatch alarm name.
sourcepub fn state_reason(self, input: impl Into<String>) -> Self
pub fn state_reason(self, input: impl Into<String>) -> Self
The reason for the alarm change.
sourcepub fn set_state_reason(self, input: Option<String>) -> Self
pub fn set_state_reason(self, input: Option<String>) -> Self
The reason for the alarm change.
sourcepub fn state_value(self, input: impl Into<String>) -> Self
pub fn state_value(self, input: impl Into<String>) -> Self
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
sourcepub fn set_state_value(self, input: Option<String>) -> Self
pub fn set_state_value(self, input: Option<String>) -> Self
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
sourcepub fn build(self) -> CloudwatchAlarmAction
pub fn build(self) -> CloudwatchAlarmAction
Consumes the builder and constructs a CloudwatchAlarmAction.
Trait Implementations§
source§impl Clone for CloudwatchAlarmActionBuilder
impl Clone for CloudwatchAlarmActionBuilder
source§fn clone(&self) -> CloudwatchAlarmActionBuilder
fn clone(&self) -> CloudwatchAlarmActionBuilder
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 CloudwatchAlarmActionBuilder
impl Debug for CloudwatchAlarmActionBuilder
source§impl Default for CloudwatchAlarmActionBuilder
impl Default for CloudwatchAlarmActionBuilder
source§fn default() -> CloudwatchAlarmActionBuilder
fn default() -> CloudwatchAlarmActionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<CloudwatchAlarmActionBuilder> for CloudwatchAlarmActionBuilder
impl PartialEq<CloudwatchAlarmActionBuilder> for CloudwatchAlarmActionBuilder
source§fn eq(&self, other: &CloudwatchAlarmActionBuilder) -> bool
fn eq(&self, other: &CloudwatchAlarmActionBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CloudwatchAlarmActionBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CloudwatchAlarmActionBuilder
impl Send for CloudwatchAlarmActionBuilder
impl Sync for CloudwatchAlarmActionBuilder
impl Unpin for CloudwatchAlarmActionBuilder
impl UnwindSafe for CloudwatchAlarmActionBuilder
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