#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteBackupInput {
#[doc(hidden)]
pub backup_arn: std::option::Option<std::string::String>,
}
impl DeleteBackupInput {
pub fn backup_arn(&self) -> std::option::Option<&str> {
self.backup_arn.as_deref()
}
}
impl DeleteBackupInput {
pub fn builder() -> crate::operation::delete_backup::builders::DeleteBackupInputBuilder {
crate::operation::delete_backup::builders::DeleteBackupInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteBackupInputBuilder {
pub(crate) backup_arn: std::option::Option<std::string::String>,
}
impl DeleteBackupInputBuilder {
pub fn backup_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.backup_arn = Some(input.into());
self
}
pub fn set_backup_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.backup_arn = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::delete_backup::DeleteBackupInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_backup::DeleteBackupInput {
backup_arn: self.backup_arn,
})
}
}