aws_sdk_location/client/list_geofences.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 [`ListGeofences`](crate::operation::list_geofences::builders::ListGeofencesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_geofences::builders::ListGeofencesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`collection_name(impl Into<String>)`](crate::operation::list_geofences::builders::ListGeofencesFluentBuilder::collection_name) / [`set_collection_name(Option<String>)`](crate::operation::list_geofences::builders::ListGeofencesFluentBuilder::set_collection_name):<br>required: **true**<br><p>The name of the geofence collection storing the list of geofences.</p><br>
8 /// - [`next_token(impl Into<String>)`](crate::operation::list_geofences::builders::ListGeofencesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_geofences::builders::ListGeofencesFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.</p> <p>Default value: <code>null</code></p><br>
9 /// - [`max_results(i32)`](crate::operation::list_geofences::builders::ListGeofencesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_geofences::builders::ListGeofencesFluentBuilder::set_max_results):<br>required: **false**<br><p>An optional limit for the number of geofences returned in a single call.</p> <p>Default value: <code>100</code></p><br>
10 /// - On success, responds with [`ListGeofencesOutput`](crate::operation::list_geofences::ListGeofencesOutput) with field(s):
11 /// - [`entries(Vec::<ListGeofenceResponseEntry>)`](crate::operation::list_geofences::ListGeofencesOutput::entries): <p>Contains a list of geofences stored in the geofence collection.</p>
12 /// - [`next_token(Option<String>)`](crate::operation::list_geofences::ListGeofencesOutput::next_token): <p>A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.</p>
13 /// - On failure, responds with [`SdkError<ListGeofencesError>`](crate::operation::list_geofences::ListGeofencesError)
14 pub fn list_geofences(&self) -> crate::operation::list_geofences::builders::ListGeofencesFluentBuilder {
15 crate::operation::list_geofences::builders::ListGeofencesFluentBuilder::new(self.handle.clone())
16 }
17}