AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CPU.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DeviceFarm
22{
23namespace Model
24{
25
32 class CPU
33 {
34 public:
35 AWS_DEVICEFARM_API CPU() = default;
36 AWS_DEVICEFARM_API CPU(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DEVICEFARM_API CPU& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetFrequency() const { return m_frequency; }
46 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
47 template<typename FrequencyT = Aws::String>
48 void SetFrequency(FrequencyT&& value) { m_frequencyHasBeenSet = true; m_frequency = std::forward<FrequencyT>(value); }
49 template<typename FrequencyT = Aws::String>
50 CPU& WithFrequency(FrequencyT&& value) { SetFrequency(std::forward<FrequencyT>(value)); return *this;}
52
54
57 inline const Aws::String& GetArchitecture() const { return m_architecture; }
58 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
59 template<typename ArchitectureT = Aws::String>
60 void SetArchitecture(ArchitectureT&& value) { m_architectureHasBeenSet = true; m_architecture = std::forward<ArchitectureT>(value); }
61 template<typename ArchitectureT = Aws::String>
62 CPU& WithArchitecture(ArchitectureT&& value) { SetArchitecture(std::forward<ArchitectureT>(value)); return *this;}
64
66
70 inline double GetClock() const { return m_clock; }
71 inline bool ClockHasBeenSet() const { return m_clockHasBeenSet; }
72 inline void SetClock(double value) { m_clockHasBeenSet = true; m_clock = value; }
73 inline CPU& WithClock(double value) { SetClock(value); return *this;}
75 private:
76
77 Aws::String m_frequency;
78 bool m_frequencyHasBeenSet = false;
79
80 Aws::String m_architecture;
81 bool m_architectureHasBeenSet = false;
82
83 double m_clock{0.0};
84 bool m_clockHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace DeviceFarm
89} // namespace Aws
AWS_DEVICEFARM_API CPU & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ClockHasBeenSet() const
Definition CPU.h:71
bool ArchitectureHasBeenSet() const
Definition CPU.h:58
double GetClock() const
Definition CPU.h:70
CPU & WithClock(double value)
Definition CPU.h:73
const Aws::String & GetFrequency() const
Definition CPU.h:45
bool FrequencyHasBeenSet() const
Definition CPU.h:46
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVICEFARM_API CPU()=default
void SetArchitecture(ArchitectureT &&value)
Definition CPU.h:60
CPU & WithArchitecture(ArchitectureT &&value)
Definition CPU.h:62
void SetClock(double value)
Definition CPU.h:72
AWS_DEVICEFARM_API CPU(Aws::Utils::Json::JsonView jsonValue)
void SetFrequency(FrequencyT &&value)
Definition CPU.h:48
CPU & WithFrequency(FrequencyT &&value)
Definition CPU.h:50
const Aws::String & GetArchitecture() const
Definition CPU.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue