AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
CpuOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/AmdSevSnpSpecification.h>
10#include <aws/ec2/model/NestedVirtualizationSpecification.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
30 AWS_EC2_API CpuOptions() = default;
31 AWS_EC2_API CpuOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_EC2_API CpuOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline int GetCoreCount() const { return m_coreCount; }
42 inline bool CoreCountHasBeenSet() const { return m_coreCountHasBeenSet; }
43 inline void SetCoreCount(int value) {
44 m_coreCountHasBeenSet = true;
45 m_coreCount = value;
46 }
47 inline CpuOptions& WithCoreCount(int value) {
48 SetCoreCount(value);
49 return *this;
50 }
52
54
57 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
58 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
59 inline void SetThreadsPerCore(int value) {
60 m_threadsPerCoreHasBeenSet = true;
61 m_threadsPerCore = value;
62 }
63 inline CpuOptions& WithThreadsPerCore(int value) {
64 SetThreadsPerCore(value);
65 return *this;
66 }
68
70
76 inline AmdSevSnpSpecification GetAmdSevSnp() const { return m_amdSevSnp; }
77 inline bool AmdSevSnpHasBeenSet() const { return m_amdSevSnpHasBeenSet; }
79 m_amdSevSnpHasBeenSet = true;
80 m_amdSevSnp = value;
81 }
83 SetAmdSevSnp(value);
84 return *this;
85 }
87
89
92 inline NestedVirtualizationSpecification GetNestedVirtualization() const { return m_nestedVirtualization; }
93 inline bool NestedVirtualizationHasBeenSet() const { return m_nestedVirtualizationHasBeenSet; }
95 m_nestedVirtualizationHasBeenSet = true;
96 m_nestedVirtualization = value;
97 }
100 return *this;
101 }
103 private:
104 int m_coreCount{0};
105
106 int m_threadsPerCore{0};
107
109
111 bool m_coreCountHasBeenSet = false;
112 bool m_threadsPerCoreHasBeenSet = false;
113 bool m_amdSevSnpHasBeenSet = false;
114 bool m_nestedVirtualizationHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace EC2
119} // namespace Aws
CpuOptions & WithThreadsPerCore(int value)
Definition CpuOptions.h:63
void SetThreadsPerCore(int value)
Definition CpuOptions.h:59
bool NestedVirtualizationHasBeenSet() const
Definition CpuOptions.h:93
bool AmdSevSnpHasBeenSet() const
Definition CpuOptions.h:77
CpuOptions & WithAmdSevSnp(AmdSevSnpSpecification value)
Definition CpuOptions.h:82
CpuOptions & WithCoreCount(int value)
Definition CpuOptions.h:47
void SetCoreCount(int value)
Definition CpuOptions.h:43
AWS_EC2_API CpuOptions()=default
AmdSevSnpSpecification GetAmdSevSnp() const
Definition CpuOptions.h:76
void SetNestedVirtualization(NestedVirtualizationSpecification value)
Definition CpuOptions.h:94
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)
CpuOptions & WithNestedVirtualization(NestedVirtualizationSpecification value)
Definition CpuOptions.h:98
bool ThreadsPerCoreHasBeenSet() const
Definition CpuOptions.h:58
AWS_EC2_API CpuOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool CoreCountHasBeenSet() const
Definition CpuOptions.h:42
void SetAmdSevSnp(AmdSevSnpSpecification value)
Definition CpuOptions.h:78
NestedVirtualizationSpecification GetNestedVirtualization() const
Definition CpuOptions.h:92
std::basic_ostream< char, std::char_traits< char > > OStream