#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DisassociateProtectConfigurationInput {
pub protect_configuration_id: ::std::option::Option<::std::string::String>,
pub configuration_set_name: ::std::option::Option<::std::string::String>,
}
impl DisassociateProtectConfigurationInput {
pub fn protect_configuration_id(&self) -> ::std::option::Option<&str> {
self.protect_configuration_id.as_deref()
}
pub fn configuration_set_name(&self) -> ::std::option::Option<&str> {
self.configuration_set_name.as_deref()
}
}
impl DisassociateProtectConfigurationInput {
pub fn builder() -> crate::operation::disassociate_protect_configuration::builders::DisassociateProtectConfigurationInputBuilder {
crate::operation::disassociate_protect_configuration::builders::DisassociateProtectConfigurationInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisassociateProtectConfigurationInputBuilder {
pub(crate) protect_configuration_id: ::std::option::Option<::std::string::String>,
pub(crate) configuration_set_name: ::std::option::Option<::std::string::String>,
}
impl DisassociateProtectConfigurationInputBuilder {
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 configuration_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.configuration_set_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_configuration_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.configuration_set_name = input;
self
}
pub fn get_configuration_set_name(&self) -> &::std::option::Option<::std::string::String> {
&self.configuration_set_name
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(
crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationInput {
protect_configuration_id: self.protect_configuration_id,
configuration_set_name: self.configuration_set_name,
},
)
}
}