AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
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 LaunchTemplateCpuOptions() = default;
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 }
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 }
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
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)
LaunchTemplateCpuOptions & WithCoreCount(int 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
std::basic_ostream< char, std::char_traits< char > > OStream