#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteBackupSelectionInput {
pub backup_plan_id: ::std::option::Option<::std::string::String>,
pub selection_id: ::std::option::Option<::std::string::String>,
}
impl DeleteBackupSelectionInput {
pub fn backup_plan_id(&self) -> ::std::option::Option<&str> {
self.backup_plan_id.as_deref()
}
pub fn selection_id(&self) -> ::std::option::Option<&str> {
self.selection_id.as_deref()
}
}
impl DeleteBackupSelectionInput {
pub fn builder() -> crate::operation::delete_backup_selection::builders::DeleteBackupSelectionInputBuilder {
crate::operation::delete_backup_selection::builders::DeleteBackupSelectionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteBackupSelectionInputBuilder {
pub(crate) backup_plan_id: ::std::option::Option<::std::string::String>,
pub(crate) selection_id: ::std::option::Option<::std::string::String>,
}
impl DeleteBackupSelectionInputBuilder {
pub fn backup_plan_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.backup_plan_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_backup_plan_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.backup_plan_id = input;
self
}
pub fn get_backup_plan_id(&self) -> &::std::option::Option<::std::string::String> {
&self.backup_plan_id
}
pub fn selection_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.selection_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_selection_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.selection_id = input;
self
}
pub fn get_selection_id(&self) -> &::std::option::Option<::std::string::String> {
&self.selection_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_backup_selection::DeleteBackupSelectionInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::delete_backup_selection::DeleteBackupSelectionInput {
backup_plan_id: self.backup_plan_id,
selection_id: self.selection_id,
})
}
}