AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
LocationAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/LocationTimestamp.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
30 public:
31 AWS_IOT_API LocationAction() = default;
35
37
41 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
42 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
43 template <typename RoleArnT = Aws::String>
44 void SetRoleArn(RoleArnT&& value) {
45 m_roleArnHasBeenSet = true;
46 m_roleArn = std::forward<RoleArnT>(value);
47 }
48 template <typename RoleArnT = Aws::String>
49 LocationAction& WithRoleArn(RoleArnT&& value) {
50 SetRoleArn(std::forward<RoleArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetTrackerName() const { return m_trackerName; }
61 inline bool TrackerNameHasBeenSet() const { return m_trackerNameHasBeenSet; }
62 template <typename TrackerNameT = Aws::String>
63 void SetTrackerName(TrackerNameT&& value) {
64 m_trackerNameHasBeenSet = true;
65 m_trackerName = std::forward<TrackerNameT>(value);
66 }
67 template <typename TrackerNameT = Aws::String>
68 LocationAction& WithTrackerName(TrackerNameT&& value) {
69 SetTrackerName(std::forward<TrackerNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
79 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
80 template <typename DeviceIdT = Aws::String>
81 void SetDeviceId(DeviceIdT&& value) {
82 m_deviceIdHasBeenSet = true;
83 m_deviceId = std::forward<DeviceIdT>(value);
84 }
85 template <typename DeviceIdT = Aws::String>
86 LocationAction& WithDeviceId(DeviceIdT&& value) {
87 SetDeviceId(std::forward<DeviceIdT>(value));
88 return *this;
89 }
91
93
97 inline const LocationTimestamp& GetTimestamp() const { return m_timestamp; }
98 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
99 template <typename TimestampT = LocationTimestamp>
100 void SetTimestamp(TimestampT&& value) {
101 m_timestampHasBeenSet = true;
102 m_timestamp = std::forward<TimestampT>(value);
103 }
104 template <typename TimestampT = LocationTimestamp>
105 LocationAction& WithTimestamp(TimestampT&& value) {
106 SetTimestamp(std::forward<TimestampT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetLatitude() const { return m_latitude; }
117 inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
118 template <typename LatitudeT = Aws::String>
119 void SetLatitude(LatitudeT&& value) {
120 m_latitudeHasBeenSet = true;
121 m_latitude = std::forward<LatitudeT>(value);
122 }
123 template <typename LatitudeT = Aws::String>
124 LocationAction& WithLatitude(LatitudeT&& value) {
125 SetLatitude(std::forward<LatitudeT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::String& GetLongitude() const { return m_longitude; }
136 inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
137 template <typename LongitudeT = Aws::String>
138 void SetLongitude(LongitudeT&& value) {
139 m_longitudeHasBeenSet = true;
140 m_longitude = std::forward<LongitudeT>(value);
141 }
142 template <typename LongitudeT = Aws::String>
143 LocationAction& WithLongitude(LongitudeT&& value) {
144 SetLongitude(std::forward<LongitudeT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_roleArn;
150
151 Aws::String m_trackerName;
152
153 Aws::String m_deviceId;
154
155 LocationTimestamp m_timestamp;
156
157 Aws::String m_latitude;
158
159 Aws::String m_longitude;
160 bool m_roleArnHasBeenSet = false;
161 bool m_trackerNameHasBeenSet = false;
162 bool m_deviceIdHasBeenSet = false;
163 bool m_timestampHasBeenSet = false;
164 bool m_latitudeHasBeenSet = false;
165 bool m_longitudeHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace IoT
170} // namespace Aws
LocationAction & WithTimestamp(TimestampT &&value)
const Aws::String & GetRoleArn() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API LocationAction(Aws::Utils::Json::JsonView jsonValue)
void SetLongitude(LongitudeT &&value)
void SetLatitude(LatitudeT &&value)
AWS_IOT_API LocationAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API LocationAction()=default
const Aws::String & GetDeviceId() const
const Aws::String & GetLongitude() const
const LocationTimestamp & GetTimestamp() const
void SetDeviceId(DeviceIdT &&value)
LocationAction & WithLatitude(LatitudeT &&value)
const Aws::String & GetTrackerName() const
void SetTimestamp(TimestampT &&value)
LocationAction & WithDeviceId(DeviceIdT &&value)
void SetTrackerName(TrackerNameT &&value)
const Aws::String & GetLatitude() const
LocationAction & WithTrackerName(TrackerNameT &&value)
LocationAction & WithLongitude(LongitudeT &&value)
void SetRoleArn(RoleArnT &&value)
LocationAction & WithRoleArn(RoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue