AWS SDK for C++  0.12.9
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 
468  private:
469  Aws::String m_arn;
470  bool m_arnHasBeenSet;
471  Aws::String m_name;
472  bool m_nameHasBeenSet;
473  Aws::String m_manufacturer;
474  bool m_manufacturerHasBeenSet;
475  Aws::String m_model;
476  bool m_modelHasBeenSet;
477  DeviceFormFactor m_formFactor;
478  bool m_formFactorHasBeenSet;
479  DevicePlatform m_platform;
480  bool m_platformHasBeenSet;
481  Aws::String m_os;
482  bool m_osHasBeenSet;
483  CPU m_cpu;
484  bool m_cpuHasBeenSet;
485  Resolution m_resolution;
486  bool m_resolutionHasBeenSet;
487  long long m_heapSize;
488  bool m_heapSizeHasBeenSet;
489  long long m_memory;
490  bool m_memoryHasBeenSet;
491  Aws::String m_image;
492  bool m_imageHasBeenSet;
493  Aws::String m_carrier;
494  bool m_carrierHasBeenSet;
495  Aws::String m_radio;
496  bool m_radioHasBeenSet;
497  };
498 
499 } // namespace Model
500 } // namespace DeviceFarm
501 } // namespace Aws
Device & WithFormFactor(DeviceFormFactor &&value)
Definition: Device.h:221
void SetCarrier(Aws::String &&value)
Definition: Device.h:411
#define AWS_DEVICEFARM_API
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
void SetManufacturer(Aws::String &&value)
Definition: Device.h:131
Device & WithName(Aws::String &&value)
Definition: Device.h:111
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
Device & WithManufacturer(Aws::String &&value)
Definition: Device.h:146
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 & 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
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
void SetOs(const Aws::String &value)
Definition: Device.h:266
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
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 & 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
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
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
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
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).