aws-sdk-lightsail 1.105.0

AWS SDK for Amazon Lightsail
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteAlarmInput {
    /// <p>The name of the alarm to delete.</p>
    pub alarm_name: ::std::option::Option<::std::string::String>,
}
impl DeleteAlarmInput {
    /// <p>The name of the alarm to delete.</p>
    pub fn alarm_name(&self) -> ::std::option::Option<&str> {
        self.alarm_name.as_deref()
    }
}
impl DeleteAlarmInput {
    /// Creates a new builder-style object to manufacture [`DeleteAlarmInput`](crate::operation::delete_alarm::DeleteAlarmInput).
    pub fn builder() -> crate::operation::delete_alarm::builders::DeleteAlarmInputBuilder {
        crate::operation::delete_alarm::builders::DeleteAlarmInputBuilder::default()
    }
}

/// A builder for [`DeleteAlarmInput`](crate::operation::delete_alarm::DeleteAlarmInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteAlarmInputBuilder {
    pub(crate) alarm_name: ::std::option::Option<::std::string::String>,
}
impl DeleteAlarmInputBuilder {
    /// <p>The name of the alarm to delete.</p>
    /// This field is required.
    pub fn alarm_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.alarm_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the alarm to delete.</p>
    pub fn set_alarm_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.alarm_name = input;
        self
    }
    /// <p>The name of the alarm to delete.</p>
    pub fn get_alarm_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.alarm_name
    }
    /// Consumes the builder and constructs a [`DeleteAlarmInput`](crate::operation::delete_alarm::DeleteAlarmInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::delete_alarm::DeleteAlarmInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_alarm::DeleteAlarmInput { alarm_name: self.alarm_name })
    }
}