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>
49 inline void SetDefaultVCpus(
int value) { m_defaultVCpusHasBeenSet =
true; m_defaultVCpus = value; }
59 inline void SetDefaultCores(
int value) { m_defaultCoresHasBeenSet =
true; m_defaultCores = value; }
79 template<
typename Val
idCoresT = Aws::Vector<
int>>
80 void SetValidCores(ValidCoresT&& value) { m_validCoresHasBeenSet =
true; m_validCores = std::forward<ValidCoresT>(value); }
81 template<
typename Val
idCoresT = Aws::Vector<
int>>
83 inline VCpuInfo&
AddValidCores(
int value) { m_validCoresHasBeenSet =
true; m_validCores.push_back(value);
return *
this; }
93 template<
typename Val
idThreadsPerCoreT = Aws::Vector<
int>>
94 void SetValidThreadsPerCore(ValidThreadsPerCoreT&& value) { m_validThreadsPerCoreHasBeenSet =
true; m_validThreadsPerCore = std::forward<ValidThreadsPerCoreT>(value); }
95 template<
typename Val
idThreadsPerCoreT = Aws::Vector<
int>>
101 int m_defaultVCpus{0};
102 bool m_defaultVCpusHasBeenSet =
false;
104 int m_defaultCores{0};
105 bool m_defaultCoresHasBeenSet =
false;
107 int m_defaultThreadsPerCore{0};
108 bool m_defaultThreadsPerCoreHasBeenSet =
false;
111 bool m_validCoresHasBeenSet =
false;
114 bool m_validThreadsPerCoreHasBeenSet =
false;
void SetValidThreadsPerCore(ValidThreadsPerCoreT &&value)
bool DefaultCoresHasBeenSet() const
VCpuInfo & WithValidThreadsPerCore(ValidThreadsPerCoreT &&value)
int GetDefaultVCpus() const
bool ValidThreadsPerCoreHasBeenSet() const
void SetValidCores(ValidCoresT &&value)
AWS_EC2_API VCpuInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< int > & GetValidThreadsPerCore() const
void SetDefaultVCpus(int value)
VCpuInfo & WithDefaultVCpus(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< int > & GetValidCores() const
int GetDefaultThreadsPerCore() const
bool DefaultVCpusHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VCpuInfo & WithValidCores(ValidCoresT &&value)
AWS_EC2_API VCpuInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API VCpuInfo()=default
bool DefaultThreadsPerCoreHasBeenSet() const
VCpuInfo & AddValidThreadsPerCore(int value)
bool ValidCoresHasBeenSet() const
int GetDefaultCores() const
void SetDefaultThreadsPerCore(int value)
VCpuInfo & WithDefaultThreadsPerCore(int value)
VCpuInfo & WithDefaultCores(int value)
void SetDefaultCores(int value)
VCpuInfo & AddValidCores(int value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream