AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
57 inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
58 inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
59 inline CPU& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
60 inline CPU& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
61 inline CPU& WithModelName(const char* value) { SetModelName(value); return *this;}
63 private:
64
65 long long m_cores;
66 bool m_coresHasBeenSet = false;
67
68 Aws::String m_modelName;
69 bool m_modelNameHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace mgn
74} // namespace Aws
CPU & WithModelName(const char *value)
Definition CPU.h:61
void SetModelName(const char *value)
Definition CPU.h:58
long long GetCores() const
Definition CPU.h:44
CPU & WithModelName(const Aws::String &value)
Definition CPU.h:59
void SetModelName(const Aws::String &value)
Definition CPU.h:56
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
void SetModelName(Aws::String &&value)
Definition CPU.h:57
const Aws::String & GetModelName() const
Definition CPU.h:54
CPU & WithModelName(Aws::String &&value)
Definition CPU.h:60
CPU & WithCores(long long value)
Definition CPU.h:47
AWS_MGN_API CPU & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MGN_API CPU()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue