#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteFolderInput {
#[doc(hidden)]
pub aws_account_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub folder_id: std::option::Option<std::string::String>,
}
impl DeleteFolderInput {
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()
}
}
impl DeleteFolderInput {
pub fn builder() -> crate::operation::delete_folder::builders::DeleteFolderInputBuilder {
crate::operation::delete_folder::builders::DeleteFolderInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteFolderInputBuilder {
pub(crate) aws_account_id: std::option::Option<std::string::String>,
pub(crate) folder_id: std::option::Option<std::string::String>,
}
impl DeleteFolderInputBuilder {
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 build(
self,
) -> Result<
crate::operation::delete_folder::DeleteFolderInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_folder::DeleteFolderInput {
aws_account_id: self.aws_account_id,
folder_id: self.folder_id,
})
}
}