AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchPutGeofenceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/location/LocationServiceRequest.h>
10#include <aws/location/LocationService_EXPORTS.h>
11#include <aws/location/model/BatchPutGeofenceRequestEntry.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LocationService {
17namespace Model {
18
22 public:
23 AWS_LOCATIONSERVICE_API BatchPutGeofenceRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "BatchPutGeofence"; }
30
31 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetCollectionName() const { return m_collectionName; }
38 inline bool CollectionNameHasBeenSet() const { return m_collectionNameHasBeenSet; }
39 template <typename CollectionNameT = Aws::String>
40 void SetCollectionName(CollectionNameT&& value) {
41 m_collectionNameHasBeenSet = true;
42 m_collectionName = std::forward<CollectionNameT>(value);
43 }
44 template <typename CollectionNameT = Aws::String>
45 BatchPutGeofenceRequest& WithCollectionName(CollectionNameT&& value) {
46 SetCollectionName(std::forward<CollectionNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<BatchPutGeofenceRequestEntry>& GetEntries() const { return m_entries; }
56 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
57 template <typename EntriesT = Aws::Vector<BatchPutGeofenceRequestEntry>>
58 void SetEntries(EntriesT&& value) {
59 m_entriesHasBeenSet = true;
60 m_entries = std::forward<EntriesT>(value);
61 }
62 template <typename EntriesT = Aws::Vector<BatchPutGeofenceRequestEntry>>
64 SetEntries(std::forward<EntriesT>(value));
65 return *this;
66 }
67 template <typename EntriesT = BatchPutGeofenceRequestEntry>
69 m_entriesHasBeenSet = true;
70 m_entries.emplace_back(std::forward<EntriesT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_collectionName;
76
78 bool m_collectionNameHasBeenSet = false;
79 bool m_entriesHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace LocationService
84} // namespace Aws
BatchPutGeofenceRequest & WithEntries(EntriesT &&value)
BatchPutGeofenceRequest & WithCollectionName(CollectionNameT &&value)
BatchPutGeofenceRequest & AddEntries(EntriesT &&value)
const Aws::Vector< BatchPutGeofenceRequestEntry > & GetEntries() const
virtual const char * GetServiceRequestName() const override
AWS_LOCATIONSERVICE_API BatchPutGeofenceRequest()=default
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector