/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the processor used by the instance type.

See Also:

* AWS * API Reference

*/ class ProcessorInfo { public: AWS_EC2_API ProcessorInfo(); AWS_EC2_API ProcessorInfo(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ProcessorInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The architectures supported by the instance type.

*/ inline const Aws::Vector& GetSupportedArchitectures() const{ return m_supportedArchitectures; } /** *

The architectures supported by the instance type.

*/ inline bool SupportedArchitecturesHasBeenSet() const { return m_supportedArchitecturesHasBeenSet; } /** *

The architectures supported by the instance type.

*/ inline void SetSupportedArchitectures(const Aws::Vector& value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures = value; } /** *

The architectures supported by the instance type.

*/ inline void SetSupportedArchitectures(Aws::Vector&& value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures = std::move(value); } /** *

The architectures supported by the instance type.

*/ inline ProcessorInfo& WithSupportedArchitectures(const Aws::Vector& value) { SetSupportedArchitectures(value); return *this;} /** *

The architectures supported by the instance type.

*/ inline ProcessorInfo& WithSupportedArchitectures(Aws::Vector&& value) { SetSupportedArchitectures(std::move(value)); return *this;} /** *

The architectures supported by the instance type.

*/ inline ProcessorInfo& AddSupportedArchitectures(const ArchitectureType& value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures.push_back(value); return *this; } /** *

The architectures supported by the instance type.

*/ inline ProcessorInfo& AddSupportedArchitectures(ArchitectureType&& value) { m_supportedArchitecturesHasBeenSet = true; m_supportedArchitectures.push_back(std::move(value)); return *this; } /** *

The speed of the processor, in GHz.

*/ inline double GetSustainedClockSpeedInGhz() const{ return m_sustainedClockSpeedInGhz; } /** *

The speed of the processor, in GHz.

*/ inline bool SustainedClockSpeedInGhzHasBeenSet() const { return m_sustainedClockSpeedInGhzHasBeenSet; } /** *

The speed of the processor, in GHz.

*/ inline void SetSustainedClockSpeedInGhz(double value) { m_sustainedClockSpeedInGhzHasBeenSet = true; m_sustainedClockSpeedInGhz = value; } /** *

The speed of the processor, in GHz.

*/ inline ProcessorInfo& WithSustainedClockSpeedInGhz(double value) { SetSustainedClockSpeedInGhz(value); return *this;} /** *

Indicates whether the instance type supports AMD SEV-SNP. If the request * returns amd-sev-snp, AMD SEV-SNP is supported. Otherwise, it is not * supported. For more information, see AMD * SEV-SNP.

*/ inline const Aws::Vector& GetSupportedFeatures() const{ return m_supportedFeatures; } /** *

Indicates whether the instance type supports AMD SEV-SNP. If the request * returns amd-sev-snp, AMD SEV-SNP is supported. Otherwise, it is not * supported. For more information, see AMD * SEV-SNP.

*/ inline bool SupportedFeaturesHasBeenSet() const { return m_supportedFeaturesHasBeenSet; } /** *

Indicates whether the instance type supports AMD SEV-SNP. If the request * returns amd-sev-snp, AMD SEV-SNP is supported. Otherwise, it is not * supported. For more information, see AMD * SEV-SNP.

*/ inline void SetSupportedFeatures(const Aws::Vector& value) { m_supportedFeaturesHasBeenSet = true; m_supportedFeatures = value; } /** *

Indicates whether the instance type supports AMD SEV-SNP. If the request * returns amd-sev-snp, AMD SEV-SNP is supported. Otherwise, it is not * supported. For more information, see AMD * SEV-SNP.

*/ inline void SetSupportedFeatures(Aws::Vector&& value) { m_supportedFeaturesHasBeenSet = true; m_supportedFeatures = std::move(value); } /** *

Indicates whether the instance type supports AMD SEV-SNP. If the request * returns amd-sev-snp, AMD SEV-SNP is supported. Otherwise, it is not * supported. For more information, see AMD * SEV-SNP.

*/ inline ProcessorInfo& WithSupportedFeatures(const Aws::Vector& value) { SetSupportedFeatures(value); return *this;} /** *

Indicates whether the instance type supports AMD SEV-SNP. If the request * returns amd-sev-snp, AMD SEV-SNP is supported. Otherwise, it is not * supported. For more information, see AMD * SEV-SNP.

*/ inline ProcessorInfo& WithSupportedFeatures(Aws::Vector&& value) { SetSupportedFeatures(std::move(value)); return *this;} /** *

Indicates whether the instance type supports AMD SEV-SNP. If the request * returns amd-sev-snp, AMD SEV-SNP is supported. Otherwise, it is not * supported. For more information, see AMD * SEV-SNP.

*/ inline ProcessorInfo& AddSupportedFeatures(const SupportedAdditionalProcessorFeature& value) { m_supportedFeaturesHasBeenSet = true; m_supportedFeatures.push_back(value); return *this; } /** *

Indicates whether the instance type supports AMD SEV-SNP. If the request * returns amd-sev-snp, AMD SEV-SNP is supported. Otherwise, it is not * supported. For more information, see AMD * SEV-SNP.

*/ inline ProcessorInfo& AddSupportedFeatures(SupportedAdditionalProcessorFeature&& value) { m_supportedFeaturesHasBeenSet = true; m_supportedFeatures.push_back(std::move(value)); return *this; } private: Aws::Vector m_supportedArchitectures; bool m_supportedArchitecturesHasBeenSet = false; double m_sustainedClockSpeedInGhz; bool m_sustainedClockSpeedInGhzHasBeenSet = false; Aws::Vector m_supportedFeatures; bool m_supportedFeaturesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws