AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Device.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/devicefarm/DeviceFarm_EXPORTS.h>
10#include <aws/devicefarm/model/CPU.h>
11#include <aws/devicefarm/model/DeviceAvailability.h>
12#include <aws/devicefarm/model/DeviceFormFactor.h>
13#include <aws/devicefarm/model/DeviceInstance.h>
14#include <aws/devicefarm/model/DevicePlatform.h>
15#include <aws/devicefarm/model/Resolution.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace DeviceFarm {
27namespace Model {
28
35class Device {
36 public:
37 AWS_DEVICEFARM_API Device() = default;
38 AWS_DEVICEFARM_API Device(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVICEFARM_API Device& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template <typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) {
50 m_arnHasBeenSet = true;
51 m_arn = std::forward<ArnT>(value);
52 }
53 template <typename ArnT = Aws::String>
54 Device& WithArn(ArnT&& value) {
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
72 Device& WithName(NameT&& value) {
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetManufacturer() const { return m_manufacturer; }
83 inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; }
84 template <typename ManufacturerT = Aws::String>
85 void SetManufacturer(ManufacturerT&& value) {
86 m_manufacturerHasBeenSet = true;
87 m_manufacturer = std::forward<ManufacturerT>(value);
88 }
89 template <typename ManufacturerT = Aws::String>
90 Device& WithManufacturer(ManufacturerT&& value) {
91 SetManufacturer(std::forward<ManufacturerT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetModel() const { return m_model; }
101 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
102 template <typename ModelT = Aws::String>
103 void SetModel(ModelT&& value) {
104 m_modelHasBeenSet = true;
105 m_model = std::forward<ModelT>(value);
106 }
107 template <typename ModelT = Aws::String>
108 Device& WithModel(ModelT&& value) {
109 SetModel(std::forward<ModelT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetModelId() const { return m_modelId; }
119 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
120 template <typename ModelIdT = Aws::String>
121 void SetModelId(ModelIdT&& value) {
122 m_modelIdHasBeenSet = true;
123 m_modelId = std::forward<ModelIdT>(value);
124 }
125 template <typename ModelIdT = Aws::String>
126 Device& WithModelId(ModelIdT&& value) {
127 SetModelId(std::forward<ModelIdT>(value));
128 return *this;
129 }
131
133
137 inline DeviceFormFactor GetFormFactor() const { return m_formFactor; }
138 inline bool FormFactorHasBeenSet() const { return m_formFactorHasBeenSet; }
139 inline void SetFormFactor(DeviceFormFactor value) {
140 m_formFactorHasBeenSet = true;
141 m_formFactor = value;
142 }
144 SetFormFactor(value);
145 return *this;
146 }
148
150
154 inline DevicePlatform GetPlatform() const { return m_platform; }
155 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
156 inline void SetPlatform(DevicePlatform value) {
157 m_platformHasBeenSet = true;
158 m_platform = value;
159 }
161 SetPlatform(value);
162 return *this;
163 }
165
167
170 inline const Aws::String& GetOs() const { return m_os; }
171 inline bool OsHasBeenSet() const { return m_osHasBeenSet; }
172 template <typename OsT = Aws::String>
173 void SetOs(OsT&& value) {
174 m_osHasBeenSet = true;
175 m_os = std::forward<OsT>(value);
176 }
177 template <typename OsT = Aws::String>
178 Device& WithOs(OsT&& value) {
179 SetOs(std::forward<OsT>(value));
180 return *this;
181 }
183
185
188 inline const CPU& GetCpu() const { return m_cpu; }
189 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
190 template <typename CpuT = CPU>
191 void SetCpu(CpuT&& value) {
192 m_cpuHasBeenSet = true;
193 m_cpu = std::forward<CpuT>(value);
194 }
195 template <typename CpuT = CPU>
196 Device& WithCpu(CpuT&& value) {
197 SetCpu(std::forward<CpuT>(value));
198 return *this;
199 }
201
203
206 inline const Resolution& GetResolution() const { return m_resolution; }
207 inline bool ResolutionHasBeenSet() const { return m_resolutionHasBeenSet; }
208 template <typename ResolutionT = Resolution>
209 void SetResolution(ResolutionT&& value) {
210 m_resolutionHasBeenSet = true;
211 m_resolution = std::forward<ResolutionT>(value);
212 }
213 template <typename ResolutionT = Resolution>
214 Device& WithResolution(ResolutionT&& value) {
215 SetResolution(std::forward<ResolutionT>(value));
216 return *this;
217 }
219
221
224 inline long long GetHeapSize() const { return m_heapSize; }
225 inline bool HeapSizeHasBeenSet() const { return m_heapSizeHasBeenSet; }
226 inline void SetHeapSize(long long value) {
227 m_heapSizeHasBeenSet = true;
228 m_heapSize = value;
229 }
230 inline Device& WithHeapSize(long long value) {
231 SetHeapSize(value);
232 return *this;
233 }
235
237
240 inline long long GetMemory() const { return m_memory; }
241 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
242 inline void SetMemory(long long value) {
243 m_memoryHasBeenSet = true;
244 m_memory = value;
245 }
246 inline Device& WithMemory(long long value) {
247 SetMemory(value);
248 return *this;
249 }
251
253
256 inline const Aws::String& GetImage() const { return m_image; }
257 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
258 template <typename ImageT = Aws::String>
259 void SetImage(ImageT&& value) {
260 m_imageHasBeenSet = true;
261 m_image = std::forward<ImageT>(value);
262 }
263 template <typename ImageT = Aws::String>
264 Device& WithImage(ImageT&& value) {
265 SetImage(std::forward<ImageT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::String& GetCarrier() const { return m_carrier; }
275 inline bool CarrierHasBeenSet() const { return m_carrierHasBeenSet; }
276 template <typename CarrierT = Aws::String>
277 void SetCarrier(CarrierT&& value) {
278 m_carrierHasBeenSet = true;
279 m_carrier = std::forward<CarrierT>(value);
280 }
281 template <typename CarrierT = Aws::String>
282 Device& WithCarrier(CarrierT&& value) {
283 SetCarrier(std::forward<CarrierT>(value));
284 return *this;
285 }
287
289
292 inline const Aws::String& GetRadio() const { return m_radio; }
293 inline bool RadioHasBeenSet() const { return m_radioHasBeenSet; }
294 template <typename RadioT = Aws::String>
295 void SetRadio(RadioT&& value) {
296 m_radioHasBeenSet = true;
297 m_radio = std::forward<RadioT>(value);
298 }
299 template <typename RadioT = Aws::String>
300 Device& WithRadio(RadioT&& value) {
301 SetRadio(std::forward<RadioT>(value));
302 return *this;
303 }
305
307
311 inline bool GetRemoteAccessEnabled() const { return m_remoteAccessEnabled; }
312 inline bool RemoteAccessEnabledHasBeenSet() const { return m_remoteAccessEnabledHasBeenSet; }
313 inline void SetRemoteAccessEnabled(bool value) {
314 m_remoteAccessEnabledHasBeenSet = true;
315 m_remoteAccessEnabled = value;
316 }
317 inline Device& WithRemoteAccessEnabled(bool value) {
319 return *this;
320 }
322
324
328 inline const Aws::String& GetFleetType() const { return m_fleetType; }
329 inline bool FleetTypeHasBeenSet() const { return m_fleetTypeHasBeenSet; }
330 template <typename FleetTypeT = Aws::String>
331 void SetFleetType(FleetTypeT&& value) {
332 m_fleetTypeHasBeenSet = true;
333 m_fleetType = std::forward<FleetTypeT>(value);
334 }
335 template <typename FleetTypeT = Aws::String>
336 Device& WithFleetType(FleetTypeT&& value) {
337 SetFleetType(std::forward<FleetTypeT>(value));
338 return *this;
339 }
341
343
346 inline const Aws::String& GetFleetName() const { return m_fleetName; }
347 inline bool FleetNameHasBeenSet() const { return m_fleetNameHasBeenSet; }
348 template <typename FleetNameT = Aws::String>
349 void SetFleetName(FleetNameT&& value) {
350 m_fleetNameHasBeenSet = true;
351 m_fleetName = std::forward<FleetNameT>(value);
352 }
353 template <typename FleetNameT = Aws::String>
354 Device& WithFleetName(FleetNameT&& value) {
355 SetFleetName(std::forward<FleetNameT>(value));
356 return *this;
357 }
359
361
364 inline const Aws::Vector<DeviceInstance>& GetInstances() const { return m_instances; }
365 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
366 template <typename InstancesT = Aws::Vector<DeviceInstance>>
367 void SetInstances(InstancesT&& value) {
368 m_instancesHasBeenSet = true;
369 m_instances = std::forward<InstancesT>(value);
370 }
371 template <typename InstancesT = Aws::Vector<DeviceInstance>>
372 Device& WithInstances(InstancesT&& value) {
373 SetInstances(std::forward<InstancesT>(value));
374 return *this;
375 }
376 template <typename InstancesT = DeviceInstance>
377 Device& AddInstances(InstancesT&& value) {
378 m_instancesHasBeenSet = true;
379 m_instances.emplace_back(std::forward<InstancesT>(value));
380 return *this;
381 }
383
385
389 inline DeviceAvailability GetAvailability() const { return m_availability; }
390 inline bool AvailabilityHasBeenSet() const { return m_availabilityHasBeenSet; }
392 m_availabilityHasBeenSet = true;
393 m_availability = value;
394 }
396 SetAvailability(value);
397 return *this;
398 }
400 private:
401 Aws::String m_arn;
402
403 Aws::String m_name;
404
405 Aws::String m_manufacturer;
406
407 Aws::String m_model;
408
409 Aws::String m_modelId;
410
412
414
415 Aws::String m_os;
416
417 CPU m_cpu;
418
419 Resolution m_resolution;
420
421 long long m_heapSize{0};
422
423 long long m_memory{0};
424
425 Aws::String m_image;
426
427 Aws::String m_carrier;
428
429 Aws::String m_radio;
430
431 bool m_remoteAccessEnabled{false};
432
433 Aws::String m_fleetType;
434
435 Aws::String m_fleetName;
436
437 Aws::Vector<DeviceInstance> m_instances;
438
440 bool m_arnHasBeenSet = false;
441 bool m_nameHasBeenSet = false;
442 bool m_manufacturerHasBeenSet = false;
443 bool m_modelHasBeenSet = false;
444 bool m_modelIdHasBeenSet = false;
445 bool m_formFactorHasBeenSet = false;
446 bool m_platformHasBeenSet = false;
447 bool m_osHasBeenSet = false;
448 bool m_cpuHasBeenSet = false;
449 bool m_resolutionHasBeenSet = false;
450 bool m_heapSizeHasBeenSet = false;
451 bool m_memoryHasBeenSet = false;
452 bool m_imageHasBeenSet = false;
453 bool m_carrierHasBeenSet = false;
454 bool m_radioHasBeenSet = false;
455 bool m_remoteAccessEnabledHasBeenSet = false;
456 bool m_fleetTypeHasBeenSet = false;
457 bool m_fleetNameHasBeenSet = false;
458 bool m_instancesHasBeenSet = false;
459 bool m_availabilityHasBeenSet = false;
460};
461
462} // namespace Model
463} // namespace DeviceFarm
464} // namespace Aws
AWS_DEVICEFARM_API Device()=default
bool PlatformHasBeenSet() const
Definition Device.h:155
Device & WithFormFactor(DeviceFormFactor value)
Definition Device.h:143
const Aws::String & GetName() const
Definition Device.h:64
void SetMemory(long long value)
Definition Device.h:242
const Aws::Vector< DeviceInstance > & GetInstances() const
Definition Device.h:364
AWS_DEVICEFARM_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
Device & WithFleetName(FleetNameT &&value)
Definition Device.h:354
void SetImage(ImageT &&value)
Definition Device.h:259
Device & WithModel(ModelT &&value)
Definition Device.h:108
DeviceFormFactor GetFormFactor() const
Definition Device.h:137
Device & WithRemoteAccessEnabled(bool value)
Definition Device.h:317
bool ManufacturerHasBeenSet() const
Definition Device.h:83
void SetResolution(ResolutionT &&value)
Definition Device.h:209
AWS_DEVICEFARM_API Device(Aws::Utils::Json::JsonView jsonValue)
Device & WithRadio(RadioT &&value)
Definition Device.h:300
bool InstancesHasBeenSet() const
Definition Device.h:365
bool FleetNameHasBeenSet() const
Definition Device.h:347
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
bool FleetTypeHasBeenSet() const
Definition Device.h:329
void SetPlatform(DevicePlatform value)
Definition Device.h:156
bool AvailabilityHasBeenSet() const
Definition Device.h:390
void SetCpu(CpuT &&value)
Definition Device.h:191
const Aws::String & GetModel() const
Definition Device.h:100
const Aws::String & GetModelId() const
Definition Device.h:118
void SetFleetName(FleetNameT &&value)
Definition Device.h:349
Device & WithResolution(ResolutionT &&value)
Definition Device.h:214
const Aws::String & GetArn() const
Definition Device.h:46
Device & WithCpu(CpuT &&value)
Definition Device.h:196
const Aws::String & GetImage() const
Definition Device.h:256
const Aws::String & GetOs() const
Definition Device.h:170
Device & WithManufacturer(ManufacturerT &&value)
Definition Device.h:90
bool GetRemoteAccessEnabled() const
Definition Device.h:311
DeviceAvailability GetAvailability() const
Definition Device.h:389
void SetHeapSize(long long value)
Definition Device.h:226
const Aws::String & GetManufacturer() const
Definition Device.h:82
Device & WithOs(OsT &&value)
Definition Device.h:178
void SetFormFactor(DeviceFormFactor value)
Definition Device.h:139
bool ModelIdHasBeenSet() const
Definition Device.h:119
const CPU & GetCpu() const
Definition Device.h:188
bool MemoryHasBeenSet() const
Definition Device.h:241
bool RemoteAccessEnabledHasBeenSet() const
Definition Device.h:312
Device & WithPlatform(DevicePlatform value)
Definition Device.h:160
Device & WithCarrier(CarrierT &&value)
Definition Device.h:282
DevicePlatform GetPlatform() const
Definition Device.h:154
void SetAvailability(DeviceAvailability value)
Definition Device.h:391
Device & WithModelId(ModelIdT &&value)
Definition Device.h:126
const Aws::String & GetFleetName() const
Definition Device.h:346
Device & AddInstances(InstancesT &&value)
Definition Device.h:377
void SetOs(OsT &&value)
Definition Device.h:173
bool HeapSizeHasBeenSet() const
Definition Device.h:225
void SetManufacturer(ManufacturerT &&value)
Definition Device.h:85
const Aws::String & GetRadio() const
Definition Device.h:292
Device & WithAvailability(DeviceAvailability value)
Definition Device.h:395
Device & WithInstances(InstancesT &&value)
Definition Device.h:372
Device & WithArn(ArnT &&value)
Definition Device.h:54
void SetInstances(InstancesT &&value)
Definition Device.h:367
void SetRadio(RadioT &&value)
Definition Device.h:295
long long GetHeapSize() const
Definition Device.h:224
bool NameHasBeenSet() const
Definition Device.h:65
Device & WithName(NameT &&value)
Definition Device.h:72
Device & WithFleetType(FleetTypeT &&value)
Definition Device.h:336
const Resolution & GetResolution() const
Definition Device.h:206
void SetFleetType(FleetTypeT &&value)
Definition Device.h:331
void SetCarrier(CarrierT &&value)
Definition Device.h:277
void SetRemoteAccessEnabled(bool value)
Definition Device.h:313
bool CarrierHasBeenSet() const
Definition Device.h:275
const Aws::String & GetFleetType() const
Definition Device.h:328
long long GetMemory() const
Definition Device.h:240
void SetArn(ArnT &&value)
Definition Device.h:49
Device & WithMemory(long long value)
Definition Device.h:246
Device & WithHeapSize(long long value)
Definition Device.h:230
void SetName(NameT &&value)
Definition Device.h:67
const Aws::String & GetCarrier() const
Definition Device.h:274
void SetModelId(ModelIdT &&value)
Definition Device.h:121
bool ResolutionHasBeenSet() const
Definition Device.h:207
bool FormFactorHasBeenSet() const
Definition Device.h:138
Device & WithImage(ImageT &&value)
Definition Device.h:264
void SetModel(ModelT &&value)
Definition Device.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue