#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct GetFolderInput {
pub authentication_token: ::std::option::Option<::std::string::String>,
pub folder_id: ::std::option::Option<::std::string::String>,
pub include_custom_metadata: ::std::option::Option<bool>,
}
impl GetFolderInput {
pub fn authentication_token(&self) -> ::std::option::Option<&str> {
self.authentication_token.as_deref()
}
pub fn folder_id(&self) -> ::std::option::Option<&str> {
self.folder_id.as_deref()
}
pub fn include_custom_metadata(&self) -> ::std::option::Option<bool> {
self.include_custom_metadata
}
}
impl ::std::fmt::Debug for GetFolderInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetFolderInput");
formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
formatter.field("folder_id", &self.folder_id);
formatter.field("include_custom_metadata", &self.include_custom_metadata);
formatter.finish()
}
}
impl GetFolderInput {
pub fn builder() -> crate::operation::get_folder::builders::GetFolderInputBuilder {
crate::operation::get_folder::builders::GetFolderInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct GetFolderInputBuilder {
pub(crate) authentication_token: ::std::option::Option<::std::string::String>,
pub(crate) folder_id: ::std::option::Option<::std::string::String>,
pub(crate) include_custom_metadata: ::std::option::Option<bool>,
}
impl GetFolderInputBuilder {
pub fn authentication_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.authentication_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_authentication_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.authentication_token = input;
self
}
pub fn get_authentication_token(&self) -> &::std::option::Option<::std::string::String> {
&self.authentication_token
}
pub fn folder_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.folder_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_folder_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.folder_id = input;
self
}
pub fn get_folder_id(&self) -> &::std::option::Option<::std::string::String> {
&self.folder_id
}
pub fn include_custom_metadata(mut self, input: bool) -> Self {
self.include_custom_metadata = ::std::option::Option::Some(input);
self
}
pub fn set_include_custom_metadata(mut self, input: ::std::option::Option<bool>) -> Self {
self.include_custom_metadata = input;
self
}
pub fn get_include_custom_metadata(&self) -> &::std::option::Option<bool> {
&self.include_custom_metadata
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_folder::GetFolderInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_folder::GetFolderInput {
authentication_token: self.authentication_token,
folder_id: self.folder_id,
include_custom_metadata: self.include_custom_metadata,
})
}
}
impl ::std::fmt::Debug for GetFolderInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetFolderInputBuilder");
formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
formatter.field("folder_id", &self.folder_id);
formatter.field("include_custom_metadata", &self.include_custom_metadata);
formatter.finish()
}
}