aws-sdk-wellarchitected 1.83.0

AWS SDK for AWS Well-Architected Tool
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 GetReviewTemplateInput {
    /// <p>The review template ARN.</p>
    pub template_arn: ::std::option::Option<::std::string::String>,
}
impl GetReviewTemplateInput {
    /// <p>The review template ARN.</p>
    pub fn template_arn(&self) -> ::std::option::Option<&str> {
        self.template_arn.as_deref()
    }
}
impl GetReviewTemplateInput {
    /// Creates a new builder-style object to manufacture [`GetReviewTemplateInput`](crate::operation::get_review_template::GetReviewTemplateInput).
    pub fn builder() -> crate::operation::get_review_template::builders::GetReviewTemplateInputBuilder {
        crate::operation::get_review_template::builders::GetReviewTemplateInputBuilder::default()
    }
}

/// A builder for [`GetReviewTemplateInput`](crate::operation::get_review_template::GetReviewTemplateInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetReviewTemplateInputBuilder {
    pub(crate) template_arn: ::std::option::Option<::std::string::String>,
}
impl GetReviewTemplateInputBuilder {
    /// <p>The review template ARN.</p>
    /// This field is required.
    pub fn template_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.template_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The review template ARN.</p>
    pub fn set_template_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.template_arn = input;
        self
    }
    /// <p>The review template ARN.</p>
    pub fn get_template_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.template_arn
    }
    /// Consumes the builder and constructs a [`GetReviewTemplateInput`](crate::operation::get_review_template::GetReviewTemplateInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_review_template::GetReviewTemplateInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_review_template::GetReviewTemplateInput {
            template_arn: self.template_arn,
        })
    }
}