/* * Copyright 2018-2023 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. */ package com.amazonaws.services.location.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BatchEvaluateGeofencesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The geofence collection used in evaluating the position of devices against its geofences. *
*/ private String collectionName; /** ** Contains device details for each device to be evaluated against the given geofence collection. *
*/ private java.util.List* The geofence collection used in evaluating the position of devices against its geofences. *
* * @param collectionName * The geofence collection used in evaluating the position of devices against its geofences. */ public void setCollectionName(String collectionName) { this.collectionName = collectionName; } /** ** The geofence collection used in evaluating the position of devices against its geofences. *
* * @return The geofence collection used in evaluating the position of devices against its geofences. */ public String getCollectionName() { return this.collectionName; } /** ** The geofence collection used in evaluating the position of devices against its geofences. *
* * @param collectionName * The geofence collection used in evaluating the position of devices against its geofences. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchEvaluateGeofencesRequest withCollectionName(String collectionName) { setCollectionName(collectionName); return this; } /** ** Contains device details for each device to be evaluated against the given geofence collection. *
* * @return Contains device details for each device to be evaluated against the given geofence collection. */ public java.util.List* Contains device details for each device to be evaluated against the given geofence collection. *
* * @param devicePositionUpdates * Contains device details for each device to be evaluated against the given geofence collection. */ public void setDevicePositionUpdates(java.util.Collection* Contains device details for each device to be evaluated against the given geofence collection. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDevicePositionUpdates(java.util.Collection)} or * {@link #withDevicePositionUpdates(java.util.Collection)} if you want to override the existing values. *
* * @param devicePositionUpdates * Contains device details for each device to be evaluated against the given geofence collection. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchEvaluateGeofencesRequest withDevicePositionUpdates(DevicePositionUpdate... devicePositionUpdates) { if (this.devicePositionUpdates == null) { setDevicePositionUpdates(new java.util.ArrayList* Contains device details for each device to be evaluated against the given geofence collection. *
* * @param devicePositionUpdates * Contains device details for each device to be evaluated against the given geofence collection. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchEvaluateGeofencesRequest withDevicePositionUpdates(java.util.Collection