AWS SDK for C++  1.9.70
AWS SDK for C++
VCpuInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline int GetDefaultVCpus() const{ return m_defaultVCpus; }
47 
51  inline bool DefaultVCpusHasBeenSet() const { return m_defaultVCpusHasBeenSet; }
52 
56  inline void SetDefaultVCpus(int value) { m_defaultVCpusHasBeenSet = true; m_defaultVCpus = value; }
57 
61  inline VCpuInfo& WithDefaultVCpus(int value) { SetDefaultVCpus(value); return *this;}
62 
63 
67  inline int GetDefaultCores() const{ return m_defaultCores; }
68 
72  inline bool DefaultCoresHasBeenSet() const { return m_defaultCoresHasBeenSet; }
73 
77  inline void SetDefaultCores(int value) { m_defaultCoresHasBeenSet = true; m_defaultCores = value; }
78 
82  inline VCpuInfo& WithDefaultCores(int value) { SetDefaultCores(value); return *this;}
83 
84 
88  inline int GetDefaultThreadsPerCore() const{ return m_defaultThreadsPerCore; }
89 
93  inline bool DefaultThreadsPerCoreHasBeenSet() const { return m_defaultThreadsPerCoreHasBeenSet; }
94 
98  inline void SetDefaultThreadsPerCore(int value) { m_defaultThreadsPerCoreHasBeenSet = true; m_defaultThreadsPerCore = value; }
99 
103  inline VCpuInfo& WithDefaultThreadsPerCore(int value) { SetDefaultThreadsPerCore(value); return *this;}
104 
105 
109  inline const Aws::Vector<int>& GetValidCores() const{ return m_validCores; }
110 
114  inline bool ValidCoresHasBeenSet() const { return m_validCoresHasBeenSet; }
115 
119  inline void SetValidCores(const Aws::Vector<int>& value) { m_validCoresHasBeenSet = true; m_validCores = value; }
120 
124  inline void SetValidCores(Aws::Vector<int>&& value) { m_validCoresHasBeenSet = true; m_validCores = std::move(value); }
125 
129  inline VCpuInfo& WithValidCores(const Aws::Vector<int>& value) { SetValidCores(value); return *this;}
130 
134  inline VCpuInfo& WithValidCores(Aws::Vector<int>&& value) { SetValidCores(std::move(value)); return *this;}
135 
139  inline VCpuInfo& AddValidCores(int value) { m_validCoresHasBeenSet = true; m_validCores.push_back(value); return *this; }
140 
141 
146  inline const Aws::Vector<int>& GetValidThreadsPerCore() const{ return m_validThreadsPerCore; }
147 
152  inline bool ValidThreadsPerCoreHasBeenSet() const { return m_validThreadsPerCoreHasBeenSet; }
153 
158  inline void SetValidThreadsPerCore(const Aws::Vector<int>& value) { m_validThreadsPerCoreHasBeenSet = true; m_validThreadsPerCore = value; }
159 
164  inline void SetValidThreadsPerCore(Aws::Vector<int>&& value) { m_validThreadsPerCoreHasBeenSet = true; m_validThreadsPerCore = std::move(value); }
165 
170  inline VCpuInfo& WithValidThreadsPerCore(const Aws::Vector<int>& value) { SetValidThreadsPerCore(value); return *this;}
171 
176  inline VCpuInfo& WithValidThreadsPerCore(Aws::Vector<int>&& value) { SetValidThreadsPerCore(std::move(value)); return *this;}
177 
182  inline VCpuInfo& AddValidThreadsPerCore(int value) { m_validThreadsPerCoreHasBeenSet = true; m_validThreadsPerCore.push_back(value); return *this; }
183 
184  private:
185 
186  int m_defaultVCpus;
187  bool m_defaultVCpusHasBeenSet;
188 
189  int m_defaultCores;
190  bool m_defaultCoresHasBeenSet;
191 
192  int m_defaultThreadsPerCore;
193  bool m_defaultThreadsPerCoreHasBeenSet;
194 
195  Aws::Vector<int> m_validCores;
196  bool m_validCoresHasBeenSet;
197 
198  Aws::Vector<int> m_validThreadsPerCore;
199  bool m_validThreadsPerCoreHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace EC2
204 } // namespace Aws
Aws::EC2::Model::VCpuInfo::ValidThreadsPerCoreHasBeenSet
bool ValidThreadsPerCoreHasBeenSet() const
Definition: VCpuInfo.h:152
Aws::EC2::Model::VCpuInfo::WithValidThreadsPerCore
VCpuInfo & WithValidThreadsPerCore(Aws::Vector< int > &&value)
Definition: VCpuInfo.h:176
Aws::EC2::Model::VCpuInfo::AddValidThreadsPerCore
VCpuInfo & AddValidThreadsPerCore(int value)
Definition: VCpuInfo.h:182
Aws::EC2::Model::VCpuInfo::SetDefaultThreadsPerCore
void SetDefaultThreadsPerCore(int value)
Definition: VCpuInfo.h:98
Aws::EC2::Model::VCpuInfo::VCpuInfo
VCpuInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::VCpuInfo::VCpuInfo
VCpuInfo()
Aws::EC2::Model::VCpuInfo
Definition: VCpuInfo.h:33
Aws::EC2::Model::VCpuInfo::WithValidThreadsPerCore
VCpuInfo & WithValidThreadsPerCore(const Aws::Vector< int > &value)
Definition: VCpuInfo.h:170
Aws::EC2::Model::VCpuInfo::WithDefaultVCpus
VCpuInfo & WithDefaultVCpus(int value)
Definition: VCpuInfo.h:61
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::VCpuInfo::ValidCoresHasBeenSet
bool ValidCoresHasBeenSet() const
Definition: VCpuInfo.h:114
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::VCpuInfo::SetValidThreadsPerCore
void SetValidThreadsPerCore(Aws::Vector< int > &&value)
Definition: VCpuInfo.h:164
AWSStreamFwd.h
Aws::EC2::Model::VCpuInfo::GetDefaultVCpus
int GetDefaultVCpus() const
Definition: VCpuInfo.h:46
Aws::EC2::Model::VCpuInfo::DefaultCoresHasBeenSet
bool DefaultCoresHasBeenSet() const
Definition: VCpuInfo.h:72
AWSVector.h
Aws::EC2::Model::VCpuInfo::WithDefaultThreadsPerCore
VCpuInfo & WithDefaultThreadsPerCore(int value)
Definition: VCpuInfo.h:103
Aws::EC2::Model::VCpuInfo::DefaultVCpusHasBeenSet
bool DefaultVCpusHasBeenSet() const
Definition: VCpuInfo.h:51
Aws::EC2::Model::VCpuInfo::GetDefaultThreadsPerCore
int GetDefaultThreadsPerCore() const
Definition: VCpuInfo.h:88
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::VCpuInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::VCpuInfo::GetValidThreadsPerCore
const Aws::Vector< int > & GetValidThreadsPerCore() const
Definition: VCpuInfo.h:146
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::VCpuInfo::SetValidCores
void SetValidCores(const Aws::Vector< int > &value)
Definition: VCpuInfo.h:119
Aws::EC2::Model::VCpuInfo::SetDefaultVCpus
void SetDefaultVCpus(int value)
Definition: VCpuInfo.h:56
Aws::EC2::Model::VCpuInfo::SetValidThreadsPerCore
void SetValidThreadsPerCore(const Aws::Vector< int > &value)
Definition: VCpuInfo.h:158
Aws::EC2::Model::VCpuInfo::GetDefaultCores
int GetDefaultCores() const
Definition: VCpuInfo.h:67
Aws::EC2::Model::VCpuInfo::SetDefaultCores
void SetDefaultCores(int value)
Definition: VCpuInfo.h:77
Aws::EC2::Model::VCpuInfo::SetValidCores
void SetValidCores(Aws::Vector< int > &&value)
Definition: VCpuInfo.h:124
Aws::EC2::Model::VCpuInfo::DefaultThreadsPerCoreHasBeenSet
bool DefaultThreadsPerCoreHasBeenSet() const
Definition: VCpuInfo.h:93
Aws::EC2::Model::VCpuInfo::operator=
VCpuInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::VCpuInfo::WithValidCores
VCpuInfo & WithValidCores(const Aws::Vector< int > &value)
Definition: VCpuInfo.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::VCpuInfo::GetValidCores
const Aws::Vector< int > & GetValidCores() const
Definition: VCpuInfo.h:109
Aws::EC2::Model::VCpuInfo::AddValidCores
VCpuInfo & AddValidCores(int value)
Definition: VCpuInfo.h:139
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::VCpuInfo::WithDefaultCores
VCpuInfo & WithDefaultCores(int value)
Definition: VCpuInfo.h:82
Aws::EC2::Model::VCpuInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EC2_EXPORTS.h
Aws::EC2::Model::VCpuInfo::WithValidCores
VCpuInfo & WithValidCores(Aws::Vector< int > &&value)
Definition: VCpuInfo.h:134