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/mgn/Mgn_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 mgn
22{
23namespace Model
24{
25
31 class CPU
32 {
33 public:
34 AWS_MGN_API CPU() = default;
35 AWS_MGN_API CPU(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MGN_API CPU& operator=(Aws::Utils::Json::JsonView jsonValue);
38
39
41
44 inline long long GetCores() const { return m_cores; }
45 inline bool CoresHasBeenSet() const { return m_coresHasBeenSet; }
46 inline void SetCores(long long value) { m_coresHasBeenSet = true; m_cores = value; }
47 inline CPU& WithCores(long long value) { SetCores(value); return *this;}
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) { m_modelNameHasBeenSet = true; m_modelName = std::forward<ModelNameT>(value); }
58 template<typename ModelNameT = Aws::String>
59 CPU& WithModelName(ModelNameT&& value) { SetModelName(std::forward<ModelNameT>(value)); return *this;}
61 private:
62
63 long long m_cores{0};
64 bool m_coresHasBeenSet = false;
65
66 Aws::String m_modelName;
67 bool m_modelNameHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace mgn
72} // namespace Aws
AWS_MGN_API CPU()=default
long long GetCores() const
Definition CPU.h:44
void SetCores(long long value)
Definition CPU.h:46
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:45
CPU & WithModelName(ModelNameT &&value)
Definition CPU.h:59
const Aws::String & GetModelName() const
Definition CPU.h:54
CPU & WithCores(long long value)
Definition CPU.h:47
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