AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
Device.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/panorama/Panorama_EXPORTS.h>
11#include <aws/panorama/model/DeviceAggregatedStatus.h>
12#include <aws/panorama/model/DeviceBrand.h>
13#include <aws/panorama/model/DeviceStatus.h>
14#include <aws/panorama/model/DeviceType.h>
15#include <aws/panorama/model/LatestDeviceJob.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Panorama {
27namespace Model {
28
34class Device {
35 public:
36 AWS_PANORAMA_API Device() = default;
37 AWS_PANORAMA_API Device(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PANORAMA_API Device& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline DeviceBrand GetBrand() const { return m_brand; }
46 inline bool BrandHasBeenSet() const { return m_brandHasBeenSet; }
47 inline void SetBrand(DeviceBrand value) {
48 m_brandHasBeenSet = true;
49 m_brand = value;
50 }
51 inline Device& WithBrand(DeviceBrand value) {
52 SetBrand(value);
53 return *this;
54 }
56
58
61 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
62 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
63 template <typename CreatedTimeT = Aws::Utils::DateTime>
64 void SetCreatedTime(CreatedTimeT&& value) {
65 m_createdTimeHasBeenSet = true;
66 m_createdTime = std::forward<CreatedTimeT>(value);
67 }
68 template <typename CreatedTimeT = Aws::Utils::DateTime>
69 Device& WithCreatedTime(CreatedTimeT&& value) {
70 SetCreatedTime(std::forward<CreatedTimeT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetCurrentSoftware() const { return m_currentSoftware; }
80 inline bool CurrentSoftwareHasBeenSet() const { return m_currentSoftwareHasBeenSet; }
81 template <typename CurrentSoftwareT = Aws::String>
82 void SetCurrentSoftware(CurrentSoftwareT&& value) {
83 m_currentSoftwareHasBeenSet = true;
84 m_currentSoftware = std::forward<CurrentSoftwareT>(value);
85 }
86 template <typename CurrentSoftwareT = Aws::String>
87 Device& WithCurrentSoftware(CurrentSoftwareT&& value) {
88 SetCurrentSoftware(std::forward<CurrentSoftwareT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
105 Device& WithDescription(DescriptionT&& value) {
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
116 inline DeviceAggregatedStatus GetDeviceAggregatedStatus() const { return m_deviceAggregatedStatus; }
117 inline bool DeviceAggregatedStatusHasBeenSet() const { return m_deviceAggregatedStatusHasBeenSet; }
119 m_deviceAggregatedStatusHasBeenSet = true;
120 m_deviceAggregatedStatus = value;
121 }
124 return *this;
125 }
127
129
132 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
133 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
134 template <typename DeviceIdT = Aws::String>
135 void SetDeviceId(DeviceIdT&& value) {
136 m_deviceIdHasBeenSet = true;
137 m_deviceId = std::forward<DeviceIdT>(value);
138 }
139 template <typename DeviceIdT = Aws::String>
140 Device& WithDeviceId(DeviceIdT&& value) {
141 SetDeviceId(std::forward<DeviceIdT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
151 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
152 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
153 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
154 m_lastUpdatedTimeHasBeenSet = true;
155 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
156 }
157 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
158 Device& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
159 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
160 return *this;
161 }
163
165
169 inline const LatestDeviceJob& GetLatestDeviceJob() const { return m_latestDeviceJob; }
170 inline bool LatestDeviceJobHasBeenSet() const { return m_latestDeviceJobHasBeenSet; }
171 template <typename LatestDeviceJobT = LatestDeviceJob>
172 void SetLatestDeviceJob(LatestDeviceJobT&& value) {
173 m_latestDeviceJobHasBeenSet = true;
174 m_latestDeviceJob = std::forward<LatestDeviceJobT>(value);
175 }
176 template <typename LatestDeviceJobT = LatestDeviceJob>
177 Device& WithLatestDeviceJob(LatestDeviceJobT&& value) {
178 SetLatestDeviceJob(std::forward<LatestDeviceJobT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Utils::DateTime& GetLeaseExpirationTime() const { return m_leaseExpirationTime; }
188 inline bool LeaseExpirationTimeHasBeenSet() const { return m_leaseExpirationTimeHasBeenSet; }
189 template <typename LeaseExpirationTimeT = Aws::Utils::DateTime>
190 void SetLeaseExpirationTime(LeaseExpirationTimeT&& value) {
191 m_leaseExpirationTimeHasBeenSet = true;
192 m_leaseExpirationTime = std::forward<LeaseExpirationTimeT>(value);
193 }
194 template <typename LeaseExpirationTimeT = Aws::Utils::DateTime>
195 Device& WithLeaseExpirationTime(LeaseExpirationTimeT&& value) {
196 SetLeaseExpirationTime(std::forward<LeaseExpirationTimeT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetName() const { return m_name; }
206 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
207 template <typename NameT = Aws::String>
208 void SetName(NameT&& value) {
209 m_nameHasBeenSet = true;
210 m_name = std::forward<NameT>(value);
211 }
212 template <typename NameT = Aws::String>
213 Device& WithName(NameT&& value) {
214 SetName(std::forward<NameT>(value));
215 return *this;
216 }
218
220
223 inline DeviceStatus GetProvisioningStatus() const { return m_provisioningStatus; }
224 inline bool ProvisioningStatusHasBeenSet() const { return m_provisioningStatusHasBeenSet; }
226 m_provisioningStatusHasBeenSet = true;
227 m_provisioningStatus = value;
228 }
231 return *this;
232 }
234
236
239 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
240 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
241 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
242 void SetTags(TagsT&& value) {
243 m_tagsHasBeenSet = true;
244 m_tags = std::forward<TagsT>(value);
245 }
246 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
247 Device& WithTags(TagsT&& value) {
248 SetTags(std::forward<TagsT>(value));
249 return *this;
250 }
251 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
252 Device& AddTags(TagsKeyT&& key, TagsValueT&& value) {
253 m_tagsHasBeenSet = true;
254 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
255 return *this;
256 }
258
260
263 inline DeviceType GetType() const { return m_type; }
264 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
265 inline void SetType(DeviceType value) {
266 m_typeHasBeenSet = true;
267 m_type = value;
268 }
269 inline Device& WithType(DeviceType value) {
270 SetType(value);
271 return *this;
272 }
274 private:
276
277 Aws::Utils::DateTime m_createdTime{};
278
279 Aws::String m_currentSoftware;
280
281 Aws::String m_description;
282
284
285 Aws::String m_deviceId;
286
287 Aws::Utils::DateTime m_lastUpdatedTime{};
288
289 LatestDeviceJob m_latestDeviceJob;
290
291 Aws::Utils::DateTime m_leaseExpirationTime{};
292
293 Aws::String m_name;
294
295 DeviceStatus m_provisioningStatus{DeviceStatus::NOT_SET};
296
298
300 bool m_brandHasBeenSet = false;
301 bool m_createdTimeHasBeenSet = false;
302 bool m_currentSoftwareHasBeenSet = false;
303 bool m_descriptionHasBeenSet = false;
304 bool m_deviceAggregatedStatusHasBeenSet = false;
305 bool m_deviceIdHasBeenSet = false;
306 bool m_lastUpdatedTimeHasBeenSet = false;
307 bool m_latestDeviceJobHasBeenSet = false;
308 bool m_leaseExpirationTimeHasBeenSet = false;
309 bool m_nameHasBeenSet = false;
310 bool m_provisioningStatusHasBeenSet = false;
311 bool m_tagsHasBeenSet = false;
312 bool m_typeHasBeenSet = false;
313};
314
315} // namespace Model
316} // namespace Panorama
317} // namespace Aws
void SetCreatedTime(CreatedTimeT &&value)
Definition Device.h:64
bool DeviceIdHasBeenSet() const
Definition Device.h:133
Device & WithCurrentSoftware(CurrentSoftwareT &&value)
Definition Device.h:87
void SetBrand(DeviceBrand value)
Definition Device.h:47
bool LastUpdatedTimeHasBeenSet() const
Definition Device.h:151
void SetLeaseExpirationTime(LeaseExpirationTimeT &&value)
Definition Device.h:190
bool LatestDeviceJobHasBeenSet() const
Definition Device.h:170
Device & WithLatestDeviceJob(LatestDeviceJobT &&value)
Definition Device.h:177
DeviceBrand GetBrand() const
Definition Device.h:45
bool ProvisioningStatusHasBeenSet() const
Definition Device.h:224
Device & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Device.h:252
void SetProvisioningStatus(DeviceStatus value)
Definition Device.h:225
void SetDeviceId(DeviceIdT &&value)
Definition Device.h:135
void SetCurrentSoftware(CurrentSoftwareT &&value)
Definition Device.h:82
DeviceType GetType() const
Definition Device.h:263
void SetLatestDeviceJob(LatestDeviceJobT &&value)
Definition Device.h:172
bool TypeHasBeenSet() const
Definition Device.h:264
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Device.h:239
void SetTags(TagsT &&value)
Definition Device.h:242
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Device.h:153
DeviceStatus GetProvisioningStatus() const
Definition Device.h:223
bool DeviceAggregatedStatusHasBeenSet() const
Definition Device.h:117
bool DescriptionHasBeenSet() const
Definition Device.h:98
bool LeaseExpirationTimeHasBeenSet() const
Definition Device.h:188
bool CreatedTimeHasBeenSet() const
Definition Device.h:62
void SetName(NameT &&value)
Definition Device.h:208
void SetDeviceAggregatedStatus(DeviceAggregatedStatus value)
Definition Device.h:118
bool TagsHasBeenSet() const
Definition Device.h:240
const Aws::String & GetName() const
Definition Device.h:205
AWS_PANORAMA_API Device(Aws::Utils::Json::JsonView jsonValue)
Device & WithCreatedTime(CreatedTimeT &&value)
Definition Device.h:69
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Device.h:150
bool NameHasBeenSet() const
Definition Device.h:206
bool CurrentSoftwareHasBeenSet() const
Definition Device.h:80
Device & WithBrand(DeviceBrand value)
Definition Device.h:51
Device & WithLeaseExpirationTime(LeaseExpirationTimeT &&value)
Definition Device.h:195
Device & WithDeviceId(DeviceIdT &&value)
Definition Device.h:140
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
const LatestDeviceJob & GetLatestDeviceJob() const
Definition Device.h:169
bool BrandHasBeenSet() const
Definition Device.h:46
const Aws::String & GetDescription() const
Definition Device.h:97
Device & WithName(NameT &&value)
Definition Device.h:213
Device & WithDeviceAggregatedStatus(DeviceAggregatedStatus value)
Definition Device.h:122
void SetDescription(DescriptionT &&value)
Definition Device.h:100
AWS_PANORAMA_API Device()=default
Device & WithProvisioningStatus(DeviceStatus value)
Definition Device.h:229
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Device.h:61
DeviceAggregatedStatus GetDeviceAggregatedStatus() const
Definition Device.h:116
Device & WithType(DeviceType value)
Definition Device.h:269
AWS_PANORAMA_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
Device & WithTags(TagsT &&value)
Definition Device.h:247
void SetType(DeviceType value)
Definition Device.h:265
Device & WithDescription(DescriptionT &&value)
Definition Device.h:105
const Aws::String & GetDeviceId() const
Definition Device.h:132
Device & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Device.h:158
const Aws::Utils::DateTime & GetLeaseExpirationTime() const
Definition Device.h:187
const Aws::String & GetCurrentSoftware() const
Definition Device.h:79
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue