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