updateGeofenceCollection method
Updates the specified properties of a given geofence collection.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter collectionName :
The name of the geofence collection to update.
Parameter description :
Updates the description for the geofence collection.
Parameter pricingPlan :
No longer used. If included, the only allowed value is
RequestBasedUsage.
Parameter pricingPlanDataSource :
This parameter is no longer used.
Implementation
Future<UpdateGeofenceCollectionResponse> updateGeofenceCollection({
required String collectionName,
String? description,
PricingPlan? pricingPlan,
String? pricingPlanDataSource,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (pricingPlan != null) 'PricingPlan': pricingPlan.value,
if (pricingPlanDataSource != null)
'PricingPlanDataSource': pricingPlanDataSource,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/geofencing/v0/collections/${Uri.encodeComponent(collectionName)}',
exceptionFnMap: _exceptionFns,
);
return UpdateGeofenceCollectionResponse.fromJson(response);
}