AWS SDK for C++  1.9.129
AWS SDK for C++
LaunchTemplateCpuOptionsRequest.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 
31  {
32  public:
36 
37  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38  void OutputToStream(Aws::OStream& oStream, const char* location) const;
39 
40 
44  inline int GetCoreCount() const{ return m_coreCount; }
45 
49  inline bool CoreCountHasBeenSet() const { return m_coreCountHasBeenSet; }
50 
54  inline void SetCoreCount(int value) { m_coreCountHasBeenSet = true; m_coreCount = value; }
55 
59  inline LaunchTemplateCpuOptionsRequest& WithCoreCount(int value) { SetCoreCount(value); return *this;}
60 
61 
66  inline int GetThreadsPerCore() const{ return m_threadsPerCore; }
67 
72  inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
73 
78  inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; }
79 
84  inline LaunchTemplateCpuOptionsRequest& WithThreadsPerCore(int value) { SetThreadsPerCore(value); return *this;}
85 
86  private:
87 
88  int m_coreCount;
89  bool m_coreCountHasBeenSet;
90 
91  int m_threadsPerCore;
92  bool m_threadsPerCoreHasBeenSet;
93  };
94 
95 } // namespace Model
96 } // namespace EC2
97 } // namespace Aws
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest::SetCoreCount
void SetCoreCount(int value)
Definition: LaunchTemplateCpuOptionsRequest.h:54
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest::ThreadsPerCoreHasBeenSet
bool ThreadsPerCoreHasBeenSet() const
Definition: LaunchTemplateCpuOptionsRequest.h:72
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest::operator=
LaunchTemplateCpuOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest::LaunchTemplateCpuOptionsRequest
LaunchTemplateCpuOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest
Definition: LaunchTemplateCpuOptionsRequest.h:31
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest::SetThreadsPerCore
void SetThreadsPerCore(int value)
Definition: LaunchTemplateCpuOptionsRequest.h:78
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest::GetCoreCount
int GetCoreCount() const
Definition: LaunchTemplateCpuOptionsRequest.h:44
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest::CoreCountHasBeenSet
bool CoreCountHasBeenSet() const
Definition: LaunchTemplateCpuOptionsRequest.h:49
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest::WithCoreCount
LaunchTemplateCpuOptionsRequest & WithCoreCount(int value)
Definition: LaunchTemplateCpuOptionsRequest.h:59
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest::GetThreadsPerCore
int GetThreadsPerCore() const
Definition: LaunchTemplateCpuOptionsRequest.h:66
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest::LaunchTemplateCpuOptionsRequest
LaunchTemplateCpuOptionsRequest()
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest::WithThreadsPerCore
LaunchTemplateCpuOptionsRequest & WithThreadsPerCore(int value)
Definition: LaunchTemplateCpuOptionsRequest.h:84
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplateCpuOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EC2_EXPORTS.h