#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateFolderInput {
#[doc(hidden)]
pub aws_account_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub folder_id: std::option::Option<std::string::String>,
#[doc(hidden)]
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 Into<std::string::String>) -> Self {
self.aws_account_id = 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 folder_id(mut self, input: impl Into<std::string::String>) -> Self {
self.folder_id = 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 name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::update_folder::UpdateFolderInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::update_folder::UpdateFolderInput {
aws_account_id: self.aws_account_id,
folder_id: self.folder_id,
name: self.name,
})
}
}