#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetGeofenceInput {
#[doc(hidden)]
pub collection_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub geofence_id: std::option::Option<std::string::String>,
}
impl GetGeofenceInput {
pub fn collection_name(&self) -> std::option::Option<&str> {
self.collection_name.as_deref()
}
pub fn geofence_id(&self) -> std::option::Option<&str> {
self.geofence_id.as_deref()
}
}
impl GetGeofenceInput {
pub fn builder() -> crate::operation::get_geofence::builders::GetGeofenceInputBuilder {
crate::operation::get_geofence::builders::GetGeofenceInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetGeofenceInputBuilder {
pub(crate) collection_name: std::option::Option<std::string::String>,
pub(crate) geofence_id: std::option::Option<std::string::String>,
}
impl GetGeofenceInputBuilder {
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_id(mut self, input: impl Into<std::string::String>) -> Self {
self.geofence_id = Some(input.into());
self
}
pub fn set_geofence_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.geofence_id = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::get_geofence::GetGeofenceInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::get_geofence::GetGeofenceInput {
collection_name: self.collection_name,
geofence_id: self.geofence_id,
})
}
}