AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSupportedArchitectures(const Aws::Vector<ArchitectureType>& value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures = value; }
53 inline void SetSupportedArchitectures(Aws::Vector<ArchitectureType>&& value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures = std::move(value); }
56 inline ProcessorInfo& AddSupportedArchitectures(const ArchitectureType& value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures.push_back(value); return *this; }
57 inline ProcessorInfo& AddSupportedArchitectures(ArchitectureType&& value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures.push_back(std::move(value)); return *this; }
59
61
64 inline double GetSustainedClockSpeedInGhz() const{ return m_sustainedClockSpeedInGhz; }
65 inline bool SustainedClockSpeedInGhzHasBeenSet() const { return m_sustainedClockSpeedInGhzHasBeenSet; }
66 inline void SetSustainedClockSpeedInGhz(double value) { m_sustainedClockSpeedInGhzHasBeenSet = true; m_sustainedClockSpeedInGhz = value; }
67 inline ProcessorInfo& WithSustainedClockSpeedInGhz(double value) { SetSustainedClockSpeedInGhz(value); return *this;}
69
71
78 inline const Aws::Vector<SupportedAdditionalProcessorFeature>& GetSupportedFeatures() const{ return m_supportedFeatures; }
79 inline bool SupportedFeaturesHasBeenSet() const { return m_supportedFeaturesHasBeenSet; }
80 inline void SetSupportedFeatures(const Aws::Vector<SupportedAdditionalProcessorFeature>& value) { m_supportedFeaturesHasBeenSet = true; m_supportedFeatures = value; }
81 inline void SetSupportedFeatures(Aws::Vector<SupportedAdditionalProcessorFeature>&& value) { m_supportedFeaturesHasBeenSet = true; m_supportedFeatures = std::move(value); }
84 inline ProcessorInfo& AddSupportedFeatures(const SupportedAdditionalProcessorFeature& value) { m_supportedFeaturesHasBeenSet = true; m_supportedFeatures.push_back(value); return *this; }
85 inline ProcessorInfo& AddSupportedFeatures(SupportedAdditionalProcessorFeature&& value) { m_supportedFeaturesHasBeenSet = true; m_supportedFeatures.push_back(std::move(value)); return *this; }
87
89
92 inline const Aws::String& GetManufacturer() const{ return m_manufacturer; }
93 inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; }
94 inline void SetManufacturer(const Aws::String& value) { m_manufacturerHasBeenSet = true; m_manufacturer = value; }
95 inline void SetManufacturer(Aws::String&& value) { m_manufacturerHasBeenSet = true; m_manufacturer = std::move(value); }
96 inline void SetManufacturer(const char* value) { m_manufacturerHasBeenSet = true; m_manufacturer.assign(value); }
97 inline ProcessorInfo& WithManufacturer(const Aws::String& value) { SetManufacturer(value); return *this;}
98 inline ProcessorInfo& WithManufacturer(Aws::String&& value) { SetManufacturer(std::move(value)); return *this;}
99 inline ProcessorInfo& WithManufacturer(const char* value) { SetManufacturer(value); return *this;}
101 private:
102
103 Aws::Vector<ArchitectureType> m_supportedArchitectures;
104 bool m_supportedArchitecturesHasBeenSet = false;
105
106 double m_sustainedClockSpeedInGhz;
107 bool m_sustainedClockSpeedInGhzHasBeenSet = false;
108
110 bool m_supportedFeaturesHasBeenSet = false;
111
112 Aws::String m_manufacturer;
113 bool m_manufacturerHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace EC2
118} // namespace Aws
ProcessorInfo & AddSupportedFeatures(SupportedAdditionalProcessorFeature &&value)
const Aws::Vector< ArchitectureType > & GetSupportedArchitectures() const
void SetManufacturer(const char *value)
const Aws::String & GetManufacturer() const
bool SupportedArchitecturesHasBeenSet() const
ProcessorInfo & WithManufacturer(const Aws::String &value)
double GetSustainedClockSpeedInGhz() const
ProcessorInfo & AddSupportedArchitectures(const ArchitectureType &value)
ProcessorInfo & AddSupportedFeatures(const SupportedAdditionalProcessorFeature &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ProcessorInfo & WithSupportedFeatures(const Aws::Vector< SupportedAdditionalProcessorFeature > &value)
void SetSupportedArchitectures(const Aws::Vector< ArchitectureType > &value)
void SetManufacturer(const Aws::String &value)
AWS_EC2_API ProcessorInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
ProcessorInfo & WithSupportedArchitectures(const Aws::Vector< ArchitectureType > &value)
void SetManufacturer(Aws::String &&value)
void SetSupportedArchitectures(Aws::Vector< ArchitectureType > &&value)
void SetSupportedFeatures(const Aws::Vector< SupportedAdditionalProcessorFeature > &value)
ProcessorInfo & WithSupportedFeatures(Aws::Vector< SupportedAdditionalProcessorFeature > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ProcessorInfo & WithManufacturer(Aws::String &&value)
ProcessorInfo & WithSupportedArchitectures(Aws::Vector< ArchitectureType > &&value)
const Aws::Vector< SupportedAdditionalProcessorFeature > & GetSupportedFeatures() const
ProcessorInfo & WithManufacturer(const char *value)
ProcessorInfo & WithSustainedClockSpeedInGhz(double value)
void SetSupportedFeatures(Aws::Vector< SupportedAdditionalProcessorFeature > &&value)
ProcessorInfo & AddSupportedArchitectures(ArchitectureType &&value)
void SetSustainedClockSpeedInGhz(double 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