#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeFileSystemsOutput {
pub marker: ::std::option::Option<::std::string::String>,
pub file_systems: ::std::option::Option<::std::vec::Vec<crate::types::FileSystemDescription>>,
pub next_marker: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl DescribeFileSystemsOutput {
pub fn marker(&self) -> ::std::option::Option<&str> {
self.marker.as_deref()
}
pub fn file_systems(&self) -> &[crate::types::FileSystemDescription] {
self.file_systems.as_deref().unwrap_or_default()
}
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 {
pub fn builder() -> crate::operation::describe_file_systems::builders::DescribeFileSystemsOutputBuilder {
crate::operation::describe_file_systems::builders::DescribeFileSystemsOutputBuilder::default()
}
}
#[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 {
pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.marker = ::std::option::Option::Some(input.into());
self
}
pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.marker = input;
self
}
pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
&self.marker
}
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 = ::std::option::Option::Some(v);
self
}
pub fn set_file_systems(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FileSystemDescription>>) -> Self {
self.file_systems = input;
self
}
pub fn get_file_systems(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FileSystemDescription>> {
&self.file_systems
}
pub fn next_marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.next_marker = ::std::option::Option::Some(input.into());
self
}
pub fn set_next_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_marker = input;
self
}
pub fn get_next_marker(&self) -> &::std::option::Option<::std::string::String> {
&self.next_marker
}
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
}
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,
}
}
}