aws-sdk-backup 1.109.0

AWS SDK for AWS Backup
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 DescribeFrameworkInput {
    /// <p>The unique name of a framework.</p>
    pub framework_name: ::std::option::Option<::std::string::String>,
}
impl DescribeFrameworkInput {
    /// <p>The unique name of a framework.</p>
    pub fn framework_name(&self) -> ::std::option::Option<&str> {
        self.framework_name.as_deref()
    }
}
impl DescribeFrameworkInput {
    /// Creates a new builder-style object to manufacture [`DescribeFrameworkInput`](crate::operation::describe_framework::DescribeFrameworkInput).
    pub fn builder() -> crate::operation::describe_framework::builders::DescribeFrameworkInputBuilder {
        crate::operation::describe_framework::builders::DescribeFrameworkInputBuilder::default()
    }
}

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