AWS SDK for C++  1.9.78
AWS SDK for C++
CpuOptions.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 CpuOptions& 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 CpuOptions& 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::CpuOptions::WithCoreCount
CpuOptions & WithCoreCount(int value)
Definition: CpuOptions.h:58
Aws::EC2::Model::CpuOptions
Definition: CpuOptions.h:30
Aws::EC2::Model::CpuOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CpuOptions::CpuOptions
CpuOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CpuOptions::CoreCountHasBeenSet
bool CoreCountHasBeenSet() const
Definition: CpuOptions.h:48
AWSStreamFwd.h
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::CpuOptions::ThreadsPerCoreHasBeenSet
bool ThreadsPerCoreHasBeenSet() const
Definition: CpuOptions.h:69
Aws::EC2::Model::CpuOptions::GetCoreCount
int GetCoreCount() const
Definition: CpuOptions.h:43
Aws::EC2::Model::CpuOptions::SetThreadsPerCore
void SetThreadsPerCore(int value)
Definition: CpuOptions.h:74
Aws::EC2::Model::CpuOptions::WithThreadsPerCore
CpuOptions & WithThreadsPerCore(int value)
Definition: CpuOptions.h:79
Aws::EC2::Model::CpuOptions::SetCoreCount
void SetCoreCount(int value)
Definition: CpuOptions.h:53
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::CpuOptions::GetThreadsPerCore
int GetThreadsPerCore() const
Definition: CpuOptions.h:64
Aws::EC2::Model::CpuOptions::operator=
CpuOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::CpuOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::CpuOptions::CpuOptions
CpuOptions()