#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateProtectConfigurationInput {
pub protect_configuration_id: ::std::option::Option<::std::string::String>,
pub deletion_protection_enabled: ::std::option::Option<bool>,
}
impl UpdateProtectConfigurationInput {
pub fn protect_configuration_id(&self) -> ::std::option::Option<&str> {
self.protect_configuration_id.as_deref()
}
pub fn deletion_protection_enabled(&self) -> ::std::option::Option<bool> {
self.deletion_protection_enabled
}
}
impl UpdateProtectConfigurationInput {
pub fn builder() -> crate::operation::update_protect_configuration::builders::UpdateProtectConfigurationInputBuilder {
crate::operation::update_protect_configuration::builders::UpdateProtectConfigurationInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateProtectConfigurationInputBuilder {
pub(crate) protect_configuration_id: ::std::option::Option<::std::string::String>,
pub(crate) deletion_protection_enabled: ::std::option::Option<bool>,
}
impl UpdateProtectConfigurationInputBuilder {
pub fn protect_configuration_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.protect_configuration_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_protect_configuration_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.protect_configuration_id = input;
self
}
pub fn get_protect_configuration_id(&self) -> &::std::option::Option<::std::string::String> {
&self.protect_configuration_id
}
pub fn deletion_protection_enabled(mut self, input: bool) -> Self {
self.deletion_protection_enabled = ::std::option::Option::Some(input);
self
}
pub fn set_deletion_protection_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.deletion_protection_enabled = input;
self
}
pub fn get_deletion_protection_enabled(&self) -> &::std::option::Option<bool> {
&self.deletion_protection_enabled
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::update_protect_configuration::UpdateProtectConfigurationInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::update_protect_configuration::UpdateProtectConfigurationInput {
protect_configuration_id: self.protect_configuration_id,
deletion_protection_enabled: self.deletion_protection_enabled,
})
}
}