// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`SetAlarmState`](crate::operation::set_alarm_state::builders::SetAlarmStateFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`alarm_name(impl Into<String>)`](crate::operation::set_alarm_state::builders::SetAlarmStateFluentBuilder::alarm_name) / [`set_alarm_name(Option<String>)`](crate::operation::set_alarm_state::builders::SetAlarmStateFluentBuilder::set_alarm_name):<br>required: **true**<br><p>The name of the alarm.</p><br>
/// - [`state_value(StateValue)`](crate::operation::set_alarm_state::builders::SetAlarmStateFluentBuilder::state_value) / [`set_state_value(Option<StateValue>)`](crate::operation::set_alarm_state::builders::SetAlarmStateFluentBuilder::set_state_value):<br>required: **true**<br><p>The value of the state.</p><br>
/// - [`state_reason(impl Into<String>)`](crate::operation::set_alarm_state::builders::SetAlarmStateFluentBuilder::state_reason) / [`set_state_reason(Option<String>)`](crate::operation::set_alarm_state::builders::SetAlarmStateFluentBuilder::set_state_reason):<br>required: **true**<br><p>The reason that this alarm is set to this specific state, in text format.</p><br>
/// - [`state_reason_data(impl Into<String>)`](crate::operation::set_alarm_state::builders::SetAlarmStateFluentBuilder::state_reason_data) / [`set_state_reason_data(Option<String>)`](crate::operation::set_alarm_state::builders::SetAlarmStateFluentBuilder::set_state_reason_data):<br>required: **false**<br><p>The reason that this alarm is set to this specific state, in JSON format.</p> <p>For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.</p><br>
/// - On success, responds with [`SetAlarmStateOutput`](crate::operation::set_alarm_state::SetAlarmStateOutput)
/// - On failure, responds with [`SdkError<SetAlarmStateError>`](crate::operation::set_alarm_state::SetAlarmStateError)
pub fn set_alarm_state(&self) -> crate::operation::set_alarm_state::builders::SetAlarmStateFluentBuilder {
crate::operation::set_alarm_state::builders::SetAlarmStateFluentBuilder::new(self.handle.clone())
}
}