AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchEvaluateGeofencesRequest.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/DevicePositionUpdate.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LocationService {
17namespace Model {
18
22 public:
23 AWS_LOCATIONSERVICE_API BatchEvaluateGeofencesRequest() = 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 "BatchEvaluateGeofences"; }
30
31 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetCollectionName() const { return m_collectionName; }
39 inline bool CollectionNameHasBeenSet() const { return m_collectionNameHasBeenSet; }
40 template <typename CollectionNameT = Aws::String>
41 void SetCollectionName(CollectionNameT&& value) {
42 m_collectionNameHasBeenSet = true;
43 m_collectionName = std::forward<CollectionNameT>(value);
44 }
45 template <typename CollectionNameT = Aws::String>
47 SetCollectionName(std::forward<CollectionNameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::Vector<DevicePositionUpdate>& GetDevicePositionUpdates() const { return m_devicePositionUpdates; }
58 inline bool DevicePositionUpdatesHasBeenSet() const { return m_devicePositionUpdatesHasBeenSet; }
59 template <typename DevicePositionUpdatesT = Aws::Vector<DevicePositionUpdate>>
60 void SetDevicePositionUpdates(DevicePositionUpdatesT&& value) {
61 m_devicePositionUpdatesHasBeenSet = true;
62 m_devicePositionUpdates = std::forward<DevicePositionUpdatesT>(value);
63 }
64 template <typename DevicePositionUpdatesT = Aws::Vector<DevicePositionUpdate>>
66 SetDevicePositionUpdates(std::forward<DevicePositionUpdatesT>(value));
67 return *this;
68 }
69 template <typename DevicePositionUpdatesT = DevicePositionUpdate>
71 m_devicePositionUpdatesHasBeenSet = true;
72 m_devicePositionUpdates.emplace_back(std::forward<DevicePositionUpdatesT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_collectionName;
78
79 Aws::Vector<DevicePositionUpdate> m_devicePositionUpdates;
80 bool m_collectionNameHasBeenSet = false;
81 bool m_devicePositionUpdatesHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace LocationService
86} // namespace Aws
BatchEvaluateGeofencesRequest & WithDevicePositionUpdates(DevicePositionUpdatesT &&value)
AWS_LOCATIONSERVICE_API BatchEvaluateGeofencesRequest()=default
const Aws::Vector< DevicePositionUpdate > & GetDevicePositionUpdates() const
BatchEvaluateGeofencesRequest & WithCollectionName(CollectionNameT &&value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
BatchEvaluateGeofencesRequest & AddDevicePositionUpdates(DevicePositionUpdatesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector