AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Device.h
1
6#pragma once
7#include <aws/panorama/Panorama_EXPORTS.h>
8#include <aws/panorama/model/DeviceBrand.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/panorama/model/DeviceAggregatedStatus.h>
12#include <aws/panorama/model/LatestDeviceJob.h>
13#include <aws/panorama/model/DeviceStatus.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/panorama/model/DeviceType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Panorama
29{
30namespace Model
31{
32
38 class Device
39 {
40 public:
41 AWS_PANORAMA_API Device();
42 AWS_PANORAMA_API Device(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PANORAMA_API Device& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const DeviceBrand& GetBrand() const{ return m_brand; }
52 inline bool BrandHasBeenSet() const { return m_brandHasBeenSet; }
53 inline void SetBrand(const DeviceBrand& value) { m_brandHasBeenSet = true; m_brand = value; }
54 inline void SetBrand(DeviceBrand&& value) { m_brandHasBeenSet = true; m_brand = std::move(value); }
55 inline Device& WithBrand(const DeviceBrand& value) { SetBrand(value); return *this;}
56 inline Device& WithBrand(DeviceBrand&& value) { SetBrand(std::move(value)); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
64 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
65 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
66 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
67 inline Device& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
68 inline Device& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
70
72
75 inline const Aws::String& GetCurrentSoftware() const{ return m_currentSoftware; }
76 inline bool CurrentSoftwareHasBeenSet() const { return m_currentSoftwareHasBeenSet; }
77 inline void SetCurrentSoftware(const Aws::String& value) { m_currentSoftwareHasBeenSet = true; m_currentSoftware = value; }
78 inline void SetCurrentSoftware(Aws::String&& value) { m_currentSoftwareHasBeenSet = true; m_currentSoftware = std::move(value); }
79 inline void SetCurrentSoftware(const char* value) { m_currentSoftwareHasBeenSet = true; m_currentSoftware.assign(value); }
80 inline Device& WithCurrentSoftware(const Aws::String& value) { SetCurrentSoftware(value); return *this;}
81 inline Device& WithCurrentSoftware(Aws::String&& value) { SetCurrentSoftware(std::move(value)); return *this;}
82 inline Device& WithCurrentSoftware(const char* value) { SetCurrentSoftware(value); return *this;}
84
86
89 inline const Aws::String& GetDescription() const{ return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
92 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
93 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
94 inline Device& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
95 inline Device& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
96 inline Device& WithDescription(const char* value) { SetDescription(value); return *this;}
98
100
104 inline const DeviceAggregatedStatus& GetDeviceAggregatedStatus() const{ return m_deviceAggregatedStatus; }
105 inline bool DeviceAggregatedStatusHasBeenSet() const { return m_deviceAggregatedStatusHasBeenSet; }
106 inline void SetDeviceAggregatedStatus(const DeviceAggregatedStatus& value) { m_deviceAggregatedStatusHasBeenSet = true; m_deviceAggregatedStatus = value; }
107 inline void SetDeviceAggregatedStatus(DeviceAggregatedStatus&& value) { m_deviceAggregatedStatusHasBeenSet = true; m_deviceAggregatedStatus = std::move(value); }
109 inline Device& WithDeviceAggregatedStatus(DeviceAggregatedStatus&& value) { SetDeviceAggregatedStatus(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
117 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
118 inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
119 inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
120 inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
121 inline Device& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
122 inline Device& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
123 inline Device& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
131 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
132 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
133 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
134 inline Device& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
135 inline Device& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
137
139
143 inline const LatestDeviceJob& GetLatestDeviceJob() const{ return m_latestDeviceJob; }
144 inline bool LatestDeviceJobHasBeenSet() const { return m_latestDeviceJobHasBeenSet; }
145 inline void SetLatestDeviceJob(const LatestDeviceJob& value) { m_latestDeviceJobHasBeenSet = true; m_latestDeviceJob = value; }
146 inline void SetLatestDeviceJob(LatestDeviceJob&& value) { m_latestDeviceJobHasBeenSet = true; m_latestDeviceJob = std::move(value); }
147 inline Device& WithLatestDeviceJob(const LatestDeviceJob& value) { SetLatestDeviceJob(value); return *this;}
148 inline Device& WithLatestDeviceJob(LatestDeviceJob&& value) { SetLatestDeviceJob(std::move(value)); return *this;}
150
152
155 inline const Aws::Utils::DateTime& GetLeaseExpirationTime() const{ return m_leaseExpirationTime; }
156 inline bool LeaseExpirationTimeHasBeenSet() const { return m_leaseExpirationTimeHasBeenSet; }
157 inline void SetLeaseExpirationTime(const Aws::Utils::DateTime& value) { m_leaseExpirationTimeHasBeenSet = true; m_leaseExpirationTime = value; }
158 inline void SetLeaseExpirationTime(Aws::Utils::DateTime&& value) { m_leaseExpirationTimeHasBeenSet = true; m_leaseExpirationTime = std::move(value); }
159 inline Device& WithLeaseExpirationTime(const Aws::Utils::DateTime& value) { SetLeaseExpirationTime(value); return *this;}
160 inline Device& WithLeaseExpirationTime(Aws::Utils::DateTime&& value) { SetLeaseExpirationTime(std::move(value)); return *this;}
162
164
167 inline const Aws::String& GetName() const{ return m_name; }
168 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
169 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
170 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
171 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
172 inline Device& WithName(const Aws::String& value) { SetName(value); return *this;}
173 inline Device& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
174 inline Device& WithName(const char* value) { SetName(value); return *this;}
176
178
181 inline const DeviceStatus& GetProvisioningStatus() const{ return m_provisioningStatus; }
182 inline bool ProvisioningStatusHasBeenSet() const { return m_provisioningStatusHasBeenSet; }
183 inline void SetProvisioningStatus(const DeviceStatus& value) { m_provisioningStatusHasBeenSet = true; m_provisioningStatus = value; }
184 inline void SetProvisioningStatus(DeviceStatus&& value) { m_provisioningStatusHasBeenSet = true; m_provisioningStatus = std::move(value); }
185 inline Device& WithProvisioningStatus(const DeviceStatus& value) { SetProvisioningStatus(value); return *this;}
186 inline Device& WithProvisioningStatus(DeviceStatus&& value) { SetProvisioningStatus(std::move(value)); return *this;}
188
190
193 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
194 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
195 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
196 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
197 inline Device& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
198 inline Device& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
199 inline Device& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
200 inline Device& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
201 inline Device& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
202 inline Device& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
203 inline Device& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
204 inline Device& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
205 inline Device& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
207
209
212 inline const DeviceType& GetType() const{ return m_type; }
213 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
214 inline void SetType(const DeviceType& value) { m_typeHasBeenSet = true; m_type = value; }
215 inline void SetType(DeviceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
216 inline Device& WithType(const DeviceType& value) { SetType(value); return *this;}
217 inline Device& WithType(DeviceType&& value) { SetType(std::move(value)); return *this;}
219 private:
220
221 DeviceBrand m_brand;
222 bool m_brandHasBeenSet = false;
223
224 Aws::Utils::DateTime m_createdTime;
225 bool m_createdTimeHasBeenSet = false;
226
227 Aws::String m_currentSoftware;
228 bool m_currentSoftwareHasBeenSet = false;
229
230 Aws::String m_description;
231 bool m_descriptionHasBeenSet = false;
232
233 DeviceAggregatedStatus m_deviceAggregatedStatus;
234 bool m_deviceAggregatedStatusHasBeenSet = false;
235
236 Aws::String m_deviceId;
237 bool m_deviceIdHasBeenSet = false;
238
239 Aws::Utils::DateTime m_lastUpdatedTime;
240 bool m_lastUpdatedTimeHasBeenSet = false;
241
242 LatestDeviceJob m_latestDeviceJob;
243 bool m_latestDeviceJobHasBeenSet = false;
244
245 Aws::Utils::DateTime m_leaseExpirationTime;
246 bool m_leaseExpirationTimeHasBeenSet = false;
247
248 Aws::String m_name;
249 bool m_nameHasBeenSet = false;
250
251 DeviceStatus m_provisioningStatus;
252 bool m_provisioningStatusHasBeenSet = false;
253
255 bool m_tagsHasBeenSet = false;
256
257 DeviceType m_type;
258 bool m_typeHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace Panorama
263} // namespace Aws
void SetDeviceId(const Aws::String &value)
Definition Device.h:118
const DeviceType & GetType() const
Definition Device.h:212
bool DeviceIdHasBeenSet() const
Definition Device.h:117
const DeviceBrand & GetBrand() const
Definition Device.h:51
bool LastUpdatedTimeHasBeenSet() const
Definition Device.h:131
void SetLatestDeviceJob(const LatestDeviceJob &value)
Definition Device.h:145
bool LatestDeviceJobHasBeenSet() const
Definition Device.h:144
Device & AddTags(const Aws::String &key, const Aws::String &value)
Definition Device.h:199
Device & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Device.h:135
void SetCurrentSoftware(Aws::String &&value)
Definition Device.h:78
Device & WithLeaseExpirationTime(const Aws::Utils::DateTime &value)
Definition Device.h:159
void SetBrand(DeviceBrand &&value)
Definition Device.h:54
void SetType(const DeviceType &value)
Definition Device.h:214
void SetLeaseExpirationTime(const Aws::Utils::DateTime &value)
Definition Device.h:157
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition Device.h:65
void SetName(const char *value)
Definition Device.h:171
Device & WithDeviceId(const Aws::String &value)
Definition Device.h:121
Device & AddTags(Aws::String &&key, const Aws::String &value)
Definition Device.h:200
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Device.h:195
void SetProvisioningStatus(DeviceStatus &&value)
Definition Device.h:184
bool ProvisioningStatusHasBeenSet() const
Definition Device.h:182
void SetType(DeviceType &&value)
Definition Device.h:215
bool TypeHasBeenSet() const
Definition Device.h:213
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Device.h:193
Device & WithCurrentSoftware(const Aws::String &value)
Definition Device.h:80
Device & WithDeviceAggregatedStatus(const DeviceAggregatedStatus &value)
Definition Device.h:108
Device & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Device.h:197
Device & WithDescription(const char *value)
Definition Device.h:96
Device & WithName(const char *value)
Definition Device.h:174
Device & WithType(DeviceType &&value)
Definition Device.h:217
Device & WithDeviceAggregatedStatus(DeviceAggregatedStatus &&value)
Definition Device.h:109
void SetDeviceId(Aws::String &&value)
Definition Device.h:119
Device & AddTags(const char *key, Aws::String &&value)
Definition Device.h:203
void SetDescription(const Aws::String &value)
Definition Device.h:91
bool DeviceAggregatedStatusHasBeenSet() const
Definition Device.h:105
void SetName(const Aws::String &value)
Definition Device.h:169
Device & WithCurrentSoftware(const char *value)
Definition Device.h:82
bool DescriptionHasBeenSet() const
Definition Device.h:90
void SetDeviceId(const char *value)
Definition Device.h:120
Device & AddTags(Aws::String &&key, Aws::String &&value)
Definition Device.h:202
Device & WithType(const DeviceType &value)
Definition Device.h:216
void SetProvisioningStatus(const DeviceStatus &value)
Definition Device.h:183
bool LeaseExpirationTimeHasBeenSet() const
Definition Device.h:156
void SetDescription(const char *value)
Definition Device.h:93
void SetName(Aws::String &&value)
Definition Device.h:170
bool CreatedTimeHasBeenSet() const
Definition Device.h:64
Device & WithDescription(Aws::String &&value)
Definition Device.h:95
void SetDeviceAggregatedStatus(const DeviceAggregatedStatus &value)
Definition Device.h:106
Device & AddTags(const char *key, const char *value)
Definition Device.h:205
bool TagsHasBeenSet() const
Definition Device.h:194
Device & AddTags(const Aws::String &key, Aws::String &&value)
Definition Device.h:201
const Aws::String & GetName() const
Definition Device.h:167
AWS_PANORAMA_API Device(Aws::Utils::Json::JsonView jsonValue)
Device & WithName(const Aws::String &value)
Definition Device.h:172
Device & WithProvisioningStatus(const DeviceStatus &value)
Definition Device.h:185
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Device.h:130
Device & WithName(Aws::String &&value)
Definition Device.h:173
bool NameHasBeenSet() const
Definition Device.h:168
bool CurrentSoftwareHasBeenSet() const
Definition Device.h:76
Device & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition Device.h:68
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Device.h:196
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition Device.h:66
Device & WithBrand(const DeviceBrand &value)
Definition Device.h:55
const LatestDeviceJob & GetLatestDeviceJob() const
Definition Device.h:143
void SetLeaseExpirationTime(Aws::Utils::DateTime &&value)
Definition Device.h:158
bool BrandHasBeenSet() const
Definition Device.h:52
const Aws::String & GetDescription() const
Definition Device.h:89
AWS_PANORAMA_API Device()
Device & WithCurrentSoftware(Aws::String &&value)
Definition Device.h:81
Device & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Device.h:198
Device & AddTags(Aws::String &&key, const char *value)
Definition Device.h:204
void SetLatestDeviceJob(LatestDeviceJob &&value)
Definition Device.h:146
void SetDescription(Aws::String &&value)
Definition Device.h:92
Device & WithDescription(const Aws::String &value)
Definition Device.h:94
Device & WithLatestDeviceJob(const LatestDeviceJob &value)
Definition Device.h:147
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Device.h:132
void SetCurrentSoftware(const char *value)
Definition Device.h:79
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Device.h:63
Device & WithLatestDeviceJob(LatestDeviceJob &&value)
Definition Device.h:148
Device & WithDeviceId(Aws::String &&value)
Definition Device.h:122
AWS_PANORAMA_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
Device & WithProvisioningStatus(DeviceStatus &&value)
Definition Device.h:186
void SetCurrentSoftware(const Aws::String &value)
Definition Device.h:77
Device & WithLeaseExpirationTime(Aws::Utils::DateTime &&value)
Definition Device.h:160
const DeviceAggregatedStatus & GetDeviceAggregatedStatus() const
Definition Device.h:104
Device & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition Device.h:67
void SetDeviceAggregatedStatus(DeviceAggregatedStatus &&value)
Definition Device.h:107
Device & WithBrand(DeviceBrand &&value)
Definition Device.h:56
const Aws::String & GetDeviceId() const
Definition Device.h:116
Device & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Device.h:134
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Device.h:133
const Aws::Utils::DateTime & GetLeaseExpirationTime() const
Definition Device.h:155
const DeviceStatus & GetProvisioningStatus() const
Definition Device.h:181
void SetBrand(const DeviceBrand &value)
Definition Device.h:53
const Aws::String & GetCurrentSoftware() const
Definition Device.h:75
Device & WithDeviceId(const char *value)
Definition Device.h:123
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