AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ValidCoresT = Aws::Vector<int>>
80 void SetValidCores(ValidCoresT&& value) { m_validCoresHasBeenSet = true; m_validCores = std::forward<ValidCoresT>(value); }
81 template<typename ValidCoresT = Aws::Vector<int>>
82 VCpuInfo& WithValidCores(ValidCoresT&& value) { SetValidCores(std::forward<ValidCoresT>(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 template<typename ValidThreadsPerCoreT = Aws::Vector<int>>
94 void SetValidThreadsPerCore(ValidThreadsPerCoreT&& value) { m_validThreadsPerCoreHasBeenSet = true; m_validThreadsPerCore = std::forward<ValidThreadsPerCoreT>(value); }
95 template<typename ValidThreadsPerCoreT = Aws::Vector<int>>
96 VCpuInfo& WithValidThreadsPerCore(ValidThreadsPerCoreT&& value) { SetValidThreadsPerCore(std::forward<ValidThreadsPerCoreT>(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{0};
102 bool m_defaultVCpusHasBeenSet = false;
103
104 int m_defaultCores{0};
105 bool m_defaultCoresHasBeenSet = false;
106
107 int m_defaultThreadsPerCore{0};
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
void SetValidThreadsPerCore(ValidThreadsPerCoreT &&value)
Definition VCpuInfo.h:94
bool DefaultCoresHasBeenSet() const
Definition VCpuInfo.h:58
VCpuInfo & WithValidThreadsPerCore(ValidThreadsPerCoreT &&value)
Definition VCpuInfo.h:96
int GetDefaultVCpus() const
Definition VCpuInfo.h:47
bool ValidThreadsPerCoreHasBeenSet() const
Definition VCpuInfo.h:92
void SetValidCores(ValidCoresT &&value)
Definition VCpuInfo.h:80
AWS_EC2_API VCpuInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< int > & GetValidThreadsPerCore() const
Definition VCpuInfo.h:91
void SetDefaultVCpus(int value)
Definition VCpuInfo.h:49
VCpuInfo & WithDefaultVCpus(int value)
Definition VCpuInfo.h:50
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< int > & GetValidCores() const
Definition VCpuInfo.h:77
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
VCpuInfo & WithValidCores(ValidCoresT &&value)
Definition VCpuInfo.h:82
AWS_EC2_API VCpuInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API VCpuInfo()=default
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 & AddValidCores(int value)
Definition VCpuInfo.h:83
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream