#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteBackupInput {
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()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteBackupInputBuilder {
pub(crate) backup_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteBackupInputBuilder {
pub fn backup_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.backup_arn = ::std::option::Option::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 get_backup_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.backup_arn
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_backup::DeleteBackupInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_backup::DeleteBackupInput { backup_arn: self.backup_arn })
}
}