aws_sdk_location/client/
get_geofence.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetGeofence`](crate::operation::get_geofence::builders::GetGeofenceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`collection_name(impl Into<String>)`](crate::operation::get_geofence::builders::GetGeofenceFluentBuilder::collection_name) / [`set_collection_name(Option<String>)`](crate::operation::get_geofence::builders::GetGeofenceFluentBuilder::set_collection_name):<br>required: **true**<br><p>The geofence collection storing the target geofence.</p><br>
7    ///   - [`geofence_id(impl Into<String>)`](crate::operation::get_geofence::builders::GetGeofenceFluentBuilder::geofence_id) / [`set_geofence_id(Option<String>)`](crate::operation::get_geofence::builders::GetGeofenceFluentBuilder::set_geofence_id):<br>required: **true**<br><p>The geofence you're retrieving details for.</p><br>
8    /// - On success, responds with [`GetGeofenceOutput`](crate::operation::get_geofence::GetGeofenceOutput) with field(s):
9    ///   - [`geofence_id(String)`](crate::operation::get_geofence::GetGeofenceOutput::geofence_id): <p>The geofence identifier.</p>
10    ///   - [`geometry(Option<GeofenceGeometry>)`](crate::operation::get_geofence::GetGeofenceOutput::geometry): <p>Contains the geofence geometry details describing the position of the geofence. Can be a circle, a polygon, or a multipolygon.</p>
11    ///   - [`status(String)`](crate::operation::get_geofence::GetGeofenceOutput::status): <p>Identifies the state of the geofence. A geofence will hold one of the following states:</p> <ul>  <li>   <p><code>ACTIVE</code> — The geofence has been indexed by the system.</p></li>  <li>   <p><code>PENDING</code> — The geofence is being processed by the system.</p></li>  <li>   <p><code>FAILED</code> — The geofence failed to be indexed by the system.</p></li>  <li>   <p><code>DELETED</code> — The geofence has been deleted from the system index.</p></li>  <li>   <p><code>DELETING</code> — The geofence is being deleted from the system index.</p></li> </ul>
12    ///   - [`create_time(DateTime)`](crate::operation::get_geofence::GetGeofenceOutput::create_time): <p>The timestamp for when the geofence collection was created in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format: <code>YYYY-MM-DDThh:mm:ss.sssZ</code></p>
13    ///   - [`update_time(DateTime)`](crate::operation::get_geofence::GetGeofenceOutput::update_time): <p>The timestamp for when the geofence collection was last updated in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format: <code>YYYY-MM-DDThh:mm:ss.sssZ</code></p>
14    ///   - [`geofence_properties(Option<HashMap::<String, String>>)`](crate::operation::get_geofence::GetGeofenceOutput::geofence_properties): <p>User defined properties of the geofence. A property is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence.</p> <p>Format: <code>"key" : "value"</code></p>
15    /// - On failure, responds with [`SdkError<GetGeofenceError>`](crate::operation::get_geofence::GetGeofenceError)
16    pub fn get_geofence(&self) -> crate::operation::get_geofence::builders::GetGeofenceFluentBuilder {
17        crate::operation::get_geofence::builders::GetGeofenceFluentBuilder::new(self.handle.clone())
18    }
19}