AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchUpdateDevicePositionRequest.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 BatchUpdateDevicePositionRequest() = 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 "BatchUpdateDevicePosition"; }
30
31 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetTrackerName() const { return m_trackerName; }
38 inline bool TrackerNameHasBeenSet() const { return m_trackerNameHasBeenSet; }
39 template <typename TrackerNameT = Aws::String>
40 void SetTrackerName(TrackerNameT&& value) {
41 m_trackerNameHasBeenSet = true;
42 m_trackerName = std::forward<TrackerNameT>(value);
43 }
44 template <typename TrackerNameT = Aws::String>
46 SetTrackerName(std::forward<TrackerNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<DevicePositionUpdate>& GetUpdates() const { return m_updates; }
56 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
57 template <typename UpdatesT = Aws::Vector<DevicePositionUpdate>>
58 void SetUpdates(UpdatesT&& value) {
59 m_updatesHasBeenSet = true;
60 m_updates = std::forward<UpdatesT>(value);
61 }
62 template <typename UpdatesT = Aws::Vector<DevicePositionUpdate>>
64 SetUpdates(std::forward<UpdatesT>(value));
65 return *this;
66 }
67 template <typename UpdatesT = DevicePositionUpdate>
69 m_updatesHasBeenSet = true;
70 m_updates.emplace_back(std::forward<UpdatesT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_trackerName;
76
78 bool m_trackerNameHasBeenSet = false;
79 bool m_updatesHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace LocationService
84} // namespace Aws
BatchUpdateDevicePositionRequest & WithUpdates(UpdatesT &&value)
AWS_LOCATIONSERVICE_API BatchUpdateDevicePositionRequest()=default
BatchUpdateDevicePositionRequest & WithTrackerName(TrackerNameT &&value)
BatchUpdateDevicePositionRequest & AddUpdates(UpdatesT &&value)
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