/* * Copyright 2010-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.geo.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; /** *
* A batch request for storing geofence geometries into a given geofence * collection, or updates the geometry of an existing geofence if a geofence ID * is included in the request. *
*/ public class BatchPutGeofenceRequest extends AmazonWebServiceRequest implements Serializable { /** ** The geofence collection storing the geofences. *
*
* Constraints:
* Length: 1 - 100
* Pattern: ^[-._\w]+$
*/
private String collectionName;
/**
*
* The batch of geofences to be stored in a geofence collection. *
*/ private java.util.List* The geofence collection storing the geofences. *
*
* Constraints:
* Length: 1 - 100
* Pattern: ^[-._\w]+$
*
* @return
* The geofence collection storing the geofences. *
*/ public String getCollectionName() { return collectionName; } /** ** The geofence collection storing the geofences. *
*
* Constraints:
* Length: 1 - 100
* Pattern: ^[-._\w]+$
*
* @param collectionName
* The geofence collection storing the geofences. *
*/ public void setCollectionName(String collectionName) { this.collectionName = collectionName; } /** ** The geofence collection storing the geofences. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 100
* Pattern: ^[-._\w]+$
*
* @param collectionName
* The geofence collection storing the geofences. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BatchPutGeofenceRequest withCollectionName(String collectionName) { this.collectionName = collectionName; return this; } /** ** The batch of geofences to be stored in a geofence collection. *
* * @return* The batch of geofences to be stored in a geofence collection. *
*/ public java.util.List* The batch of geofences to be stored in a geofence collection. *
* * @param entries* The batch of geofences to be stored in a geofence collection. *
*/ public void setEntries(java.util.Collection* The batch of geofences to be stored in a geofence collection. *
** Returns a reference to this object so that method calls can be chained * together. * * @param entries
* The batch of geofences to be stored in a geofence collection. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BatchPutGeofenceRequest withEntries(BatchPutGeofenceRequestEntry... entries) { if (getEntries() == null) { this.entries = new java.util.ArrayList* The batch of geofences to be stored in a geofence collection. *
** Returns a reference to this object so that method calls can be chained * together. * * @param entries
* The batch of geofences to be stored in a geofence collection. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BatchPutGeofenceRequest withEntries( java.util.Collection