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

Describes the FPGAs for the instance type.

See Also:

AWS API * Reference

*/ class FpgaInfo { public: AWS_EC2_API FpgaInfo(); AWS_EC2_API FpgaInfo(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API FpgaInfo& 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; /** *

Describes the FPGAs for the instance type.

*/ inline const Aws::Vector& GetFpgas() const{ return m_fpgas; } /** *

Describes the FPGAs for the instance type.

*/ inline bool FpgasHasBeenSet() const { return m_fpgasHasBeenSet; } /** *

Describes the FPGAs for the instance type.

*/ inline void SetFpgas(const Aws::Vector& value) { m_fpgasHasBeenSet = true; m_fpgas = value; } /** *

Describes the FPGAs for the instance type.

*/ inline void SetFpgas(Aws::Vector&& value) { m_fpgasHasBeenSet = true; m_fpgas = std::move(value); } /** *

Describes the FPGAs for the instance type.

*/ inline FpgaInfo& WithFpgas(const Aws::Vector& value) { SetFpgas(value); return *this;} /** *

Describes the FPGAs for the instance type.

*/ inline FpgaInfo& WithFpgas(Aws::Vector&& value) { SetFpgas(std::move(value)); return *this;} /** *

Describes the FPGAs for the instance type.

*/ inline FpgaInfo& AddFpgas(const FpgaDeviceInfo& value) { m_fpgasHasBeenSet = true; m_fpgas.push_back(value); return *this; } /** *

Describes the FPGAs for the instance type.

*/ inline FpgaInfo& AddFpgas(FpgaDeviceInfo&& value) { m_fpgasHasBeenSet = true; m_fpgas.push_back(std::move(value)); return *this; } /** *

The total memory of all FPGA accelerators for the instance type.

*/ inline int GetTotalFpgaMemoryInMiB() const{ return m_totalFpgaMemoryInMiB; } /** *

The total memory of all FPGA accelerators for the instance type.

*/ inline bool TotalFpgaMemoryInMiBHasBeenSet() const { return m_totalFpgaMemoryInMiBHasBeenSet; } /** *

The total memory of all FPGA accelerators for the instance type.

*/ inline void SetTotalFpgaMemoryInMiB(int value) { m_totalFpgaMemoryInMiBHasBeenSet = true; m_totalFpgaMemoryInMiB = value; } /** *

The total memory of all FPGA accelerators for the instance type.

*/ inline FpgaInfo& WithTotalFpgaMemoryInMiB(int value) { SetTotalFpgaMemoryInMiB(value); return *this;} private: Aws::Vector m_fpgas; bool m_fpgasHasBeenSet = false; int m_totalFpgaMemoryInMiB; bool m_totalFpgaMemoryInMiBHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws