AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 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 LaunchTemplateCpuOptions& WithAmdSevSnp(const AmdSevSnpSpecification& value) { SetAmdSevSnp(value); return *this;}
74 inline LaunchTemplateCpuOptions& 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
LaunchTemplateCpuOptions & WithAmdSevSnp(AmdSevSnpSpecification &&value)
AWS_EC2_API LaunchTemplateCpuOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API LaunchTemplateCpuOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateCpuOptions & WithAmdSevSnp(const AmdSevSnpSpecification &value)
LaunchTemplateCpuOptions & WithCoreCount(int value)
void SetAmdSevSnp(const AmdSevSnpSpecification &value)
LaunchTemplateCpuOptions & WithThreadsPerCore(int value)
void SetAmdSevSnp(AmdSevSnpSpecification &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const AmdSevSnpSpecification & GetAmdSevSnp() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_ostream< char, std::char_traits< char > > OStream