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>DescribeLocationS3Request</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeLocationS3Input {
    /// <p>Specifies the Amazon Resource Name (ARN) of the Amazon S3 location.</p>
    pub location_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeLocationS3Input {
    /// <p>Specifies the Amazon Resource Name (ARN) of the Amazon S3 location.</p>
    pub fn location_arn(&self) -> ::std::option::Option<&str> {
        self.location_arn.as_deref()
    }
}
impl DescribeLocationS3Input {
    /// Creates a new builder-style object to manufacture [`DescribeLocationS3Input`](crate::operation::describe_location_s3::DescribeLocationS3Input).
    pub fn builder() -> crate::operation::describe_location_s3::builders::DescribeLocationS3InputBuilder {
        crate::operation::describe_location_s3::builders::DescribeLocationS3InputBuilder::default()
    }
}

/// A builder for [`DescribeLocationS3Input`](crate::operation::describe_location_s3::DescribeLocationS3Input).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeLocationS3InputBuilder {
    pub(crate) location_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeLocationS3InputBuilder {
    /// <p>Specifies the Amazon Resource Name (ARN) of the Amazon S3 location.</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>Specifies the Amazon Resource Name (ARN) of the Amazon S3 location.</p>
    pub fn set_location_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.location_arn = input;
        self
    }
    /// <p>Specifies the Amazon Resource Name (ARN) of the Amazon S3 location.</p>
    pub fn get_location_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.location_arn
    }
    /// Consumes the builder and constructs a [`DescribeLocationS3Input`](crate::operation::describe_location_s3::DescribeLocationS3Input).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_location_s3::DescribeLocationS3Input, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::describe_location_s3::DescribeLocationS3Input {
            location_arn: self.location_arn,
        })
    }
}