#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateFolderInput {
pub aws_account_id: ::std::option::Option<::std::string::String>,
pub folder_id: ::std::option::Option<::std::string::String>,
pub name: ::std::option::Option<::std::string::String>,
}
impl UpdateFolderInput {
pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
self.aws_account_id.as_deref()
}
pub fn folder_id(&self) -> ::std::option::Option<&str> {
self.folder_id.as_deref()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
}
impl UpdateFolderInput {
pub fn builder() -> crate::operation::update_folder::builders::UpdateFolderInputBuilder {
crate::operation::update_folder::builders::UpdateFolderInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateFolderInputBuilder {
pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
pub(crate) folder_id: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
}
impl UpdateFolderInputBuilder {
pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.aws_account_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.aws_account_id = input;
self
}
pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.aws_account_id
}
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 name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_folder::UpdateFolderInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_folder::UpdateFolderInput {
aws_account_id: self.aws_account_id,
folder_id: self.folder_id,
name: self.name,
})
}
}