#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteProtectionGroupInput {
pub protection_group_id: ::std::option::Option<::std::string::String>,
}
impl DeleteProtectionGroupInput {
pub fn protection_group_id(&self) -> ::std::option::Option<&str> {
self.protection_group_id.as_deref()
}
}
impl DeleteProtectionGroupInput {
pub fn builder() -> crate::operation::delete_protection_group::builders::DeleteProtectionGroupInputBuilder {
crate::operation::delete_protection_group::builders::DeleteProtectionGroupInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteProtectionGroupInputBuilder {
pub(crate) protection_group_id: ::std::option::Option<::std::string::String>,
}
impl DeleteProtectionGroupInputBuilder {
pub fn protection_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.protection_group_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_protection_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.protection_group_id = input;
self
}
pub fn get_protection_group_id(&self) -> &::std::option::Option<::std::string::String> {
&self.protection_group_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_protection_group::DeleteProtectionGroupInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::delete_protection_group::DeleteProtectionGroupInput {
protection_group_id: self.protection_group_id,
})
}
}