// 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 DecodeAuthorizationMessageInput {
    /// <p>The encoded message that was returned with the response.</p>
    pub encoded_message: ::std::option::Option<::std::string::String>,
}
impl DecodeAuthorizationMessageInput {
    /// <p>The encoded message that was returned with the response.</p>
    pub fn encoded_message(&self) -> ::std::option::Option<&str> {
        self.encoded_message.as_deref()
    }
}
impl DecodeAuthorizationMessageInput {
    /// Creates a new builder-style object to manufacture [`DecodeAuthorizationMessageInput`](crate::operation::decode_authorization_message::DecodeAuthorizationMessageInput).
    pub fn builder() -> crate::operation::decode_authorization_message::builders::DecodeAuthorizationMessageInputBuilder {
        crate::operation::decode_authorization_message::builders::DecodeAuthorizationMessageInputBuilder::default()
    }
}

/// A builder for [`DecodeAuthorizationMessageInput`](crate::operation::decode_authorization_message::DecodeAuthorizationMessageInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DecodeAuthorizationMessageInputBuilder {
    pub(crate) encoded_message: ::std::option::Option<::std::string::String>,
}
impl DecodeAuthorizationMessageInputBuilder {
    /// <p>The encoded message that was returned with the response.</p>
    /// This field is required.
    pub fn encoded_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.encoded_message = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The encoded message that was returned with the response.</p>
    pub fn set_encoded_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.encoded_message = input;
        self
    }
    /// <p>The encoded message that was returned with the response.</p>
    pub fn get_encoded_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.encoded_message
    }
    /// Consumes the builder and constructs a [`DecodeAuthorizationMessageInput`](crate::operation::decode_authorization_message::DecodeAuthorizationMessageInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::decode_authorization_message::DecodeAuthorizationMessageInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::decode_authorization_message::DecodeAuthorizationMessageInput {
            encoded_message: self.encoded_message,
        })
    }
}
