AWS SDK for C++  0.14.3
AWS SDK for C++
CPU.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace DeviceFarm
29 {
30 namespace Model
31 {
32 
38  {
39  public:
40  CPU();
41  CPU(const Aws::Utils::Json::JsonValue& jsonValue);
42  CPU& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetFrequency() const{ return m_frequency; }
49 
53  inline void SetFrequency(const Aws::String& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
54 
58  inline void SetFrequency(Aws::String&& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
59 
63  inline void SetFrequency(const char* value) { m_frequencyHasBeenSet = true; m_frequency.assign(value); }
64 
68  inline CPU& WithFrequency(const Aws::String& value) { SetFrequency(value); return *this;}
69 
73  inline CPU& WithFrequency(Aws::String&& value) { SetFrequency(value); return *this;}
74 
78  inline CPU& WithFrequency(const char* value) { SetFrequency(value); return *this;}
79 
83  inline const Aws::String& GetArchitecture() const{ return m_architecture; }
84 
88  inline void SetArchitecture(const Aws::String& value) { m_architectureHasBeenSet = true; m_architecture = value; }
89 
93  inline void SetArchitecture(Aws::String&& value) { m_architectureHasBeenSet = true; m_architecture = value; }
94 
98  inline void SetArchitecture(const char* value) { m_architectureHasBeenSet = true; m_architecture.assign(value); }
99 
103  inline CPU& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;}
104 
108  inline CPU& WithArchitecture(Aws::String&& value) { SetArchitecture(value); return *this;}
109 
113  inline CPU& WithArchitecture(const char* value) { SetArchitecture(value); return *this;}
114 
119  inline double GetClock() const{ return m_clock; }
120 
125  inline void SetClock(double value) { m_clockHasBeenSet = true; m_clock = value; }
126 
131  inline CPU& WithClock(double value) { SetClock(value); return *this;}
132 
133  private:
134  Aws::String m_frequency;
135  bool m_frequencyHasBeenSet;
136  Aws::String m_architecture;
137  bool m_architectureHasBeenSet;
138  double m_clock;
139  bool m_clockHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace DeviceFarm
144 } // namespace Aws
#define AWS_DEVICEFARM_API
void SetArchitecture(const Aws::String &value)
Definition: CPU.h:88
CPU & WithArchitecture(Aws::String &&value)
Definition: CPU.h:108
void SetFrequency(const char *value)
Definition: CPU.h:63
void SetClock(double value)
Definition: CPU.h:125
void SetArchitecture(const char *value)
Definition: CPU.h:98
CPU & WithFrequency(const Aws::String &value)
Definition: CPU.h:68
CPU & WithArchitecture(const char *value)
Definition: CPU.h:113
CPU & WithFrequency(Aws::String &&value)
Definition: CPU.h:73
const Aws::String & GetFrequency() const
Definition: CPU.h:48
CPU & WithClock(double value)
Definition: CPU.h:131
CPU & WithArchitecture(const Aws::String &value)
Definition: CPU.h:103
void SetFrequency(const Aws::String &value)
Definition: CPU.h:53
CPU & WithFrequency(const char *value)
Definition: CPU.h:78
void SetFrequency(Aws::String &&value)
Definition: CPU.h:58
void SetArchitecture(Aws::String &&value)
Definition: CPU.h:93
const Aws::String & GetArchitecture() const
Definition: CPU.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
double GetClock() const
Definition: CPU.h:119
JSON (JavaScript Object Notation).