#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BatchDeleteGeofenceInput {
#[doc(hidden)]
pub collection_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub geofence_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl BatchDeleteGeofenceInput {
pub fn collection_name(&self) -> std::option::Option<&str> {
self.collection_name.as_deref()
}
pub fn geofence_ids(&self) -> std::option::Option<&[std::string::String]> {
self.geofence_ids.as_deref()
}
}
impl BatchDeleteGeofenceInput {
pub fn builder(
) -> crate::operation::batch_delete_geofence::builders::BatchDeleteGeofenceInputBuilder {
crate::operation::batch_delete_geofence::builders::BatchDeleteGeofenceInputBuilder::default(
)
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct BatchDeleteGeofenceInputBuilder {
pub(crate) collection_name: std::option::Option<std::string::String>,
pub(crate) geofence_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl BatchDeleteGeofenceInputBuilder {
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 geofence_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.geofence_ids.unwrap_or_default();
v.push(input.into());
self.geofence_ids = Some(v);
self
}
pub fn set_geofence_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.geofence_ids = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::batch_delete_geofence::BatchDeleteGeofenceInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::batch_delete_geofence::BatchDeleteGeofenceInput {
collection_name: self.collection_name,
geofence_ids: self.geofence_ids,
},
)
}
}