/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the location-2020-11-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.LocationService.Model
{
///
/// Container for the parameters to the BatchEvaluateGeofences operation.
/// Evaluates device positions against the geofence geometries from a given geofence collection.
///
///
///
/// This operation always returns an empty response because geofences are asynchronously
/// evaluated. The evaluation determines if the device has entered or exited a geofenced
/// area, and then publishes one of the following events to Amazon EventBridge:
///
/// -
///
///
ENTER
if Amazon Location determines that the tracked device has entered
/// a geofenced area.
///
/// -
///
///
EXIT
if Amazon Location determines that the tracked device has exited
/// a geofenced area.
///
///
///
/// The last geofence that a device was observed within is tracked for 30 days after the
/// most recent device position update.
///
///
///
/// Geofence evaluation uses the given device position. It does not account for the optional
/// Accuracy
of a DevicePositionUpdate
.
///
///
///
/// The DeviceID
is used as a string to represent the device. You do not
/// need to have a Tracker
associated with the DeviceID
.
///
///
///
public partial class BatchEvaluateGeofencesRequest : AmazonLocationServiceRequest
{
private string _collectionName;
private List _devicePositionUpdates = new List();
///
/// Gets and sets the property CollectionName.
///
/// The geofence collection used in evaluating the position of devices against its geofences.
///
///
[AWSProperty(Required=true, Min=1, Max=100)]
public string CollectionName
{
get { return this._collectionName; }
set { this._collectionName = value; }
}
// Check to see if CollectionName property is set
internal bool IsSetCollectionName()
{
return this._collectionName != null;
}
///
/// Gets and sets the property DevicePositionUpdates.
///
/// Contains device details for each device to be evaluated against the given geofence
/// collection.
///
///
[AWSProperty(Required=true, Min=1, Max=10)]
public List DevicePositionUpdates
{
get { return this._devicePositionUpdates; }
set { this._devicePositionUpdates = value; }
}
// Check to see if DevicePositionUpdates property is set
internal bool IsSetDevicePositionUpdates()
{
return this._devicePositionUpdates != null && this._devicePositionUpdates.Count > 0;
}
}
}