AWS SDK for C++  1.9.40
AWS SDK for C++
CpuOptionsRequest.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 CpuOptionsRequest& WithCoreCount(int value) { SetCoreCount(value); return *this;}
60 
61 
67  inline int GetThreadsPerCore() const{ return m_threadsPerCore; }
68 
74  inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
75 
81  inline void SetThreadsPerCore(int value) { m_threadsPerCoreHasBeenSet = true; m_threadsPerCore = value; }
82 
88  inline CpuOptionsRequest& WithThreadsPerCore(int value) { SetThreadsPerCore(value); return *this;}
89 
90  private:
91 
92  int m_coreCount;
93  bool m_coreCountHasBeenSet;
94 
95  int m_threadsPerCore;
96  bool m_threadsPerCoreHasBeenSet;
97  };
98 
99 } // namespace Model
100 } // namespace EC2
101 } // namespace Aws
Aws::EC2::Model::CpuOptionsRequest::CpuOptionsRequest
CpuOptionsRequest()
Aws::EC2::Model::CpuOptionsRequest::GetThreadsPerCore
int GetThreadsPerCore() const
Definition: CpuOptionsRequest.h:67
Aws::EC2::Model::CpuOptionsRequest::GetCoreCount
int GetCoreCount() const
Definition: CpuOptionsRequest.h:44
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CpuOptionsRequest::CpuOptionsRequest
CpuOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CpuOptionsRequest::WithCoreCount
CpuOptionsRequest & WithCoreCount(int value)
Definition: CpuOptionsRequest.h:59
AWSStreamFwd.h
Aws::EC2::Model::CpuOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CpuOptionsRequest::WithThreadsPerCore
CpuOptionsRequest & WithThreadsPerCore(int value)
Definition: CpuOptionsRequest.h:88
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CpuOptionsRequest::ThreadsPerCoreHasBeenSet
bool ThreadsPerCoreHasBeenSet() const
Definition: CpuOptionsRequest.h:74
Aws::EC2::Model::CpuOptionsRequest::CoreCountHasBeenSet
bool CoreCountHasBeenSet() const
Definition: CpuOptionsRequest.h:49
Aws::EC2::Model::CpuOptionsRequest::SetCoreCount
void SetCoreCount(int value)
Definition: CpuOptionsRequest.h:54
Aws::EC2::Model::CpuOptionsRequest::SetThreadsPerCore
void SetThreadsPerCore(int value)
Definition: CpuOptionsRequest.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CpuOptionsRequest::operator=
CpuOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
index
int index
Definition: cJSON.h:171
Aws::EC2::Model::CpuOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::CpuOptionsRequest
Definition: CpuOptionsRequest.h:31
EC2_EXPORTS.h