aws-sdk-efs 1.75.0

AWS SDK for Amazon Elastic File System
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 DescribeLifecycleConfigurationInput {
    /// <p>The ID of the file system whose <code>LifecycleConfiguration</code> object you want to retrieve (String).</p>
    pub file_system_id: ::std::option::Option<::std::string::String>,
}
impl DescribeLifecycleConfigurationInput {
    /// <p>The ID of the file system whose <code>LifecycleConfiguration</code> object you want to retrieve (String).</p>
    pub fn file_system_id(&self) -> ::std::option::Option<&str> {
        self.file_system_id.as_deref()
    }
}
impl DescribeLifecycleConfigurationInput {
    /// Creates a new builder-style object to manufacture [`DescribeLifecycleConfigurationInput`](crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationInput).
    pub fn builder() -> crate::operation::describe_lifecycle_configuration::builders::DescribeLifecycleConfigurationInputBuilder {
        crate::operation::describe_lifecycle_configuration::builders::DescribeLifecycleConfigurationInputBuilder::default()
    }
}

/// A builder for [`DescribeLifecycleConfigurationInput`](crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeLifecycleConfigurationInputBuilder {
    pub(crate) file_system_id: ::std::option::Option<::std::string::String>,
}
impl DescribeLifecycleConfigurationInputBuilder {
    /// <p>The ID of the file system whose <code>LifecycleConfiguration</code> object you want to retrieve (String).</p>
    /// This field is required.
    pub fn file_system_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.file_system_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the file system whose <code>LifecycleConfiguration</code> object you want to retrieve (String).</p>
    pub fn set_file_system_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.file_system_id = input;
        self
    }
    /// <p>The ID of the file system whose <code>LifecycleConfiguration</code> object you want to retrieve (String).</p>
    pub fn get_file_system_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.file_system_id
    }
    /// Consumes the builder and constructs a [`DescribeLifecycleConfigurationInput`](crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationInput {
            file_system_id: self.file_system_id,
        })
    }
}