aws-sdk-datasync 1.109.0

AWS SDK for AWS DataSync
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>DescribeLocationEfsRequest</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeLocationEfsInput {
    /// <p>The Amazon Resource Name (ARN) of the Amazon EFS file system location that you want information about.</p>
    pub location_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeLocationEfsInput {
    /// <p>The Amazon Resource Name (ARN) of the Amazon EFS file system location that you want information about.</p>
    pub fn location_arn(&self) -> ::std::option::Option<&str> {
        self.location_arn.as_deref()
    }
}
impl DescribeLocationEfsInput {
    /// Creates a new builder-style object to manufacture [`DescribeLocationEfsInput`](crate::operation::describe_location_efs::DescribeLocationEfsInput).
    pub fn builder() -> crate::operation::describe_location_efs::builders::DescribeLocationEfsInputBuilder {
        crate::operation::describe_location_efs::builders::DescribeLocationEfsInputBuilder::default()
    }
}

/// A builder for [`DescribeLocationEfsInput`](crate::operation::describe_location_efs::DescribeLocationEfsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeLocationEfsInputBuilder {
    pub(crate) location_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeLocationEfsInputBuilder {
    /// <p>The Amazon Resource Name (ARN) of the Amazon EFS file system location that you want information about.</p>
    /// This field is required.
    pub fn location_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.location_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the Amazon EFS file system location that you want information about.</p>
    pub fn set_location_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.location_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the Amazon EFS file system location that you want information about.</p>
    pub fn get_location_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.location_arn
    }
    /// Consumes the builder and constructs a [`DescribeLocationEfsInput`](crate::operation::describe_location_efs::DescribeLocationEfsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_location_efs::DescribeLocationEfsInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::describe_location_efs::DescribeLocationEfsInput {
            location_arn: self.location_arn,
        })
    }
}