AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CpuOptionsRequest.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
29 public:
30 AWS_EC2_API CpuOptionsRequest() = default;
31 AWS_EC2_API CpuOptionsRequest(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 CpuOptionsRequest& WithCoreCount(int value) {
48 SetCoreCount(value);
49 return *this;
50 }
52
54
59 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
60 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
61 inline void SetThreadsPerCore(int value) {
62 m_threadsPerCoreHasBeenSet = true;
63 m_threadsPerCore = value;
64 }
66 SetThreadsPerCore(value);
67 return *this;
68 }
70
72
78 inline AmdSevSnpSpecification GetAmdSevSnp() const { return m_amdSevSnp; }
79 inline bool AmdSevSnpHasBeenSet() const { return m_amdSevSnpHasBeenSet; }
81 m_amdSevSnpHasBeenSet = true;
82 m_amdSevSnp = value;
83 }
85 SetAmdSevSnp(value);
86 return *this;
87 }
89 private:
90 int m_coreCount{0};
91
92 int m_threadsPerCore{0};
93
95 bool m_coreCountHasBeenSet = false;
96 bool m_threadsPerCoreHasBeenSet = false;
97 bool m_amdSevSnpHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace EC2
102} // namespace Aws
AWS_EC2_API CpuOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API CpuOptionsRequest()=default
CpuOptionsRequest & WithAmdSevSnp(AmdSevSnpSpecification value)
AWS_EC2_API CpuOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
CpuOptionsRequest & WithThreadsPerCore(int value)
CpuOptionsRequest & WithCoreCount(int value)
void SetAmdSevSnp(AmdSevSnpSpecification value)
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
AmdSevSnpSpecification GetAmdSevSnp() const
std::basic_ostream< char, std::char_traits< char > > OStream