AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
Device.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/networkmanager/NetworkManager_EXPORTS.h>
11#include <aws/networkmanager/model/AWSLocation.h>
12#include <aws/networkmanager/model/DeviceState.h>
13#include <aws/networkmanager/model/Location.h>
14#include <aws/networkmanager/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace NetworkManager {
26namespace Model {
27
33class Device {
34 public:
35 AWS_NETWORKMANAGER_API Device() = default;
36 AWS_NETWORKMANAGER_API Device(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NETWORKMANAGER_API Device& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
45 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
46 template <typename DeviceIdT = Aws::String>
47 void SetDeviceId(DeviceIdT&& value) {
48 m_deviceIdHasBeenSet = true;
49 m_deviceId = std::forward<DeviceIdT>(value);
50 }
51 template <typename DeviceIdT = Aws::String>
52 Device& WithDeviceId(DeviceIdT&& value) {
53 SetDeviceId(std::forward<DeviceIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDeviceArn() const { return m_deviceArn; }
63 inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
64 template <typename DeviceArnT = Aws::String>
65 void SetDeviceArn(DeviceArnT&& value) {
66 m_deviceArnHasBeenSet = true;
67 m_deviceArn = std::forward<DeviceArnT>(value);
68 }
69 template <typename DeviceArnT = Aws::String>
70 Device& WithDeviceArn(DeviceArnT&& value) {
71 SetDeviceArn(std::forward<DeviceArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
81 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
82 template <typename GlobalNetworkIdT = Aws::String>
83 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
84 m_globalNetworkIdHasBeenSet = true;
85 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
86 }
87 template <typename GlobalNetworkIdT = Aws::String>
88 Device& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
89 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
90 return *this;
91 }
93
95
98 inline const AWSLocation& GetAWSLocation() const { return m_aWSLocation; }
99 inline bool AWSLocationHasBeenSet() const { return m_aWSLocationHasBeenSet; }
100 template <typename AWSLocationT = AWSLocation>
101 void SetAWSLocation(AWSLocationT&& value) {
102 m_aWSLocationHasBeenSet = true;
103 m_aWSLocation = std::forward<AWSLocationT>(value);
104 }
105 template <typename AWSLocationT = AWSLocation>
106 Device& WithAWSLocation(AWSLocationT&& value) {
107 SetAWSLocation(std::forward<AWSLocationT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetDescription() const { return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 template <typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) {
120 m_descriptionHasBeenSet = true;
121 m_description = std::forward<DescriptionT>(value);
122 }
123 template <typename DescriptionT = Aws::String>
124 Device& WithDescription(DescriptionT&& value) {
125 SetDescription(std::forward<DescriptionT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetType() const { return m_type; }
135 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
136 template <typename TypeT = Aws::String>
137 void SetType(TypeT&& value) {
138 m_typeHasBeenSet = true;
139 m_type = std::forward<TypeT>(value);
140 }
141 template <typename TypeT = Aws::String>
142 Device& WithType(TypeT&& value) {
143 SetType(std::forward<TypeT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetVendor() const { return m_vendor; }
153 inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; }
154 template <typename VendorT = Aws::String>
155 void SetVendor(VendorT&& value) {
156 m_vendorHasBeenSet = true;
157 m_vendor = std::forward<VendorT>(value);
158 }
159 template <typename VendorT = Aws::String>
160 Device& WithVendor(VendorT&& value) {
161 SetVendor(std::forward<VendorT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetModel() const { return m_model; }
171 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
172 template <typename ModelT = Aws::String>
173 void SetModel(ModelT&& value) {
174 m_modelHasBeenSet = true;
175 m_model = std::forward<ModelT>(value);
176 }
177 template <typename ModelT = Aws::String>
178 Device& WithModel(ModelT&& value) {
179 SetModel(std::forward<ModelT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
189 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
190 template <typename SerialNumberT = Aws::String>
191 void SetSerialNumber(SerialNumberT&& value) {
192 m_serialNumberHasBeenSet = true;
193 m_serialNumber = std::forward<SerialNumberT>(value);
194 }
195 template <typename SerialNumberT = Aws::String>
196 Device& WithSerialNumber(SerialNumberT&& value) {
197 SetSerialNumber(std::forward<SerialNumberT>(value));
198 return *this;
199 }
201
203
206 inline const Location& GetLocation() const { return m_location; }
207 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
208 template <typename LocationT = Location>
209 void SetLocation(LocationT&& value) {
210 m_locationHasBeenSet = true;
211 m_location = std::forward<LocationT>(value);
212 }
213 template <typename LocationT = Location>
214 Device& WithLocation(LocationT&& value) {
215 SetLocation(std::forward<LocationT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetSiteId() const { return m_siteId; }
225 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
226 template <typename SiteIdT = Aws::String>
227 void SetSiteId(SiteIdT&& value) {
228 m_siteIdHasBeenSet = true;
229 m_siteId = std::forward<SiteIdT>(value);
230 }
231 template <typename SiteIdT = Aws::String>
232 Device& WithSiteId(SiteIdT&& value) {
233 SetSiteId(std::forward<SiteIdT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
243 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
244 template <typename CreatedAtT = Aws::Utils::DateTime>
245 void SetCreatedAt(CreatedAtT&& value) {
246 m_createdAtHasBeenSet = true;
247 m_createdAt = std::forward<CreatedAtT>(value);
248 }
249 template <typename CreatedAtT = Aws::Utils::DateTime>
250 Device& WithCreatedAt(CreatedAtT&& value) {
251 SetCreatedAt(std::forward<CreatedAtT>(value));
252 return *this;
253 }
255
257
260 inline DeviceState GetState() const { return m_state; }
261 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
262 inline void SetState(DeviceState value) {
263 m_stateHasBeenSet = true;
264 m_state = value;
265 }
266 inline Device& WithState(DeviceState value) {
267 SetState(value);
268 return *this;
269 }
271
273
276 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
277 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
278 template <typename TagsT = Aws::Vector<Tag>>
279 void SetTags(TagsT&& value) {
280 m_tagsHasBeenSet = true;
281 m_tags = std::forward<TagsT>(value);
282 }
283 template <typename TagsT = Aws::Vector<Tag>>
284 Device& WithTags(TagsT&& value) {
285 SetTags(std::forward<TagsT>(value));
286 return *this;
287 }
288 template <typename TagsT = Tag>
289 Device& AddTags(TagsT&& value) {
290 m_tagsHasBeenSet = true;
291 m_tags.emplace_back(std::forward<TagsT>(value));
292 return *this;
293 }
295 private:
296 Aws::String m_deviceId;
297
298 Aws::String m_deviceArn;
299
300 Aws::String m_globalNetworkId;
301
302 AWSLocation m_aWSLocation;
303
304 Aws::String m_description;
305
306 Aws::String m_type;
307
308 Aws::String m_vendor;
309
310 Aws::String m_model;
311
312 Aws::String m_serialNumber;
313
314 Location m_location;
315
316 Aws::String m_siteId;
317
318 Aws::Utils::DateTime m_createdAt{};
319
321
322 Aws::Vector<Tag> m_tags;
323 bool m_deviceIdHasBeenSet = false;
324 bool m_deviceArnHasBeenSet = false;
325 bool m_globalNetworkIdHasBeenSet = false;
326 bool m_aWSLocationHasBeenSet = false;
327 bool m_descriptionHasBeenSet = false;
328 bool m_typeHasBeenSet = false;
329 bool m_vendorHasBeenSet = false;
330 bool m_modelHasBeenSet = false;
331 bool m_serialNumberHasBeenSet = false;
332 bool m_locationHasBeenSet = false;
333 bool m_siteIdHasBeenSet = false;
334 bool m_createdAtHasBeenSet = false;
335 bool m_stateHasBeenSet = false;
336 bool m_tagsHasBeenSet = false;
337};
338
339} // namespace Model
340} // namespace NetworkManager
341} // namespace Aws
const Aws::String & GetVendor() const
Definition Device.h:152
const Aws::String & GetModel() const
Definition Device.h:170
const Aws::String & GetType() const
Definition Device.h:134
AWS_NETWORKMANAGER_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GlobalNetworkIdHasBeenSet() const
Definition Device.h:81
void SetDeviceArn(DeviceArnT &&value)
Definition Device.h:65
void SetAWSLocation(AWSLocationT &&value)
Definition Device.h:101
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Device & AddTags(TagsT &&value)
Definition Device.h:289
const Location & GetLocation() const
Definition Device.h:206
void SetVendor(VendorT &&value)
Definition Device.h:155
void SetTags(TagsT &&value)
Definition Device.h:279
Device & WithCreatedAt(CreatedAtT &&value)
Definition Device.h:250
const Aws::Vector< Tag > & GetTags() const
Definition Device.h:276
Device & WithVendor(VendorT &&value)
Definition Device.h:160
void SetCreatedAt(CreatedAtT &&value)
Definition Device.h:245
const Aws::String & GetSiteId() const
Definition Device.h:224
void SetSiteId(SiteIdT &&value)
Definition Device.h:227
void SetLocation(LocationT &&value)
Definition Device.h:209
Device & WithType(TypeT &&value)
Definition Device.h:142
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Device.h:242
Device & WithTags(TagsT &&value)
Definition Device.h:284
Device & WithAWSLocation(AWSLocationT &&value)
Definition Device.h:106
const Aws::String & GetDescription() const
Definition Device.h:116
Device & WithModel(ModelT &&value)
Definition Device.h:178
void SetGlobalNetworkId(GlobalNetworkIdT &&value)
Definition Device.h:83
void SetSerialNumber(SerialNumberT &&value)
Definition Device.h:191
void SetState(DeviceState value)
Definition Device.h:262
AWS_NETWORKMANAGER_API Device(Aws::Utils::Json::JsonView jsonValue)
Device & WithState(DeviceState value)
Definition Device.h:266
AWS_NETWORKMANAGER_API Device()=default
void SetModel(ModelT &&value)
Definition Device.h:173
Device & WithDeviceId(DeviceIdT &&value)
Definition Device.h:52
Device & WithSerialNumber(SerialNumberT &&value)
Definition Device.h:196
const Aws::String & GetDeviceArn() const
Definition Device.h:62
const AWSLocation & GetAWSLocation() const
Definition Device.h:98
Device & WithDescription(DescriptionT &&value)
Definition Device.h:124
void SetType(TypeT &&value)
Definition Device.h:137
const Aws::String & GetDeviceId() const
Definition Device.h:44
const Aws::String & GetSerialNumber() const
Definition Device.h:188
Device & WithGlobalNetworkId(GlobalNetworkIdT &&value)
Definition Device.h:88
void SetDeviceId(DeviceIdT &&value)
Definition Device.h:47
const Aws::String & GetGlobalNetworkId() const
Definition Device.h:80
Device & WithDeviceArn(DeviceArnT &&value)
Definition Device.h:70
void SetDescription(DescriptionT &&value)
Definition Device.h:119
Device & WithSiteId(SiteIdT &&value)
Definition Device.h:232
Device & WithLocation(LocationT &&value)
Definition Device.h:214
DeviceState GetState() const
Definition Device.h:260
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue