AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CPU.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/Mgn_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace mgn {
20namespace Model {
21
27class CPU {
28 public:
29 AWS_MGN_API CPU() = default;
30 AWS_MGN_API CPU(Aws::Utils::Json::JsonView jsonValue);
31 AWS_MGN_API CPU& operator=(Aws::Utils::Json::JsonView jsonValue);
33
35
38 inline long long GetCores() const { return m_cores; }
39 inline bool CoresHasBeenSet() const { return m_coresHasBeenSet; }
40 inline void SetCores(long long value) {
41 m_coresHasBeenSet = true;
42 m_cores = value;
43 }
44 inline CPU& WithCores(long long value) {
45 SetCores(value);
46 return *this;
47 }
49
51
54 inline const Aws::String& GetModelName() const { return m_modelName; }
55 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
56 template <typename ModelNameT = Aws::String>
57 void SetModelName(ModelNameT&& value) {
58 m_modelNameHasBeenSet = true;
59 m_modelName = std::forward<ModelNameT>(value);
60 }
61 template <typename ModelNameT = Aws::String>
62 CPU& WithModelName(ModelNameT&& value) {
63 SetModelName(std::forward<ModelNameT>(value));
64 return *this;
65 }
67 private:
68 long long m_cores{0};
69
70 Aws::String m_modelName;
71 bool m_coresHasBeenSet = false;
72 bool m_modelNameHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace mgn
77} // namespace Aws
AWS_MGN_API CPU()=default
long long GetCores() const
Definition CPU.h:38
void SetCores(long long value)
Definition CPU.h:40
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MGN_API CPU(Aws::Utils::Json::JsonView jsonValue)
bool ModelNameHasBeenSet() const
Definition CPU.h:55
bool CoresHasBeenSet() const
Definition CPU.h:39
CPU & WithModelName(ModelNameT &&value)
Definition CPU.h:62
const Aws::String & GetModelName() const
Definition CPU.h:54
CPU & WithCores(long long value)
Definition CPU.h:44
AWS_MGN_API CPU & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetModelName(ModelNameT &&value)
Definition CPU.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue