AWS SDK for C++  0.14.3
AWS SDK for C++
Device.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace DeviceFarm
33 {
34 namespace Model
35 {
36 
41  {
42  public:
43  Device();
44  Device(const Aws::Utils::Json::JsonValue& jsonValue);
45  Device& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetArn() const{ return m_arn; }
52 
56  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
57 
61  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
62 
66  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 
71  inline Device& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 
76  inline Device& WithArn(Aws::String&& value) { SetArn(value); return *this;}
77 
81  inline Device& WithArn(const char* value) { SetArn(value); return *this;}
82 
86  inline const Aws::String& GetName() const{ return m_name; }
87 
91  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 
96  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
97 
101  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
102 
106  inline Device& WithName(const Aws::String& value) { SetName(value); return *this;}
107 
111  inline Device& WithName(Aws::String&& value) { SetName(value); return *this;}
112 
116  inline Device& WithName(const char* value) { SetName(value); return *this;}
117 
121  inline const Aws::String& GetManufacturer() const{ return m_manufacturer; }
122 
126  inline void SetManufacturer(const Aws::String& value) { m_manufacturerHasBeenSet = true; m_manufacturer = value; }
127 
131  inline void SetManufacturer(Aws::String&& value) { m_manufacturerHasBeenSet = true; m_manufacturer = value; }
132 
136  inline void SetManufacturer(const char* value) { m_manufacturerHasBeenSet = true; m_manufacturer.assign(value); }
137 
141  inline Device& WithManufacturer(const Aws::String& value) { SetManufacturer(value); return *this;}
142 
146  inline Device& WithManufacturer(Aws::String&& value) { SetManufacturer(value); return *this;}
147 
151  inline Device& WithManufacturer(const char* value) { SetManufacturer(value); return *this;}
152 
156  inline const Aws::String& GetModel() const{ return m_model; }
157 
161  inline void SetModel(const Aws::String& value) { m_modelHasBeenSet = true; m_model = value; }
162 
166  inline void SetModel(Aws::String&& value) { m_modelHasBeenSet = true; m_model = value; }
167 
171  inline void SetModel(const char* value) { m_modelHasBeenSet = true; m_model.assign(value); }
172 
176  inline Device& WithModel(const Aws::String& value) { SetModel(value); return *this;}
177 
181  inline Device& WithModel(Aws::String&& value) { SetModel(value); return *this;}
182 
186  inline Device& WithModel(const char* value) { SetModel(value); return *this;}
187 
193  inline const DeviceFormFactor& GetFormFactor() const{ return m_formFactor; }
194 
200  inline void SetFormFactor(const DeviceFormFactor& value) { m_formFactorHasBeenSet = true; m_formFactor = value; }
201 
207  inline void SetFormFactor(DeviceFormFactor&& value) { m_formFactorHasBeenSet = true; m_formFactor = value; }
208 
214  inline Device& WithFormFactor(const DeviceFormFactor& value) { SetFormFactor(value); return *this;}
215 
221  inline Device& WithFormFactor(DeviceFormFactor&& value) { SetFormFactor(value); return *this;}
222 
228  inline const DevicePlatform& GetPlatform() const{ return m_platform; }
229 
235  inline void SetPlatform(const DevicePlatform& value) { m_platformHasBeenSet = true; m_platform = value; }
236 
242  inline void SetPlatform(DevicePlatform&& value) { m_platformHasBeenSet = true; m_platform = value; }
243 
249  inline Device& WithPlatform(const DevicePlatform& value) { SetPlatform(value); return *this;}
250 
256  inline Device& WithPlatform(DevicePlatform&& value) { SetPlatform(value); return *this;}
257 
261  inline const Aws::String& GetOs() const{ return m_os; }
262 
266  inline void SetOs(const Aws::String& value) { m_osHasBeenSet = true; m_os = value; }
267 
271  inline void SetOs(Aws::String&& value) { m_osHasBeenSet = true; m_os = value; }
272 
276  inline void SetOs(const char* value) { m_osHasBeenSet = true; m_os.assign(value); }
277 
281  inline Device& WithOs(const Aws::String& value) { SetOs(value); return *this;}
282 
286  inline Device& WithOs(Aws::String&& value) { SetOs(value); return *this;}
287 
291  inline Device& WithOs(const char* value) { SetOs(value); return *this;}
292 
296  inline const CPU& GetCpu() const{ return m_cpu; }
297 
301  inline void SetCpu(const CPU& value) { m_cpuHasBeenSet = true; m_cpu = value; }
302 
306  inline void SetCpu(CPU&& value) { m_cpuHasBeenSet = true; m_cpu = value; }
307 
311  inline Device& WithCpu(const CPU& value) { SetCpu(value); return *this;}
312 
316  inline Device& WithCpu(CPU&& value) { SetCpu(value); return *this;}
317 
318 
319  inline const Resolution& GetResolution() const{ return m_resolution; }
320 
321 
322  inline void SetResolution(const Resolution& value) { m_resolutionHasBeenSet = true; m_resolution = value; }
323 
324 
325  inline void SetResolution(Resolution&& value) { m_resolutionHasBeenSet = true; m_resolution = value; }
326 
327 
328  inline Device& WithResolution(const Resolution& value) { SetResolution(value); return *this;}
329 
330 
331  inline Device& WithResolution(Resolution&& value) { SetResolution(value); return *this;}
332 
336  inline long long GetHeapSize() const{ return m_heapSize; }
337 
341  inline void SetHeapSize(long long value) { m_heapSizeHasBeenSet = true; m_heapSize = value; }
342 
346  inline Device& WithHeapSize(long long value) { SetHeapSize(value); return *this;}
347 
351  inline long long GetMemory() const{ return m_memory; }
352 
356  inline void SetMemory(long long value) { m_memoryHasBeenSet = true; m_memory = value; }
357 
361  inline Device& WithMemory(long long value) { SetMemory(value); return *this;}
362 
366  inline const Aws::String& GetImage() const{ return m_image; }
367 
371  inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
372 
376  inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = value; }
377 
381  inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
382 
386  inline Device& WithImage(const Aws::String& value) { SetImage(value); return *this;}
387 
391  inline Device& WithImage(Aws::String&& value) { SetImage(value); return *this;}
392 
396  inline Device& WithImage(const char* value) { SetImage(value); return *this;}
397 
401  inline const Aws::String& GetCarrier() const{ return m_carrier; }
402 
406  inline void SetCarrier(const Aws::String& value) { m_carrierHasBeenSet = true; m_carrier = value; }
407 
411  inline void SetCarrier(Aws::String&& value) { m_carrierHasBeenSet = true; m_carrier = value; }
412 
416  inline void SetCarrier(const char* value) { m_carrierHasBeenSet = true; m_carrier.assign(value); }
417 
421  inline Device& WithCarrier(const Aws::String& value) { SetCarrier(value); return *this;}
422 
426  inline Device& WithCarrier(Aws::String&& value) { SetCarrier(value); return *this;}
427 
431  inline Device& WithCarrier(const char* value) { SetCarrier(value); return *this;}
432 
436  inline const Aws::String& GetRadio() const{ return m_radio; }
437 
441  inline void SetRadio(const Aws::String& value) { m_radioHasBeenSet = true; m_radio = value; }
442 
446  inline void SetRadio(Aws::String&& value) { m_radioHasBeenSet = true; m_radio = value; }
447 
451  inline void SetRadio(const char* value) { m_radioHasBeenSet = true; m_radio.assign(value); }
452 
456  inline Device& WithRadio(const Aws::String& value) { SetRadio(value); return *this;}
457 
461  inline Device& WithRadio(Aws::String&& value) { SetRadio(value); return *this;}
462 
466  inline Device& WithRadio(const char* value) { SetRadio(value); return *this;}
467 
472  inline bool GetRemoteAccessEnabled() const{ return m_remoteAccessEnabled; }
473 
478  inline void SetRemoteAccessEnabled(bool value) { m_remoteAccessEnabledHasBeenSet = true; m_remoteAccessEnabled = value; }
479 
484  inline Device& WithRemoteAccessEnabled(bool value) { SetRemoteAccessEnabled(value); return *this;}
485 
490  inline const Aws::String& GetFleetType() const{ return m_fleetType; }
491 
496  inline void SetFleetType(const Aws::String& value) { m_fleetTypeHasBeenSet = true; m_fleetType = value; }
497 
502  inline void SetFleetType(Aws::String&& value) { m_fleetTypeHasBeenSet = true; m_fleetType = value; }
503 
508  inline void SetFleetType(const char* value) { m_fleetTypeHasBeenSet = true; m_fleetType.assign(value); }
509 
514  inline Device& WithFleetType(const Aws::String& value) { SetFleetType(value); return *this;}
515 
520  inline Device& WithFleetType(Aws::String&& value) { SetFleetType(value); return *this;}
521 
526  inline Device& WithFleetType(const char* value) { SetFleetType(value); return *this;}
527 
531  inline const Aws::String& GetFleetName() const{ return m_fleetName; }
532 
536  inline void SetFleetName(const Aws::String& value) { m_fleetNameHasBeenSet = true; m_fleetName = value; }
537 
541  inline void SetFleetName(Aws::String&& value) { m_fleetNameHasBeenSet = true; m_fleetName = value; }
542 
546  inline void SetFleetName(const char* value) { m_fleetNameHasBeenSet = true; m_fleetName.assign(value); }
547 
551  inline Device& WithFleetName(const Aws::String& value) { SetFleetName(value); return *this;}
552 
556  inline Device& WithFleetName(Aws::String&& value) { SetFleetName(value); return *this;}
557 
561  inline Device& WithFleetName(const char* value) { SetFleetName(value); return *this;}
562 
563  private:
564  Aws::String m_arn;
565  bool m_arnHasBeenSet;
566  Aws::String m_name;
567  bool m_nameHasBeenSet;
568  Aws::String m_manufacturer;
569  bool m_manufacturerHasBeenSet;
570  Aws::String m_model;
571  bool m_modelHasBeenSet;
572  DeviceFormFactor m_formFactor;
573  bool m_formFactorHasBeenSet;
574  DevicePlatform m_platform;
575  bool m_platformHasBeenSet;
576  Aws::String m_os;
577  bool m_osHasBeenSet;
578  CPU m_cpu;
579  bool m_cpuHasBeenSet;
580  Resolution m_resolution;
581  bool m_resolutionHasBeenSet;
582  long long m_heapSize;
583  bool m_heapSizeHasBeenSet;
584  long long m_memory;
585  bool m_memoryHasBeenSet;
586  Aws::String m_image;
587  bool m_imageHasBeenSet;
588  Aws::String m_carrier;
589  bool m_carrierHasBeenSet;
590  Aws::String m_radio;
591  bool m_radioHasBeenSet;
592  bool m_remoteAccessEnabled;
593  bool m_remoteAccessEnabledHasBeenSet;
594  Aws::String m_fleetType;
595  bool m_fleetTypeHasBeenSet;
596  Aws::String m_fleetName;
597  bool m_fleetNameHasBeenSet;
598  };
599 
600 } // namespace Model
601 } // namespace DeviceFarm
602 } // namespace Aws
Device & WithFormFactor(DeviceFormFactor &&value)
Definition: Device.h:221
void SetCarrier(Aws::String &&value)
Definition: Device.h:411
void SetFleetType(const Aws::String &value)
Definition: Device.h:496
#define AWS_DEVICEFARM_API
Device & WithFleetName(Aws::String &&value)
Definition: Device.h:556
void SetName(const char *value)
Definition: Device.h:101
Device & WithModel(Aws::String &&value)
Definition: Device.h:181
Device & WithCarrier(const char *value)
Definition: Device.h:431
void SetPlatform(DevicePlatform &&value)
Definition: Device.h:242
const Resolution & GetResolution() const
Definition: Device.h:319
Device & WithFleetName(const char *value)
Definition: Device.h:561
void SetManufacturer(Aws::String &&value)
Definition: Device.h:131
Device & WithName(Aws::String &&value)
Definition: Device.h:111
void SetFleetType(const char *value)
Definition: Device.h:508
const Aws::String & GetCarrier() const
Definition: Device.h:401
long long GetHeapSize() const
Definition: Device.h:336
const DeviceFormFactor & GetFormFactor() const
Definition: Device.h:193
const Aws::String & GetManufacturer() const
Definition: Device.h:121
void SetModel(Aws::String &&value)
Definition: Device.h:166
void SetOs(Aws::String &&value)
Definition: Device.h:271
Device & WithPlatform(const DevicePlatform &value)
Definition: Device.h:249
void SetHeapSize(long long value)
Definition: Device.h:341
void SetOs(const char *value)
Definition: Device.h:276
long long GetMemory() const
Definition: Device.h:351
void SetModel(const Aws::String &value)
Definition: Device.h:161
void SetFleetName(Aws::String &&value)
Definition: Device.h:541
Device & WithManufacturer(Aws::String &&value)
Definition: Device.h:146
Device & WithFleetType(const Aws::String &value)
Definition: Device.h:514
const Aws::String & GetModel() const
Definition: Device.h:156
Device & WithModel(const char *value)
Definition: Device.h:186
void SetFormFactor(const DeviceFormFactor &value)
Definition: Device.h:200
Device & WithOs(const Aws::String &value)
Definition: Device.h:281
Device & WithRadio(const char *value)
Definition: Device.h:466
Device & WithFleetType(Aws::String &&value)
Definition: Device.h:520
Device & WithArn(const char *value)
Definition: Device.h:81
void SetImage(const char *value)
Definition: Device.h:381
Device & WithName(const char *value)
Definition: Device.h:116
Device & WithMemory(long long value)
Definition: Device.h:361
Device & WithRemoteAccessEnabled(bool value)
Definition: Device.h:484
const Aws::String & GetOs() const
Definition: Device.h:261
Device & WithModel(const Aws::String &value)
Definition: Device.h:176
Device & WithResolution(Resolution &&value)
Definition: Device.h:331
const Aws::String & GetFleetName() const
Definition: Device.h:531
void SetOs(const Aws::String &value)
Definition: Device.h:266
void SetRemoteAccessEnabled(bool value)
Definition: Device.h:478
void SetPlatform(const DevicePlatform &value)
Definition: Device.h:235
Device & WithRadio(Aws::String &&value)
Definition: Device.h:461
Device & WithArn(const Aws::String &value)
Definition: Device.h:71
void SetRadio(const Aws::String &value)
Definition: Device.h:441
void SetImage(Aws::String &&value)
Definition: Device.h:376
const CPU & GetCpu() const
Definition: Device.h:296
void SetArn(const char *value)
Definition: Device.h:66
void SetFleetName(const Aws::String &value)
Definition: Device.h:536
const DevicePlatform & GetPlatform() const
Definition: Device.h:228
Device & WithRadio(const Aws::String &value)
Definition: Device.h:456
Device & WithHeapSize(long long value)
Definition: Device.h:346
const Aws::String & GetName() const
Definition: Device.h:86
void SetResolution(Resolution &&value)
Definition: Device.h:325
Device & WithCpu(const CPU &value)
Definition: Device.h:311
Device & WithFleetName(const Aws::String &value)
Definition: Device.h:551
Device & WithCpu(CPU &&value)
Definition: Device.h:316
Device & WithArn(Aws::String &&value)
Definition: Device.h:76
Device & WithCarrier(Aws::String &&value)
Definition: Device.h:426
void SetImage(const Aws::String &value)
Definition: Device.h:371
void SetCarrier(const char *value)
Definition: Device.h:416
Device & WithName(const Aws::String &value)
Definition: Device.h:106
void SetModel(const char *value)
Definition: Device.h:171
Device & WithManufacturer(const Aws::String &value)
Definition: Device.h:141
void SetMemory(long long value)
Definition: Device.h:356
bool GetRemoteAccessEnabled() const
Definition: Device.h:472
void SetName(const Aws::String &value)
Definition: Device.h:91
const Aws::String & GetArn() const
Definition: Device.h:51
void SetArn(Aws::String &&value)
Definition: Device.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Device & WithFormFactor(const DeviceFormFactor &value)
Definition: Device.h:214
const Aws::String & GetFleetType() const
Definition: Device.h:490
void SetCarrier(const Aws::String &value)
Definition: Device.h:406
Device & WithImage(const Aws::String &value)
Definition: Device.h:386
void SetRadio(const char *value)
Definition: Device.h:451
void SetManufacturer(const Aws::String &value)
Definition: Device.h:126
Device & WithOs(const char *value)
Definition: Device.h:291
void SetFleetType(Aws::String &&value)
Definition: Device.h:502
void SetFleetName(const char *value)
Definition: Device.h:546
Device & WithManufacturer(const char *value)
Definition: Device.h:151
Device & WithResolution(const Resolution &value)
Definition: Device.h:328
void SetFormFactor(DeviceFormFactor &&value)
Definition: Device.h:207
Device & WithOs(Aws::String &&value)
Definition: Device.h:286
Device & WithFleetType(const char *value)
Definition: Device.h:526
const Aws::String & GetImage() const
Definition: Device.h:366
const Aws::String & GetRadio() const
Definition: Device.h:436
Device & WithCarrier(const Aws::String &value)
Definition: Device.h:421
void SetCpu(const CPU &value)
Definition: Device.h:301
void SetArn(const Aws::String &value)
Definition: Device.h:56
void SetRadio(Aws::String &&value)
Definition: Device.h:446
Device & WithImage(const char *value)
Definition: Device.h:396
void SetName(Aws::String &&value)
Definition: Device.h:96
Device & WithPlatform(DevicePlatform &&value)
Definition: Device.h:256
void SetCpu(CPU &&value)
Definition: Device.h:306
Device & WithImage(Aws::String &&value)
Definition: Device.h:391
void SetManufacturer(const char *value)
Definition: Device.h:136
void SetResolution(const Resolution &value)
Definition: Device.h:322
JSON (JavaScript Object Notation).