1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/location/LocationService_EXPORTS.h> 8 #include <aws/location/LocationServiceRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/core/utils/memory/stl/AWSVector.h> 11 #include <aws/location/model/BatchPutGeofenceRequestEntry.h> 12 #include <utility> 13 14 namespace Aws 15 { 16 namespace LocationService 17 { 18 namespace Model 19 { 20 21 /** 22 */ 23 class AWS_LOCATIONSERVICE_API BatchPutGeofenceRequest : public LocationServiceRequest 24 { 25 public: 26 BatchPutGeofenceRequest(); 27 28 // Service request name is the Operation name which will send this request out, 29 // each operation should has unique request name, so that we can get operation's name from this request. 30 // Note: this is not true for response, multiple operations may have the same response name, 31 // so we can not get operation's name from response. GetServiceRequestName()32 inline virtual const char* GetServiceRequestName() const override { return "BatchPutGeofence"; } 33 34 Aws::String SerializePayload() const override; 35 36 37 /** 38 * <p>The geofence collection storing the geofences.</p> 39 */ GetCollectionName()40 inline const Aws::String& GetCollectionName() const{ return m_collectionName; } 41 42 /** 43 * <p>The geofence collection storing the geofences.</p> 44 */ CollectionNameHasBeenSet()45 inline bool CollectionNameHasBeenSet() const { return m_collectionNameHasBeenSet; } 46 47 /** 48 * <p>The geofence collection storing the geofences.</p> 49 */ SetCollectionName(const Aws::String & value)50 inline void SetCollectionName(const Aws::String& value) { m_collectionNameHasBeenSet = true; m_collectionName = value; } 51 52 /** 53 * <p>The geofence collection storing the geofences.</p> 54 */ SetCollectionName(Aws::String && value)55 inline void SetCollectionName(Aws::String&& value) { m_collectionNameHasBeenSet = true; m_collectionName = std::move(value); } 56 57 /** 58 * <p>The geofence collection storing the geofences.</p> 59 */ SetCollectionName(const char * value)60 inline void SetCollectionName(const char* value) { m_collectionNameHasBeenSet = true; m_collectionName.assign(value); } 61 62 /** 63 * <p>The geofence collection storing the geofences.</p> 64 */ WithCollectionName(const Aws::String & value)65 inline BatchPutGeofenceRequest& WithCollectionName(const Aws::String& value) { SetCollectionName(value); return *this;} 66 67 /** 68 * <p>The geofence collection storing the geofences.</p> 69 */ WithCollectionName(Aws::String && value)70 inline BatchPutGeofenceRequest& WithCollectionName(Aws::String&& value) { SetCollectionName(std::move(value)); return *this;} 71 72 /** 73 * <p>The geofence collection storing the geofences.</p> 74 */ WithCollectionName(const char * value)75 inline BatchPutGeofenceRequest& WithCollectionName(const char* value) { SetCollectionName(value); return *this;} 76 77 78 /** 79 * <p>The batch of geofences to be stored in a geofence collection.</p> 80 */ GetEntries()81 inline const Aws::Vector<BatchPutGeofenceRequestEntry>& GetEntries() const{ return m_entries; } 82 83 /** 84 * <p>The batch of geofences to be stored in a geofence collection.</p> 85 */ EntriesHasBeenSet()86 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; } 87 88 /** 89 * <p>The batch of geofences to be stored in a geofence collection.</p> 90 */ SetEntries(const Aws::Vector<BatchPutGeofenceRequestEntry> & value)91 inline void SetEntries(const Aws::Vector<BatchPutGeofenceRequestEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; } 92 93 /** 94 * <p>The batch of geofences to be stored in a geofence collection.</p> 95 */ SetEntries(Aws::Vector<BatchPutGeofenceRequestEntry> && value)96 inline void SetEntries(Aws::Vector<BatchPutGeofenceRequestEntry>&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); } 97 98 /** 99 * <p>The batch of geofences to be stored in a geofence collection.</p> 100 */ WithEntries(const Aws::Vector<BatchPutGeofenceRequestEntry> & value)101 inline BatchPutGeofenceRequest& WithEntries(const Aws::Vector<BatchPutGeofenceRequestEntry>& value) { SetEntries(value); return *this;} 102 103 /** 104 * <p>The batch of geofences to be stored in a geofence collection.</p> 105 */ WithEntries(Aws::Vector<BatchPutGeofenceRequestEntry> && value)106 inline BatchPutGeofenceRequest& WithEntries(Aws::Vector<BatchPutGeofenceRequestEntry>&& value) { SetEntries(std::move(value)); return *this;} 107 108 /** 109 * <p>The batch of geofences to be stored in a geofence collection.</p> 110 */ AddEntries(const BatchPutGeofenceRequestEntry & value)111 inline BatchPutGeofenceRequest& AddEntries(const BatchPutGeofenceRequestEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; } 112 113 /** 114 * <p>The batch of geofences to be stored in a geofence collection.</p> 115 */ AddEntries(BatchPutGeofenceRequestEntry && value)116 inline BatchPutGeofenceRequest& AddEntries(BatchPutGeofenceRequestEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; } 117 118 private: 119 120 Aws::String m_collectionName; 121 bool m_collectionNameHasBeenSet; 122 123 Aws::Vector<BatchPutGeofenceRequestEntry> m_entries; 124 bool m_entriesHasBeenSet; 125 }; 126 127 } // namespace Model 128 } // namespace LocationService 129 } // namespace Aws 130