AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API CpuOptions() = default;
30 AWS_EC2_API CpuOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_EC2_API CpuOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline int GetCoreCount() const { return m_coreCount; }
41 inline bool CoreCountHasBeenSet() const { return m_coreCountHasBeenSet; }
42 inline void SetCoreCount(int value) {
43 m_coreCountHasBeenSet = true;
44 m_coreCount = value;
45 }
46 inline CpuOptions& WithCoreCount(int value) {
47 SetCoreCount(value);
48 return *this;
49 }
51
53
56 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
57 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
58 inline void SetThreadsPerCore(int value) {
59 m_threadsPerCoreHasBeenSet = true;
60 m_threadsPerCore = value;
61 }
62 inline CpuOptions& WithThreadsPerCore(int value) {
63 SetThreadsPerCore(value);
64 return *this;
65 }
67
69
75 inline AmdSevSnpSpecification GetAmdSevSnp() const { return m_amdSevSnp; }
76 inline bool AmdSevSnpHasBeenSet() const { return m_amdSevSnpHasBeenSet; }
78 m_amdSevSnpHasBeenSet = true;
79 m_amdSevSnp = value;
80 }
82 SetAmdSevSnp(value);
83 return *this;
84 }
86 private:
87 int m_coreCount{0};
88
89 int m_threadsPerCore{0};
90
92 bool m_coreCountHasBeenSet = false;
93 bool m_threadsPerCoreHasBeenSet = false;
94 bool m_amdSevSnpHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace EC2
99} // namespace Aws
CpuOptions & WithThreadsPerCore(int value)
Definition CpuOptions.h:62
void SetThreadsPerCore(int value)
Definition CpuOptions.h:58
bool AmdSevSnpHasBeenSet() const
Definition CpuOptions.h:76
CpuOptions & WithAmdSevSnp(AmdSevSnpSpecification value)
Definition CpuOptions.h:81
CpuOptions & WithCoreCount(int value)
Definition CpuOptions.h:46
void SetCoreCount(int value)
Definition CpuOptions.h:42
AWS_EC2_API CpuOptions()=default
AmdSevSnpSpecification GetAmdSevSnp() const
Definition CpuOptions.h:75
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:41
void SetAmdSevSnp(AmdSevSnpSpecification value)
Definition CpuOptions.h:77
std::basic_ostream< char, std::char_traits< char > > OStream