AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LaunchTemplateCpuOptions.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 LaunchTemplateCpuOptions() = default;
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 LaunchTemplateCpuOptions& 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 LaunchTemplateCpuOptions& WithThreadsPerCore(int value) { SetThreadsPerCore(value); return *this;}
61
63
69 inline AmdSevSnpSpecification GetAmdSevSnp() const { return m_amdSevSnp; }
70 inline bool AmdSevSnpHasBeenSet() const { return m_amdSevSnpHasBeenSet; }
71 inline void SetAmdSevSnp(AmdSevSnpSpecification value) { m_amdSevSnpHasBeenSet = true; m_amdSevSnp = value; }
74 private:
75
76 int m_coreCount{0};
77 bool m_coreCountHasBeenSet = false;
78
79 int m_threadsPerCore{0};
80 bool m_threadsPerCoreHasBeenSet = false;
81
83 bool m_amdSevSnpHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace EC2
88} // 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