You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: _alarm.rs
    path of file: ./repos/aws-sdk-rust/sdk/applicationautoscaling/src/types
    
    the code of the file until where you have to start completion: // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Represents a CloudWatch alarm associated with a scaling policy.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Alarm {
    /// <p>The name of the alarm.</p>
    pub alarm_name: ::std::string::String,
    /// <p>The Amazon Resource Name (ARN) of the alarm.</p>
    pub alarm_arn: ::std::string::String,
}
impl Alarm {
    /// <p>The name of the alarm.</p>
    pub fn alarm_name(&self) -> &str {
        use std::ops::Deref;
        self.alarm_name.deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the alarm.</p>
    pub fn alarm_arn(&self) -> &str {
        use std::ops::Der
    
    pub fn build(self) -> ::std::result::Result<crate::types::Alarm, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::Alarm {
            alarm_name: self.alarm_name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "alarm_name",
                    "alarm_name was not specified but it is required when building Alarm",
                )
            })?,
            alarm_arn: self.alarm_arn.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "alarm_arn",
                    "alarm_arn was not specified but it is required when building Alarm",
                )
            })?,
        })
    }