aws-sdk-fsx 1.111.0

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

/// <p>The response object returned after the file system is created.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateFileSystemOutput {
    /// <p>The configuration of the file system that was created.</p>
    pub file_system: ::std::option::Option<crate::types::FileSystem>,
    _request_id: Option<String>,
}
impl CreateFileSystemOutput {
    /// <p>The configuration of the file system that was created.</p>
    pub fn file_system(&self) -> ::std::option::Option<&crate::types::FileSystem> {
        self.file_system.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for CreateFileSystemOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateFileSystemOutput {
    /// Creates a new builder-style object to manufacture [`CreateFileSystemOutput`](crate::operation::create_file_system::CreateFileSystemOutput).
    pub fn builder() -> crate::operation::create_file_system::builders::CreateFileSystemOutputBuilder {
        crate::operation::create_file_system::builders::CreateFileSystemOutputBuilder::default()
    }
}

/// A builder for [`CreateFileSystemOutput`](crate::operation::create_file_system::CreateFileSystemOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateFileSystemOutputBuilder {
    pub(crate) file_system: ::std::option::Option<crate::types::FileSystem>,
    _request_id: Option<String>,
}
impl CreateFileSystemOutputBuilder {
    /// <p>The configuration of the file system that was created.</p>
    pub fn file_system(mut self, input: crate::types::FileSystem) -> Self {
        self.file_system = ::std::option::Option::Some(input);
        self
    }
    /// <p>The configuration of the file system that was created.</p>
    pub fn set_file_system(mut self, input: ::std::option::Option<crate::types::FileSystem>) -> Self {
        self.file_system = input;
        self
    }
    /// <p>The configuration of the file system that was created.</p>
    pub fn get_file_system(&self) -> &::std::option::Option<crate::types::FileSystem> {
        &self.file_system
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`CreateFileSystemOutput`](crate::operation::create_file_system::CreateFileSystemOutput).
    pub fn build(self) -> crate::operation::create_file_system::CreateFileSystemOutput {
        crate::operation::create_file_system::CreateFileSystemOutput {
            file_system: self.file_system,
            _request_id: self._request_id,
        }
    }
}