AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CpuOptions.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/AmdSevSnpSpecification.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
32 {
33 public:
34 AWS_EC2_API CpuOptions() = default;
35 AWS_EC2_API CpuOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API CpuOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline int GetCoreCount() const { return m_coreCount; }
47 inline bool CoreCountHasBeenSet() const { return m_coreCountHasBeenSet; }
48 inline void SetCoreCount(int value) { m_coreCountHasBeenSet = true; m_coreCount = value; }
49 inline CpuOptions& WithCoreCount(int value) { SetCoreCount(value); return *this;}
51
53
56 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
57 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
58 inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; }
59 inline CpuOptions& WithThreadsPerCore(int value) { SetThreadsPerCore(value); return *this;}
61
63
69 inline AmdSevSnpSpecification GetAmdSevSnp() const { return m_amdSevSnp; }
70 inline bool AmdSevSnpHasBeenSet() const { return m_amdSevSnpHasBeenSet; }
71 inline void SetAmdSevSnp(AmdSevSnpSpecification value) { m_amdSevSnpHasBeenSet = true; m_amdSevSnp = value; }
72 inline CpuOptions& WithAmdSevSnp(AmdSevSnpSpecification value) { SetAmdSevSnp(value); return *this;}
74 private:
75
76 int m_coreCount{0};
77 bool m_coreCountHasBeenSet = false;
78
79 int m_threadsPerCore{0};
80 bool m_threadsPerCoreHasBeenSet = false;
81
83 bool m_amdSevSnpHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace EC2
88} // namespace Aws
CpuOptions & WithThreadsPerCore(int value)
Definition CpuOptions.h:59
void SetThreadsPerCore(int value)
Definition CpuOptions.h:58
bool AmdSevSnpHasBeenSet() const
Definition CpuOptions.h:70
CpuOptions & WithAmdSevSnp(AmdSevSnpSpecification value)
Definition CpuOptions.h:72
CpuOptions & WithCoreCount(int value)
Definition CpuOptions.h:49
void SetCoreCount(int value)
Definition CpuOptions.h:48
AWS_EC2_API CpuOptions()=default
AmdSevSnpSpecification GetAmdSevSnp() const
Definition CpuOptions.h:69
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API CpuOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ThreadsPerCoreHasBeenSet() const
Definition CpuOptions.h:57
AWS_EC2_API CpuOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool CoreCountHasBeenSet() const
Definition CpuOptions.h:47
void SetAmdSevSnp(AmdSevSnpSpecification value)
Definition CpuOptions.h:71
std::basic_ostream< char, std::char_traits< char > > OStream