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