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.
This field is required.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 get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
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.
This field is required.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 get_alarm_name(&self) -> &Option<String>
pub fn get_alarm_name(&self) -> &Option<String>
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.
This field is required.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 get_state_reason(&self) -> &Option<String>
pub fn get_state_reason(&self) -> &Option<String>
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.
This field is required.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 get_state_value(&self) -> &Option<String>
pub fn get_state_value(&self) -> &Option<String>
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
sourcepub fn build(self) -> Result<CloudwatchAlarmAction, BuildError>
pub fn build(self) -> Result<CloudwatchAlarmAction, BuildError>
Consumes the builder and constructs a CloudwatchAlarmAction.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CloudwatchAlarmActionBuilder
impl Clone for CloudwatchAlarmActionBuilder
source§fn clone(&self) -> CloudwatchAlarmActionBuilder
fn clone(&self) -> CloudwatchAlarmActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for CloudwatchAlarmActionBuilder
impl PartialEq for CloudwatchAlarmActionBuilder
source§fn eq(&self, other: &CloudwatchAlarmActionBuilder) -> bool
fn eq(&self, other: &CloudwatchAlarmActionBuilder) -> bool
self and other values to be equal, and is used
by ==.