AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VCpuInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28class VCpuInfo {
29 public:
30 AWS_EC2_API VCpuInfo() = default;
31 AWS_EC2_API VCpuInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_EC2_API VCpuInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline int GetDefaultVCpus() const { return m_defaultVCpus; }
42 inline bool DefaultVCpusHasBeenSet() const { return m_defaultVCpusHasBeenSet; }
43 inline void SetDefaultVCpus(int value) {
44 m_defaultVCpusHasBeenSet = true;
45 m_defaultVCpus = value;
46 }
47 inline VCpuInfo& WithDefaultVCpus(int value) {
48 SetDefaultVCpus(value);
49 return *this;
50 }
52
54
57 inline int GetDefaultCores() const { return m_defaultCores; }
58 inline bool DefaultCoresHasBeenSet() const { return m_defaultCoresHasBeenSet; }
59 inline void SetDefaultCores(int value) {
60 m_defaultCoresHasBeenSet = true;
61 m_defaultCores = value;
62 }
63 inline VCpuInfo& WithDefaultCores(int value) {
64 SetDefaultCores(value);
65 return *this;
66 }
68
70
73 inline int GetDefaultThreadsPerCore() const { return m_defaultThreadsPerCore; }
74 inline bool DefaultThreadsPerCoreHasBeenSet() const { return m_defaultThreadsPerCoreHasBeenSet; }
75 inline void SetDefaultThreadsPerCore(int value) {
76 m_defaultThreadsPerCoreHasBeenSet = true;
77 m_defaultThreadsPerCore = value;
78 }
81 return *this;
82 }
84
86
89 inline const Aws::Vector<int>& GetValidCores() const { return m_validCores; }
90 inline bool ValidCoresHasBeenSet() const { return m_validCoresHasBeenSet; }
91 template <typename ValidCoresT = Aws::Vector<int>>
92 void SetValidCores(ValidCoresT&& value) {
93 m_validCoresHasBeenSet = true;
94 m_validCores = std::forward<ValidCoresT>(value);
95 }
96 template <typename ValidCoresT = Aws::Vector<int>>
97 VCpuInfo& WithValidCores(ValidCoresT&& value) {
98 SetValidCores(std::forward<ValidCoresT>(value));
99 return *this;
100 }
101 inline VCpuInfo& AddValidCores(int value) {
102 m_validCoresHasBeenSet = true;
103 m_validCores.push_back(value);
104 return *this;
105 }
107
109
113 inline const Aws::Vector<int>& GetValidThreadsPerCore() const { return m_validThreadsPerCore; }
114 inline bool ValidThreadsPerCoreHasBeenSet() const { return m_validThreadsPerCoreHasBeenSet; }
115 template <typename ValidThreadsPerCoreT = Aws::Vector<int>>
116 void SetValidThreadsPerCore(ValidThreadsPerCoreT&& value) {
117 m_validThreadsPerCoreHasBeenSet = true;
118 m_validThreadsPerCore = std::forward<ValidThreadsPerCoreT>(value);
119 }
120 template <typename ValidThreadsPerCoreT = Aws::Vector<int>>
121 VCpuInfo& WithValidThreadsPerCore(ValidThreadsPerCoreT&& value) {
122 SetValidThreadsPerCore(std::forward<ValidThreadsPerCoreT>(value));
123 return *this;
124 }
125 inline VCpuInfo& AddValidThreadsPerCore(int value) {
126 m_validThreadsPerCoreHasBeenSet = true;
127 m_validThreadsPerCore.push_back(value);
128 return *this;
129 }
131 private:
132 int m_defaultVCpus{0};
133
134 int m_defaultCores{0};
135
136 int m_defaultThreadsPerCore{0};
137
138 Aws::Vector<int> m_validCores;
139
140 Aws::Vector<int> m_validThreadsPerCore;
141 bool m_defaultVCpusHasBeenSet = false;
142 bool m_defaultCoresHasBeenSet = false;
143 bool m_defaultThreadsPerCoreHasBeenSet = false;
144 bool m_validCoresHasBeenSet = false;
145 bool m_validThreadsPerCoreHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace EC2
150} // namespace Aws
void SetValidThreadsPerCore(ValidThreadsPerCoreT &&value)
Definition VCpuInfo.h:116
bool DefaultCoresHasBeenSet() const
Definition VCpuInfo.h:58
VCpuInfo & WithValidThreadsPerCore(ValidThreadsPerCoreT &&value)
Definition VCpuInfo.h:121
int GetDefaultVCpus() const
Definition VCpuInfo.h:41
bool ValidThreadsPerCoreHasBeenSet() const
Definition VCpuInfo.h:114
void SetValidCores(ValidCoresT &&value)
Definition VCpuInfo.h:92
AWS_EC2_API VCpuInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< int > & GetValidThreadsPerCore() const
Definition VCpuInfo.h:113
void SetDefaultVCpus(int value)
Definition VCpuInfo.h:43
VCpuInfo & WithDefaultVCpus(int value)
Definition VCpuInfo.h:47
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< int > & GetValidCores() const
Definition VCpuInfo.h:89
int GetDefaultThreadsPerCore() const
Definition VCpuInfo.h:73
bool DefaultVCpusHasBeenSet() const
Definition VCpuInfo.h:42
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VCpuInfo & WithValidCores(ValidCoresT &&value)
Definition VCpuInfo.h:97
AWS_EC2_API VCpuInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API VCpuInfo()=default
bool DefaultThreadsPerCoreHasBeenSet() const
Definition VCpuInfo.h:74
VCpuInfo & AddValidThreadsPerCore(int value)
Definition VCpuInfo.h:125
bool ValidCoresHasBeenSet() const
Definition VCpuInfo.h:90
int GetDefaultCores() const
Definition VCpuInfo.h:57
void SetDefaultThreadsPerCore(int value)
Definition VCpuInfo.h:75
VCpuInfo & WithDefaultThreadsPerCore(int value)
Definition VCpuInfo.h:79
VCpuInfo & WithDefaultCores(int value)
Definition VCpuInfo.h:63
void SetDefaultCores(int value)
Definition VCpuInfo.h:59
VCpuInfo & AddValidCores(int value)
Definition VCpuInfo.h:101
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream