AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const AmdSevSnpSpecification& GetAmdSevSnp() const{ return m_amdSevSnp; }
70 inline bool AmdSevSnpHasBeenSet() const { return m_amdSevSnpHasBeenSet; }
71 inline void SetAmdSevSnp(const AmdSevSnpSpecification& value) { m_amdSevSnpHasBeenSet = true; m_amdSevSnp = value; }
72 inline void SetAmdSevSnp(AmdSevSnpSpecification&& value) { m_amdSevSnpHasBeenSet = true; m_amdSevSnp = std::move(value); }
73 inline CpuOptions& WithAmdSevSnp(const AmdSevSnpSpecification& value) { SetAmdSevSnp(value); return *this;}
74 inline CpuOptions& WithAmdSevSnp(AmdSevSnpSpecification&& value) { SetAmdSevSnp(std::move(value)); return *this;}
76 private:
77
78 int m_coreCount;
79 bool m_coreCountHasBeenSet = false;
80
81 int m_threadsPerCore;
82 bool m_threadsPerCoreHasBeenSet = false;
83
84 AmdSevSnpSpecification m_amdSevSnp;
85 bool m_amdSevSnpHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace EC2
90} // namespace Aws
CpuOptions & WithThreadsPerCore(int value)
Definition CpuOptions.h:59
void SetThreadsPerCore(int value)
Definition CpuOptions.h:58
CpuOptions & WithAmdSevSnp(const AmdSevSnpSpecification &value)
Definition CpuOptions.h:73
bool AmdSevSnpHasBeenSet() const
Definition CpuOptions.h:70
CpuOptions & WithCoreCount(int value)
Definition CpuOptions.h:49
CpuOptions & WithAmdSevSnp(AmdSevSnpSpecification &&value)
Definition CpuOptions.h:74
void SetCoreCount(int value)
Definition CpuOptions.h:48
const AmdSevSnpSpecification & GetAmdSevSnp() const
Definition CpuOptions.h:69
void SetAmdSevSnp(AmdSevSnpSpecification &&value)
Definition CpuOptions.h:72
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)
void SetAmdSevSnp(const AmdSevSnpSpecification &value)
Definition CpuOptions.h:71
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
std::basic_ostream< char, std::char_traits< char > > OStream