AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
LaunchTemplateCpuOptions.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 LaunchTemplateCpuOptions() = default;
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 }
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 }
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
AWS_EC2_API LaunchTemplateCpuOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API LaunchTemplateCpuOptions()=default
AWS_EC2_API LaunchTemplateCpuOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
NestedVirtualizationSpecification GetNestedVirtualization() const
LaunchTemplateCpuOptions & WithCoreCount(int value)
void SetNestedVirtualization(NestedVirtualizationSpecification value)
LaunchTemplateCpuOptions & WithThreadsPerCore(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAmdSevSnp(AmdSevSnpSpecification value)
LaunchTemplateCpuOptions & WithAmdSevSnp(AmdSevSnpSpecification value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplateCpuOptions & WithNestedVirtualization(NestedVirtualizationSpecification value)
std::basic_ostream< char, std::char_traits< char > > OStream