aws-sdk-efs 0.26.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 DescribeFileSystemsOutput {
    /// <p>Present if provided by caller in the request (String).</p>
    #[doc(hidden)]
    pub marker: std::option::Option<std::string::String>,
    /// <p>An array of file system descriptions.</p>
    #[doc(hidden)]
    pub file_systems: std::option::Option<std::vec::Vec<crate::types::FileSystemDescription>>,
    /// <p>Present if there are more file systems than returned in the response (String). You can use the <code>NextMarker</code> in the subsequent request to fetch the descriptions.</p>
    #[doc(hidden)]
    pub next_marker: std::option::Option<std::string::String>,
    _request_id: Option<String>,
}
impl DescribeFileSystemsOutput {
    /// <p>Present if provided by caller in the request (String).</p>
    pub fn marker(&self) -> std::option::Option<&str> {
        self.marker.as_deref()
    }
    /// <p>An array of file system descriptions.</p>
    pub fn file_systems(&self) -> std::option::Option<&[crate::types::FileSystemDescription]> {
        self.file_systems.as_deref()
    }
    /// <p>Present if there are more file systems than returned in the response (String). You can use the <code>NextMarker</code> in the subsequent request to fetch the descriptions.</p>
    pub fn next_marker(&self) -> std::option::Option<&str> {
        self.next_marker.as_deref()
    }
}
impl aws_http::request_id::RequestId for DescribeFileSystemsOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeFileSystemsOutput {
    /// Creates a new builder-style object to manufacture [`DescribeFileSystemsOutput`](crate::operation::describe_file_systems::DescribeFileSystemsOutput).
    pub fn builder(
    ) -> crate::operation::describe_file_systems::builders::DescribeFileSystemsOutputBuilder {
        crate::operation::describe_file_systems::builders::DescribeFileSystemsOutputBuilder::default(
        )
    }
}

/// A builder for [`DescribeFileSystemsOutput`](crate::operation::describe_file_systems::DescribeFileSystemsOutput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeFileSystemsOutputBuilder {
    pub(crate) marker: std::option::Option<std::string::String>,
    pub(crate) file_systems:
        std::option::Option<std::vec::Vec<crate::types::FileSystemDescription>>,
    pub(crate) next_marker: std::option::Option<std::string::String>,
    _request_id: Option<String>,
}
impl DescribeFileSystemsOutputBuilder {
    /// <p>Present if provided by caller in the request (String).</p>
    pub fn marker(mut self, input: impl Into<std::string::String>) -> Self {
        self.marker = Some(input.into());
        self
    }
    /// <p>Present if provided by caller in the request (String).</p>
    pub fn set_marker(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.marker = input;
        self
    }
    /// Appends an item to `file_systems`.
    ///
    /// To override the contents of this collection use [`set_file_systems`](Self::set_file_systems).
    ///
    /// <p>An array of file system descriptions.</p>
    pub fn file_systems(mut self, input: crate::types::FileSystemDescription) -> Self {
        let mut v = self.file_systems.unwrap_or_default();
        v.push(input);
        self.file_systems = Some(v);
        self
    }
    /// <p>An array of file system descriptions.</p>
    pub fn set_file_systems(
        mut self,
        input: std::option::Option<std::vec::Vec<crate::types::FileSystemDescription>>,
    ) -> Self {
        self.file_systems = input;
        self
    }
    /// <p>Present if there are more file systems than returned in the response (String). You can use the <code>NextMarker</code> in the subsequent request to fetch the descriptions.</p>
    pub fn next_marker(mut self, input: impl Into<std::string::String>) -> Self {
        self.next_marker = Some(input.into());
        self
    }
    /// <p>Present if there are more file systems than returned in the response (String). You can use the <code>NextMarker</code> in the subsequent request to fetch the descriptions.</p>
    pub fn set_next_marker(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.next_marker = input;
        self
    }
    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 [`DescribeFileSystemsOutput`](crate::operation::describe_file_systems::DescribeFileSystemsOutput).
    pub fn build(self) -> crate::operation::describe_file_systems::DescribeFileSystemsOutput {
        crate::operation::describe_file_systems::DescribeFileSystemsOutput {
            marker: self.marker,
            file_systems: self.file_systems,
            next_marker: self.next_marker,
            _request_id: self._request_id,
        }
    }
}