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