AWS SDK for C++  1.9.71
AWS SDK for C++
LaunchTemplateCpuOptions.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
9 
10 namespace Aws
11 {
12 namespace Utils
13 {
14 namespace Xml
15 {
16  class XmlNode;
17 } // namespace Xml
18 } // namespace Utils
19 namespace EC2
20 {
21 namespace Model
22 {
23 
30  {
31  public:
35 
36  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37  void OutputToStream(Aws::OStream& oStream, const char* location) const;
38 
39 
43  inline int GetCoreCount() const{ return m_coreCount; }
44 
48  inline bool CoreCountHasBeenSet() const { return m_coreCountHasBeenSet; }
49 
53  inline void SetCoreCount(int value) { m_coreCountHasBeenSet = true; m_coreCount = value; }
54 
58  inline LaunchTemplateCpuOptions& WithCoreCount(int value) { SetCoreCount(value); return *this;}
59 
60 
64  inline int GetThreadsPerCore() const{ return m_threadsPerCore; }
65 
69  inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
70 
74  inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; }
75 
79  inline LaunchTemplateCpuOptions& WithThreadsPerCore(int value) { SetThreadsPerCore(value); return *this;}
80 
81  private:
82 
83  int m_coreCount;
84  bool m_coreCountHasBeenSet;
85 
86  int m_threadsPerCore;
87  bool m_threadsPerCoreHasBeenSet;
88  };
89 
90 } // namespace Model
91 } // namespace EC2
92 } // namespace Aws
Aws::EC2::Model::LaunchTemplateCpuOptions::GetCoreCount
int GetCoreCount() const
Definition: LaunchTemplateCpuOptions.h:43
Aws::EC2::Model::LaunchTemplateCpuOptions::SetThreadsPerCore
void SetThreadsPerCore(int value)
Definition: LaunchTemplateCpuOptions.h:74
Aws::EC2::Model::LaunchTemplateCpuOptions::LaunchTemplateCpuOptions
LaunchTemplateCpuOptions()
Aws::EC2::Model::LaunchTemplateCpuOptions::CoreCountHasBeenSet
bool CoreCountHasBeenSet() const
Definition: LaunchTemplateCpuOptions.h:48
Aws::EC2::Model::LaunchTemplateCpuOptions::LaunchTemplateCpuOptions
LaunchTemplateCpuOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateCpuOptions::GetThreadsPerCore
int GetThreadsPerCore() const
Definition: LaunchTemplateCpuOptions.h:64
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateCpuOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateCpuOptions::ThreadsPerCoreHasBeenSet
bool ThreadsPerCoreHasBeenSet() const
Definition: LaunchTemplateCpuOptions.h:69
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateCpuOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateCpuOptions
Definition: LaunchTemplateCpuOptions.h:30
Aws::EC2::Model::LaunchTemplateCpuOptions::operator=
LaunchTemplateCpuOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateCpuOptions::WithThreadsPerCore
LaunchTemplateCpuOptions & WithThreadsPerCore(int value)
Definition: LaunchTemplateCpuOptions.h:79
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateCpuOptions::WithCoreCount
LaunchTemplateCpuOptions & WithCoreCount(int value)
Definition: LaunchTemplateCpuOptions.h:58
Aws::EC2::Model::LaunchTemplateCpuOptions::SetCoreCount
void SetCoreCount(int value)
Definition: LaunchTemplateCpuOptions.h:53