AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VCpuInfo.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EC2_API VCpuInfo();
36 AWS_EC2_API VCpuInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API VCpuInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline int GetDefaultVCpus() const{ return m_defaultVCpus; }
48 inline bool DefaultVCpusHasBeenSet() const { return m_defaultVCpusHasBeenSet; }
49 inline void SetDefaultVCpus(int value) { m_defaultVCpusHasBeenSet = true; m_defaultVCpus = value; }
50 inline VCpuInfo& WithDefaultVCpus(int value) { SetDefaultVCpus(value); return *this;}
52
54
57 inline int GetDefaultCores() const{ return m_defaultCores; }
58 inline bool DefaultCoresHasBeenSet() const { return m_defaultCoresHasBeenSet; }
59 inline void SetDefaultCores(int value) { m_defaultCoresHasBeenSet = true; m_defaultCores = value; }
60 inline VCpuInfo& WithDefaultCores(int value) { SetDefaultCores(value); return *this;}
62
64
67 inline int GetDefaultThreadsPerCore() const{ return m_defaultThreadsPerCore; }
68 inline bool DefaultThreadsPerCoreHasBeenSet() const { return m_defaultThreadsPerCoreHasBeenSet; }
69 inline void SetDefaultThreadsPerCore(int value) { m_defaultThreadsPerCoreHasBeenSet = true; m_defaultThreadsPerCore = value; }
70 inline VCpuInfo& WithDefaultThreadsPerCore(int value) { SetDefaultThreadsPerCore(value); return *this;}
72
74
77 inline const Aws::Vector<int>& GetValidCores() const{ return m_validCores; }
78 inline bool ValidCoresHasBeenSet() const { return m_validCoresHasBeenSet; }
79 inline void SetValidCores(const Aws::Vector<int>& value) { m_validCoresHasBeenSet = true; m_validCores = value; }
80 inline void SetValidCores(Aws::Vector<int>&& value) { m_validCoresHasBeenSet = true; m_validCores = std::move(value); }
81 inline VCpuInfo& WithValidCores(const Aws::Vector<int>& value) { SetValidCores(value); return *this;}
82 inline VCpuInfo& WithValidCores(Aws::Vector<int>&& value) { SetValidCores(std::move(value)); return *this;}
83 inline VCpuInfo& AddValidCores(int value) { m_validCoresHasBeenSet = true; m_validCores.push_back(value); return *this; }
85
87
91 inline const Aws::Vector<int>& GetValidThreadsPerCore() const{ return m_validThreadsPerCore; }
92 inline bool ValidThreadsPerCoreHasBeenSet() const { return m_validThreadsPerCoreHasBeenSet; }
93 inline void SetValidThreadsPerCore(const Aws::Vector<int>& value) { m_validThreadsPerCoreHasBeenSet = true; m_validThreadsPerCore = value; }
94 inline void SetValidThreadsPerCore(Aws::Vector<int>&& value) { m_validThreadsPerCoreHasBeenSet = true; m_validThreadsPerCore = std::move(value); }
95 inline VCpuInfo& WithValidThreadsPerCore(const Aws::Vector<int>& value) { SetValidThreadsPerCore(value); return *this;}
96 inline VCpuInfo& WithValidThreadsPerCore(Aws::Vector<int>&& value) { SetValidThreadsPerCore(std::move(value)); return *this;}
97 inline VCpuInfo& AddValidThreadsPerCore(int value) { m_validThreadsPerCoreHasBeenSet = true; m_validThreadsPerCore.push_back(value); return *this; }
99 private:
100
101 int m_defaultVCpus;
102 bool m_defaultVCpusHasBeenSet = false;
103
104 int m_defaultCores;
105 bool m_defaultCoresHasBeenSet = false;
106
107 int m_defaultThreadsPerCore;
108 bool m_defaultThreadsPerCoreHasBeenSet = false;
109
110 Aws::Vector<int> m_validCores;
111 bool m_validCoresHasBeenSet = false;
112
113 Aws::Vector<int> m_validThreadsPerCore;
114 bool m_validThreadsPerCoreHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace EC2
119} // namespace Aws
VCpuInfo & WithValidCores(const Aws::Vector< int > &value)
Definition VCpuInfo.h:81
bool DefaultCoresHasBeenSet() const
Definition VCpuInfo.h:58
int GetDefaultVCpus() const
Definition VCpuInfo.h:47
VCpuInfo & WithValidThreadsPerCore(Aws::Vector< int > &&value)
Definition VCpuInfo.h:96
bool ValidThreadsPerCoreHasBeenSet() const
Definition VCpuInfo.h:92
AWS_EC2_API VCpuInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< int > & GetValidThreadsPerCore() const
Definition VCpuInfo.h:91
void SetValidCores(Aws::Vector< int > &&value)
Definition VCpuInfo.h:80
void SetDefaultVCpus(int value)
Definition VCpuInfo.h:49
void SetValidThreadsPerCore(Aws::Vector< int > &&value)
Definition VCpuInfo.h:94
VCpuInfo & WithDefaultVCpus(int value)
Definition VCpuInfo.h:50
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VCpuInfo & WithValidThreadsPerCore(const Aws::Vector< int > &value)
Definition VCpuInfo.h:95
const Aws::Vector< int > & GetValidCores() const
Definition VCpuInfo.h:77
void SetValidCores(const Aws::Vector< int > &value)
Definition VCpuInfo.h:79
int GetDefaultThreadsPerCore() const
Definition VCpuInfo.h:67
bool DefaultVCpusHasBeenSet() const
Definition VCpuInfo.h:48
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetValidThreadsPerCore(const Aws::Vector< int > &value)
Definition VCpuInfo.h:93
AWS_EC2_API VCpuInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool DefaultThreadsPerCoreHasBeenSet() const
Definition VCpuInfo.h:68
VCpuInfo & AddValidThreadsPerCore(int value)
Definition VCpuInfo.h:97
bool ValidCoresHasBeenSet() const
Definition VCpuInfo.h:78
int GetDefaultCores() const
Definition VCpuInfo.h:57
void SetDefaultThreadsPerCore(int value)
Definition VCpuInfo.h:69
VCpuInfo & WithDefaultThreadsPerCore(int value)
Definition VCpuInfo.h:70
VCpuInfo & WithDefaultCores(int value)
Definition VCpuInfo.h:60
void SetDefaultCores(int value)
Definition VCpuInfo.h:59
VCpuInfo & WithValidCores(Aws::Vector< int > &&value)
Definition VCpuInfo.h:82
VCpuInfo & AddValidCores(int value)
Definition VCpuInfo.h:83
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream