aws-sdk-fsx 1.105.0

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

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

/// A builder for [`UpdateFileSystemOutput`](crate::operation::update_file_system::UpdateFileSystemOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateFileSystemOutputBuilder {
    pub(crate) file_system: ::std::option::Option<crate::types::FileSystem>,
    _request_id: Option<String>,
}
impl UpdateFileSystemOutputBuilder {
    /// <p>A description of the file system that was updated.</p>
    pub fn file_system(mut self, input: crate::types::FileSystem) -> Self {
        self.file_system = ::std::option::Option::Some(input);
        self
    }
    /// <p>A description of the file system that was updated.</p>
    pub fn set_file_system(mut self, input: ::std::option::Option<crate::types::FileSystem>) -> Self {
        self.file_system = input;
        self
    }
    /// <p>A description of the file system that was updated.</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 [`UpdateFileSystemOutput`](crate::operation::update_file_system::UpdateFileSystemOutput).
    pub fn build(self) -> crate::operation::update_file_system::UpdateFileSystemOutput {
        crate::operation::update_file_system::UpdateFileSystemOutput {
            file_system: self.file_system,
            _request_id: self._request_id,
        }
    }
}