AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ProcessorInfo.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/ArchitectureType.h>
12#include <aws/ec2/model/SupportedAdditionalProcessorFeature.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EC2_API ProcessorInfo() = default;
39 AWS_EC2_API ProcessorInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_EC2_API ProcessorInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::Vector<ArchitectureType>& GetSupportedArchitectures() const { return m_supportedArchitectures; }
51 inline bool SupportedArchitecturesHasBeenSet() const { return m_supportedArchitecturesHasBeenSet; }
52 template<typename SupportedArchitecturesT = Aws::Vector<ArchitectureType>>
53 void SetSupportedArchitectures(SupportedArchitecturesT&& value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures = std::forward<SupportedArchitecturesT>(value); }
54 template<typename SupportedArchitecturesT = Aws::Vector<ArchitectureType>>
55 ProcessorInfo& WithSupportedArchitectures(SupportedArchitecturesT&& value) { SetSupportedArchitectures(std::forward<SupportedArchitecturesT>(value)); return *this;}
56 inline ProcessorInfo& AddSupportedArchitectures(ArchitectureType value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures.push_back(value); return *this; }
58
60
63 inline double GetSustainedClockSpeedInGhz() const { return m_sustainedClockSpeedInGhz; }
64 inline bool SustainedClockSpeedInGhzHasBeenSet() const { return m_sustainedClockSpeedInGhzHasBeenSet; }
65 inline void SetSustainedClockSpeedInGhz(double value) { m_sustainedClockSpeedInGhzHasBeenSet = true; m_sustainedClockSpeedInGhz = value; }
66 inline ProcessorInfo& WithSustainedClockSpeedInGhz(double value) { SetSustainedClockSpeedInGhz(value); return *this;}
68
70
77 inline const Aws::Vector<SupportedAdditionalProcessorFeature>& GetSupportedFeatures() const { return m_supportedFeatures; }
78 inline bool SupportedFeaturesHasBeenSet() const { return m_supportedFeaturesHasBeenSet; }
79 template<typename SupportedFeaturesT = Aws::Vector<SupportedAdditionalProcessorFeature>>
80 void SetSupportedFeatures(SupportedFeaturesT&& value) { m_supportedFeaturesHasBeenSet = true; m_supportedFeatures = std::forward<SupportedFeaturesT>(value); }
81 template<typename SupportedFeaturesT = Aws::Vector<SupportedAdditionalProcessorFeature>>
82 ProcessorInfo& WithSupportedFeatures(SupportedFeaturesT&& value) { SetSupportedFeatures(std::forward<SupportedFeaturesT>(value)); return *this;}
83 inline ProcessorInfo& AddSupportedFeatures(SupportedAdditionalProcessorFeature value) { m_supportedFeaturesHasBeenSet = true; m_supportedFeatures.push_back(value); return *this; }
85
87
90 inline const Aws::String& GetManufacturer() const { return m_manufacturer; }
91 inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; }
92 template<typename ManufacturerT = Aws::String>
93 void SetManufacturer(ManufacturerT&& value) { m_manufacturerHasBeenSet = true; m_manufacturer = std::forward<ManufacturerT>(value); }
94 template<typename ManufacturerT = Aws::String>
95 ProcessorInfo& WithManufacturer(ManufacturerT&& value) { SetManufacturer(std::forward<ManufacturerT>(value)); return *this;}
97 private:
98
99 Aws::Vector<ArchitectureType> m_supportedArchitectures;
100 bool m_supportedArchitecturesHasBeenSet = false;
101
102 double m_sustainedClockSpeedInGhz{0.0};
103 bool m_sustainedClockSpeedInGhzHasBeenSet = false;
104
106 bool m_supportedFeaturesHasBeenSet = false;
107
108 Aws::String m_manufacturer;
109 bool m_manufacturerHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EC2
114} // namespace Aws
void SetManufacturer(ManufacturerT &&value)
AWS_EC2_API ProcessorInfo()=default
const Aws::Vector< ArchitectureType > & GetSupportedArchitectures() const
const Aws::String & GetManufacturer() const
bool SupportedArchitecturesHasBeenSet() const
double GetSustainedClockSpeedInGhz() const
ProcessorInfo & AddSupportedFeatures(SupportedAdditionalProcessorFeature value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSupportedArchitectures(SupportedArchitecturesT &&value)
AWS_EC2_API ProcessorInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
ProcessorInfo & AddSupportedArchitectures(ArchitectureType value)
void SetSupportedFeatures(SupportedFeaturesT &&value)
ProcessorInfo & WithSupportedFeatures(SupportedFeaturesT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ProcessorInfo & WithManufacturer(ManufacturerT &&value)
const Aws::Vector< SupportedAdditionalProcessorFeature > & GetSupportedFeatures() const
ProcessorInfo & WithSustainedClockSpeedInGhz(double value)
void SetSustainedClockSpeedInGhz(double value)
ProcessorInfo & WithSupportedArchitectures(SupportedArchitecturesT &&value)
AWS_EC2_API ProcessorInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SustainedClockSpeedInGhzHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream