#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteGroupInput {
#[doc(hidden)]
pub group_id: std::option::Option<std::string::String>,
}
impl DeleteGroupInput {
pub fn group_id(&self) -> std::option::Option<&str> {
self.group_id.as_deref()
}
}
impl DeleteGroupInput {
pub fn builder() -> crate::operation::delete_group::builders::DeleteGroupInputBuilder {
crate::operation::delete_group::builders::DeleteGroupInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteGroupInputBuilder {
pub(crate) group_id: std::option::Option<std::string::String>,
}
impl DeleteGroupInputBuilder {
pub fn group_id(mut self, input: impl Into<std::string::String>) -> Self {
self.group_id = Some(input.into());
self
}
pub fn set_group_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.group_id = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::delete_group::DeleteGroupInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_group::DeleteGroupInput {
group_id: self.group_id,
})
}
}