AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Device.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devicefarm/model/DeviceFormFactor.h>
10#include <aws/devicefarm/model/DevicePlatform.h>
11#include <aws/devicefarm/model/CPU.h>
12#include <aws/devicefarm/model/Resolution.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/devicefarm/model/DeviceAvailability.h>
15#include <aws/devicefarm/model/DeviceInstance.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 DeviceFarm
29{
30namespace Model
31{
32
39 class Device
40 {
41 public:
42 AWS_DEVICEFARM_API Device() = default;
43 AWS_DEVICEFARM_API Device(Aws::Utils::Json::JsonView jsonValue);
44 AWS_DEVICEFARM_API Device& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetArn() const { return m_arn; }
53 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 template<typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
56 template<typename ArnT = Aws::String>
57 Device& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 Device& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
76 inline const Aws::String& GetManufacturer() const { return m_manufacturer; }
77 inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; }
78 template<typename ManufacturerT = Aws::String>
79 void SetManufacturer(ManufacturerT&& value) { m_manufacturerHasBeenSet = true; m_manufacturer = std::forward<ManufacturerT>(value); }
80 template<typename ManufacturerT = Aws::String>
81 Device& WithManufacturer(ManufacturerT&& value) { SetManufacturer(std::forward<ManufacturerT>(value)); return *this;}
83
85
88 inline const Aws::String& GetModel() const { return m_model; }
89 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
90 template<typename ModelT = Aws::String>
91 void SetModel(ModelT&& value) { m_modelHasBeenSet = true; m_model = std::forward<ModelT>(value); }
92 template<typename ModelT = Aws::String>
93 Device& WithModel(ModelT&& value) { SetModel(std::forward<ModelT>(value)); return *this;}
95
97
100 inline const Aws::String& GetModelId() const { return m_modelId; }
101 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
102 template<typename ModelIdT = Aws::String>
103 void SetModelId(ModelIdT&& value) { m_modelIdHasBeenSet = true; m_modelId = std::forward<ModelIdT>(value); }
104 template<typename ModelIdT = Aws::String>
105 Device& WithModelId(ModelIdT&& value) { SetModelId(std::forward<ModelIdT>(value)); return *this;}
107
109
113 inline DeviceFormFactor GetFormFactor() const { return m_formFactor; }
114 inline bool FormFactorHasBeenSet() const { return m_formFactorHasBeenSet; }
115 inline void SetFormFactor(DeviceFormFactor value) { m_formFactorHasBeenSet = true; m_formFactor = value; }
116 inline Device& WithFormFactor(DeviceFormFactor value) { SetFormFactor(value); return *this;}
118
120
124 inline DevicePlatform GetPlatform() const { return m_platform; }
125 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
126 inline void SetPlatform(DevicePlatform value) { m_platformHasBeenSet = true; m_platform = value; }
127 inline Device& WithPlatform(DevicePlatform value) { SetPlatform(value); return *this;}
129
131
134 inline const Aws::String& GetOs() const { return m_os; }
135 inline bool OsHasBeenSet() const { return m_osHasBeenSet; }
136 template<typename OsT = Aws::String>
137 void SetOs(OsT&& value) { m_osHasBeenSet = true; m_os = std::forward<OsT>(value); }
138 template<typename OsT = Aws::String>
139 Device& WithOs(OsT&& value) { SetOs(std::forward<OsT>(value)); return *this;}
141
143
146 inline const CPU& GetCpu() const { return m_cpu; }
147 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
148 template<typename CpuT = CPU>
149 void SetCpu(CpuT&& value) { m_cpuHasBeenSet = true; m_cpu = std::forward<CpuT>(value); }
150 template<typename CpuT = CPU>
151 Device& WithCpu(CpuT&& value) { SetCpu(std::forward<CpuT>(value)); return *this;}
153
155
158 inline const Resolution& GetResolution() const { return m_resolution; }
159 inline bool ResolutionHasBeenSet() const { return m_resolutionHasBeenSet; }
160 template<typename ResolutionT = Resolution>
161 void SetResolution(ResolutionT&& value) { m_resolutionHasBeenSet = true; m_resolution = std::forward<ResolutionT>(value); }
162 template<typename ResolutionT = Resolution>
163 Device& WithResolution(ResolutionT&& value) { SetResolution(std::forward<ResolutionT>(value)); return *this;}
165
167
170 inline long long GetHeapSize() const { return m_heapSize; }
171 inline bool HeapSizeHasBeenSet() const { return m_heapSizeHasBeenSet; }
172 inline void SetHeapSize(long long value) { m_heapSizeHasBeenSet = true; m_heapSize = value; }
173 inline Device& WithHeapSize(long long value) { SetHeapSize(value); return *this;}
175
177
180 inline long long GetMemory() const { return m_memory; }
181 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
182 inline void SetMemory(long long value) { m_memoryHasBeenSet = true; m_memory = value; }
183 inline Device& WithMemory(long long value) { SetMemory(value); return *this;}
185
187
190 inline const Aws::String& GetImage() const { return m_image; }
191 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
192 template<typename ImageT = Aws::String>
193 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
194 template<typename ImageT = Aws::String>
195 Device& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
197
199
202 inline const Aws::String& GetCarrier() const { return m_carrier; }
203 inline bool CarrierHasBeenSet() const { return m_carrierHasBeenSet; }
204 template<typename CarrierT = Aws::String>
205 void SetCarrier(CarrierT&& value) { m_carrierHasBeenSet = true; m_carrier = std::forward<CarrierT>(value); }
206 template<typename CarrierT = Aws::String>
207 Device& WithCarrier(CarrierT&& value) { SetCarrier(std::forward<CarrierT>(value)); return *this;}
209
211
214 inline const Aws::String& GetRadio() const { return m_radio; }
215 inline bool RadioHasBeenSet() const { return m_radioHasBeenSet; }
216 template<typename RadioT = Aws::String>
217 void SetRadio(RadioT&& value) { m_radioHasBeenSet = true; m_radio = std::forward<RadioT>(value); }
218 template<typename RadioT = Aws::String>
219 Device& WithRadio(RadioT&& value) { SetRadio(std::forward<RadioT>(value)); return *this;}
221
223
227 inline bool GetRemoteAccessEnabled() const { return m_remoteAccessEnabled; }
228 inline bool RemoteAccessEnabledHasBeenSet() const { return m_remoteAccessEnabledHasBeenSet; }
229 inline void SetRemoteAccessEnabled(bool value) { m_remoteAccessEnabledHasBeenSet = true; m_remoteAccessEnabled = value; }
230 inline Device& WithRemoteAccessEnabled(bool value) { SetRemoteAccessEnabled(value); return *this;}
232
234
240 inline bool GetRemoteDebugEnabled() const { return m_remoteDebugEnabled; }
241 inline bool RemoteDebugEnabledHasBeenSet() const { return m_remoteDebugEnabledHasBeenSet; }
242 inline void SetRemoteDebugEnabled(bool value) { m_remoteDebugEnabledHasBeenSet = true; m_remoteDebugEnabled = value; }
243 inline Device& WithRemoteDebugEnabled(bool value) { SetRemoteDebugEnabled(value); return *this;}
245
247
251 inline const Aws::String& GetFleetType() const { return m_fleetType; }
252 inline bool FleetTypeHasBeenSet() const { return m_fleetTypeHasBeenSet; }
253 template<typename FleetTypeT = Aws::String>
254 void SetFleetType(FleetTypeT&& value) { m_fleetTypeHasBeenSet = true; m_fleetType = std::forward<FleetTypeT>(value); }
255 template<typename FleetTypeT = Aws::String>
256 Device& WithFleetType(FleetTypeT&& value) { SetFleetType(std::forward<FleetTypeT>(value)); return *this;}
258
260
263 inline const Aws::String& GetFleetName() const { return m_fleetName; }
264 inline bool FleetNameHasBeenSet() const { return m_fleetNameHasBeenSet; }
265 template<typename FleetNameT = Aws::String>
266 void SetFleetName(FleetNameT&& value) { m_fleetNameHasBeenSet = true; m_fleetName = std::forward<FleetNameT>(value); }
267 template<typename FleetNameT = Aws::String>
268 Device& WithFleetName(FleetNameT&& value) { SetFleetName(std::forward<FleetNameT>(value)); return *this;}
270
272
275 inline const Aws::Vector<DeviceInstance>& GetInstances() const { return m_instances; }
276 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
277 template<typename InstancesT = Aws::Vector<DeviceInstance>>
278 void SetInstances(InstancesT&& value) { m_instancesHasBeenSet = true; m_instances = std::forward<InstancesT>(value); }
279 template<typename InstancesT = Aws::Vector<DeviceInstance>>
280 Device& WithInstances(InstancesT&& value) { SetInstances(std::forward<InstancesT>(value)); return *this;}
281 template<typename InstancesT = DeviceInstance>
282 Device& AddInstances(InstancesT&& value) { m_instancesHasBeenSet = true; m_instances.emplace_back(std::forward<InstancesT>(value)); return *this; }
284
286
290 inline DeviceAvailability GetAvailability() const { return m_availability; }
291 inline bool AvailabilityHasBeenSet() const { return m_availabilityHasBeenSet; }
292 inline void SetAvailability(DeviceAvailability value) { m_availabilityHasBeenSet = true; m_availability = value; }
293 inline Device& WithAvailability(DeviceAvailability value) { SetAvailability(value); return *this;}
295 private:
296
297 Aws::String m_arn;
298 bool m_arnHasBeenSet = false;
299
300 Aws::String m_name;
301 bool m_nameHasBeenSet = false;
302
303 Aws::String m_manufacturer;
304 bool m_manufacturerHasBeenSet = false;
305
306 Aws::String m_model;
307 bool m_modelHasBeenSet = false;
308
309 Aws::String m_modelId;
310 bool m_modelIdHasBeenSet = false;
311
313 bool m_formFactorHasBeenSet = false;
314
316 bool m_platformHasBeenSet = false;
317
318 Aws::String m_os;
319 bool m_osHasBeenSet = false;
320
321 CPU m_cpu;
322 bool m_cpuHasBeenSet = false;
323
324 Resolution m_resolution;
325 bool m_resolutionHasBeenSet = false;
326
327 long long m_heapSize{0};
328 bool m_heapSizeHasBeenSet = false;
329
330 long long m_memory{0};
331 bool m_memoryHasBeenSet = false;
332
333 Aws::String m_image;
334 bool m_imageHasBeenSet = false;
335
336 Aws::String m_carrier;
337 bool m_carrierHasBeenSet = false;
338
339 Aws::String m_radio;
340 bool m_radioHasBeenSet = false;
341
342 bool m_remoteAccessEnabled{false};
343 bool m_remoteAccessEnabledHasBeenSet = false;
344
345 bool m_remoteDebugEnabled{false};
346 bool m_remoteDebugEnabledHasBeenSet = false;
347
348 Aws::String m_fleetType;
349 bool m_fleetTypeHasBeenSet = false;
350
351 Aws::String m_fleetName;
352 bool m_fleetNameHasBeenSet = false;
353
354 Aws::Vector<DeviceInstance> m_instances;
355 bool m_instancesHasBeenSet = false;
356
358 bool m_availabilityHasBeenSet = false;
359 };
360
361} // namespace Model
362} // namespace DeviceFarm
363} // namespace Aws
AWS_DEVICEFARM_API Device()=default
bool PlatformHasBeenSet() const
Definition Device.h:125
Device & WithFormFactor(DeviceFormFactor value)
Definition Device.h:116
const Aws::String & GetName() const
Definition Device.h:64
void SetMemory(long long value)
Definition Device.h:182
const Aws::Vector< DeviceInstance > & GetInstances() const
Definition Device.h:275
bool ModelHasBeenSet() const
Definition Device.h:89
AWS_DEVICEFARM_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
Device & WithFleetName(FleetNameT &&value)
Definition Device.h:268
void SetImage(ImageT &&value)
Definition Device.h:193
Device & WithModel(ModelT &&value)
Definition Device.h:93
DeviceFormFactor GetFormFactor() const
Definition Device.h:113
Device & WithRemoteAccessEnabled(bool value)
Definition Device.h:230
bool ManufacturerHasBeenSet() const
Definition Device.h:77
void SetResolution(ResolutionT &&value)
Definition Device.h:161
AWS_DEVICEFARM_API Device(Aws::Utils::Json::JsonView jsonValue)
Device & WithRadio(RadioT &&value)
Definition Device.h:219
bool InstancesHasBeenSet() const
Definition Device.h:276
bool FleetNameHasBeenSet() const
Definition Device.h:264
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
bool FleetTypeHasBeenSet() const
Definition Device.h:252
void SetPlatform(DevicePlatform value)
Definition Device.h:126
bool AvailabilityHasBeenSet() const
Definition Device.h:291
void SetCpu(CpuT &&value)
Definition Device.h:149
bool GetRemoteDebugEnabled() const
Definition Device.h:240
const Aws::String & GetModel() const
Definition Device.h:88
const Aws::String & GetModelId() const
Definition Device.h:100
void SetFleetName(FleetNameT &&value)
Definition Device.h:266
Device & WithResolution(ResolutionT &&value)
Definition Device.h:163
const Aws::String & GetArn() const
Definition Device.h:52
Device & WithCpu(CpuT &&value)
Definition Device.h:151
const Aws::String & GetImage() const
Definition Device.h:190
const Aws::String & GetOs() const
Definition Device.h:134
Device & WithManufacturer(ManufacturerT &&value)
Definition Device.h:81
bool GetRemoteAccessEnabled() const
Definition Device.h:227
DeviceAvailability GetAvailability() const
Definition Device.h:290
void SetHeapSize(long long value)
Definition Device.h:172
const Aws::String & GetManufacturer() const
Definition Device.h:76
Device & WithOs(OsT &&value)
Definition Device.h:139
void SetFormFactor(DeviceFormFactor value)
Definition Device.h:115
bool ModelIdHasBeenSet() const
Definition Device.h:101
const CPU & GetCpu() const
Definition Device.h:146
bool MemoryHasBeenSet() const
Definition Device.h:181
bool RemoteAccessEnabledHasBeenSet() const
Definition Device.h:228
Device & WithPlatform(DevicePlatform value)
Definition Device.h:127
Device & WithCarrier(CarrierT &&value)
Definition Device.h:207
DevicePlatform GetPlatform() const
Definition Device.h:124
void SetRemoteDebugEnabled(bool value)
Definition Device.h:242
void SetAvailability(DeviceAvailability value)
Definition Device.h:292
Device & WithModelId(ModelIdT &&value)
Definition Device.h:105
const Aws::String & GetFleetName() const
Definition Device.h:263
Device & AddInstances(InstancesT &&value)
Definition Device.h:282
void SetOs(OsT &&value)
Definition Device.h:137
bool HeapSizeHasBeenSet() const
Definition Device.h:171
void SetManufacturer(ManufacturerT &&value)
Definition Device.h:79
const Aws::String & GetRadio() const
Definition Device.h:214
Device & WithAvailability(DeviceAvailability value)
Definition Device.h:293
Device & WithInstances(InstancesT &&value)
Definition Device.h:280
Device & WithArn(ArnT &&value)
Definition Device.h:57
void SetInstances(InstancesT &&value)
Definition Device.h:278
void SetRadio(RadioT &&value)
Definition Device.h:217
long long GetHeapSize() const
Definition Device.h:170
bool RemoteDebugEnabledHasBeenSet() const
Definition Device.h:241
bool NameHasBeenSet() const
Definition Device.h:65
Device & WithName(NameT &&value)
Definition Device.h:69
Device & WithFleetType(FleetTypeT &&value)
Definition Device.h:256
const Resolution & GetResolution() const
Definition Device.h:158
void SetFleetType(FleetTypeT &&value)
Definition Device.h:254
void SetCarrier(CarrierT &&value)
Definition Device.h:205
void SetRemoteAccessEnabled(bool value)
Definition Device.h:229
bool CarrierHasBeenSet() const
Definition Device.h:203
const Aws::String & GetFleetType() const
Definition Device.h:251
long long GetMemory() const
Definition Device.h:180
void SetArn(ArnT &&value)
Definition Device.h:55
Device & WithMemory(long long value)
Definition Device.h:183
Device & WithHeapSize(long long value)
Definition Device.h:173
void SetName(NameT &&value)
Definition Device.h:67
Device & WithRemoteDebugEnabled(bool value)
Definition Device.h:243
const Aws::String & GetCarrier() const
Definition Device.h:202
void SetModelId(ModelIdT &&value)
Definition Device.h:103
bool ResolutionHasBeenSet() const
Definition Device.h:159
bool FormFactorHasBeenSet() const
Definition Device.h:114
Device & WithImage(ImageT &&value)
Definition Device.h:195
void SetModel(ModelT &&value)
Definition Device.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue