aws-sdk-route53 0.25.0

AWS SDK for Amazon Route 53
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteCidrCollectionInput {
    /// <p>The UUID of the collection to delete.</p>
    #[doc(hidden)]
    pub id: std::option::Option<std::string::String>,
}
impl DeleteCidrCollectionInput {
    /// <p>The UUID of the collection to delete.</p>
    pub fn id(&self) -> std::option::Option<&str> {
        self.id.as_deref()
    }
}
impl DeleteCidrCollectionInput {
    /// Creates a new builder-style object to manufacture [`DeleteCidrCollectionInput`](crate::operation::delete_cidr_collection::DeleteCidrCollectionInput).
    pub fn builder(
    ) -> crate::operation::delete_cidr_collection::builders::DeleteCidrCollectionInputBuilder {
        crate::operation::delete_cidr_collection::builders::DeleteCidrCollectionInputBuilder::default()
    }
}

/// A builder for [`DeleteCidrCollectionInput`](crate::operation::delete_cidr_collection::DeleteCidrCollectionInput).
#[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 {
    /// <p>The UUID of the collection to delete.</p>
    pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
        self.id = Some(input.into());
        self
    }
    /// <p>The UUID of the collection to delete.</p>
    pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// Consumes the builder and constructs a [`DeleteCidrCollectionInput`](crate::operation::delete_cidr_collection::DeleteCidrCollectionInput).
    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 })
    }
}