AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CpuOptionsRequest.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
33 {
34 public:
35 AWS_EC2_API CpuOptionsRequest();
36 AWS_EC2_API CpuOptionsRequest(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline int GetCoreCount() const{ return m_coreCount; }
48 inline bool CoreCountHasBeenSet() const { return m_coreCountHasBeenSet; }
49 inline void SetCoreCount(int value) { m_coreCountHasBeenSet = true; m_coreCount = value; }
50 inline CpuOptionsRequest& WithCoreCount(int value) { SetCoreCount(value); return *this;}
52
54
59 inline int GetThreadsPerCore() const{ return m_threadsPerCore; }
60 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
61 inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; }
62 inline CpuOptionsRequest& WithThreadsPerCore(int value) { SetThreadsPerCore(value); return *this;}
64
66
72 inline const AmdSevSnpSpecification& GetAmdSevSnp() const{ return m_amdSevSnp; }
73 inline bool AmdSevSnpHasBeenSet() const { return m_amdSevSnpHasBeenSet; }
74 inline void SetAmdSevSnp(const AmdSevSnpSpecification& value) { m_amdSevSnpHasBeenSet = true; m_amdSevSnp = value; }
75 inline void SetAmdSevSnp(AmdSevSnpSpecification&& value) { m_amdSevSnpHasBeenSet = true; m_amdSevSnp = std::move(value); }
76 inline CpuOptionsRequest& WithAmdSevSnp(const AmdSevSnpSpecification& value) { SetAmdSevSnp(value); return *this;}
77 inline CpuOptionsRequest& WithAmdSevSnp(AmdSevSnpSpecification&& value) { SetAmdSevSnp(std::move(value)); return *this;}
79 private:
80
81 int m_coreCount;
82 bool m_coreCountHasBeenSet = false;
83
84 int m_threadsPerCore;
85 bool m_threadsPerCoreHasBeenSet = false;
86
87 AmdSevSnpSpecification m_amdSevSnp;
88 bool m_amdSevSnpHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace EC2
93} // namespace Aws
CpuOptionsRequest & WithAmdSevSnp(AmdSevSnpSpecification &&value)
AWS_EC2_API CpuOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CpuOptionsRequest & WithAmdSevSnp(const AmdSevSnpSpecification &value)
void SetAmdSevSnp(AmdSevSnpSpecification &&value)
AWS_EC2_API CpuOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
CpuOptionsRequest & WithThreadsPerCore(int value)
CpuOptionsRequest & WithCoreCount(int value)
const AmdSevSnpSpecification & GetAmdSevSnp() const
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
void SetAmdSevSnp(const AmdSevSnpSpecification &value)
std::basic_ostream< char, std::char_traits< char > > OStream