AWS SDK for C++  1.9.102
AWS SDK for C++
ProcessorInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::Vector<ArchitectureType>& GetSupportedArchitectures() const{ return m_supportedArchitectures; }
48 
52  inline bool SupportedArchitecturesHasBeenSet() const { return m_supportedArchitecturesHasBeenSet; }
53 
57  inline void SetSupportedArchitectures(const Aws::Vector<ArchitectureType>& value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures = value; }
58 
62  inline void SetSupportedArchitectures(Aws::Vector<ArchitectureType>&& value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures = std::move(value); }
63 
67  inline ProcessorInfo& WithSupportedArchitectures(const Aws::Vector<ArchitectureType>& value) { SetSupportedArchitectures(value); return *this;}
68 
72  inline ProcessorInfo& WithSupportedArchitectures(Aws::Vector<ArchitectureType>&& value) { SetSupportedArchitectures(std::move(value)); return *this;}
73 
77  inline ProcessorInfo& AddSupportedArchitectures(const ArchitectureType& value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures.push_back(value); return *this; }
78 
82  inline ProcessorInfo& AddSupportedArchitectures(ArchitectureType&& value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures.push_back(std::move(value)); return *this; }
83 
84 
88  inline double GetSustainedClockSpeedInGhz() const{ return m_sustainedClockSpeedInGhz; }
89 
93  inline bool SustainedClockSpeedInGhzHasBeenSet() const { return m_sustainedClockSpeedInGhzHasBeenSet; }
94 
98  inline void SetSustainedClockSpeedInGhz(double value) { m_sustainedClockSpeedInGhzHasBeenSet = true; m_sustainedClockSpeedInGhz = value; }
99 
103  inline ProcessorInfo& WithSustainedClockSpeedInGhz(double value) { SetSustainedClockSpeedInGhz(value); return *this;}
104 
105  private:
106 
107  Aws::Vector<ArchitectureType> m_supportedArchitectures;
108  bool m_supportedArchitecturesHasBeenSet;
109 
110  double m_sustainedClockSpeedInGhz;
111  bool m_sustainedClockSpeedInGhzHasBeenSet;
112  };
113 
114 } // namespace Model
115 } // namespace EC2
116 } // namespace Aws
Aws::EC2::Model::ProcessorInfo::GetSustainedClockSpeedInGhz
double GetSustainedClockSpeedInGhz() const
Definition: ProcessorInfo.h:88
Aws::EC2::Model::ProcessorInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ProcessorInfo
Definition: ProcessorInfo.h:34
Aws::EC2::Model::ProcessorInfo::operator=
ProcessorInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ProcessorInfo::SupportedArchitecturesHasBeenSet
bool SupportedArchitecturesHasBeenSet() const
Definition: ProcessorInfo.h:52
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Aws::EC2::Model::ProcessorInfo::WithSupportedArchitectures
ProcessorInfo & WithSupportedArchitectures(const Aws::Vector< ArchitectureType > &value)
Definition: ProcessorInfo.h:67
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
ArchitectureType.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ProcessorInfo::SustainedClockSpeedInGhzHasBeenSet
bool SustainedClockSpeedInGhzHasBeenSet() const
Definition: ProcessorInfo.h:93
Aws::EC2::Model::ProcessorInfo::AddSupportedArchitectures
ProcessorInfo & AddSupportedArchitectures(const ArchitectureType &value)
Definition: ProcessorInfo.h:77
Aws::EC2::Model::ProcessorInfo::SetSustainedClockSpeedInGhz
void SetSustainedClockSpeedInGhz(double value)
Definition: ProcessorInfo.h:98
Aws::EC2::Model::ProcessorInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ProcessorInfo::WithSustainedClockSpeedInGhz
ProcessorInfo & WithSustainedClockSpeedInGhz(double value)
Definition: ProcessorInfo.h:103
Aws::EC2::Model::ProcessorInfo::SetSupportedArchitectures
void SetSupportedArchitectures(Aws::Vector< ArchitectureType > &&value)
Definition: ProcessorInfo.h:62
Aws::EC2::Model::ProcessorInfo::ProcessorInfo
ProcessorInfo()
Aws::EC2::Model::ProcessorInfo::GetSupportedArchitectures
const Aws::Vector< ArchitectureType > & GetSupportedArchitectures() const
Definition: ProcessorInfo.h:47
Aws::EC2::Model::ProcessorInfo::WithSupportedArchitectures
ProcessorInfo & WithSupportedArchitectures(Aws::Vector< ArchitectureType > &&value)
Definition: ProcessorInfo.h:72
Aws::EC2::Model::ArchitectureType
ArchitectureType
Definition: ArchitectureType.h:17
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ProcessorInfo::ProcessorInfo
ProcessorInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::ProcessorInfo::SetSupportedArchitectures
void SetSupportedArchitectures(const Aws::Vector< ArchitectureType > &value)
Definition: ProcessorInfo.h:57
Aws::EC2::Model::ProcessorInfo::AddSupportedArchitectures
ProcessorInfo & AddSupportedArchitectures(ArchitectureType &&value)
Definition: ProcessorInfo.h:82