/** * 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 FPGA accelerator for the instance type.

See * Also:

AWS * API Reference

*/ class FpgaDeviceInfo { public: AWS_EC2_API FpgaDeviceInfo(); AWS_EC2_API FpgaDeviceInfo(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API FpgaDeviceInfo& 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 name of the FPGA accelerator.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the FPGA accelerator.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the FPGA accelerator.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the FPGA accelerator.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the FPGA accelerator.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the FPGA accelerator.

*/ inline FpgaDeviceInfo& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the FPGA accelerator.

*/ inline FpgaDeviceInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the FPGA accelerator.

*/ inline FpgaDeviceInfo& WithName(const char* value) { SetName(value); return *this;} /** *

The manufacturer of the FPGA accelerator.

*/ inline const Aws::String& GetManufacturer() const{ return m_manufacturer; } /** *

The manufacturer of the FPGA accelerator.

*/ inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; } /** *

The manufacturer of the FPGA accelerator.

*/ inline void SetManufacturer(const Aws::String& value) { m_manufacturerHasBeenSet = true; m_manufacturer = value; } /** *

The manufacturer of the FPGA accelerator.

*/ inline void SetManufacturer(Aws::String&& value) { m_manufacturerHasBeenSet = true; m_manufacturer = std::move(value); } /** *

The manufacturer of the FPGA accelerator.

*/ inline void SetManufacturer(const char* value) { m_manufacturerHasBeenSet = true; m_manufacturer.assign(value); } /** *

The manufacturer of the FPGA accelerator.

*/ inline FpgaDeviceInfo& WithManufacturer(const Aws::String& value) { SetManufacturer(value); return *this;} /** *

The manufacturer of the FPGA accelerator.

*/ inline FpgaDeviceInfo& WithManufacturer(Aws::String&& value) { SetManufacturer(std::move(value)); return *this;} /** *

The manufacturer of the FPGA accelerator.

*/ inline FpgaDeviceInfo& WithManufacturer(const char* value) { SetManufacturer(value); return *this;} /** *

The count of FPGA accelerators for the instance type.

*/ inline int GetCount() const{ return m_count; } /** *

The count of FPGA accelerators for the instance type.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

The count of FPGA accelerators for the instance type.

*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** *

The count of FPGA accelerators for the instance type.

*/ inline FpgaDeviceInfo& WithCount(int value) { SetCount(value); return *this;} /** *

Describes the memory for the FPGA accelerator for the instance type.

*/ inline const FpgaDeviceMemoryInfo& GetMemoryInfo() const{ return m_memoryInfo; } /** *

Describes the memory for the FPGA accelerator for the instance type.

*/ inline bool MemoryInfoHasBeenSet() const { return m_memoryInfoHasBeenSet; } /** *

Describes the memory for the FPGA accelerator for the instance type.

*/ inline void SetMemoryInfo(const FpgaDeviceMemoryInfo& value) { m_memoryInfoHasBeenSet = true; m_memoryInfo = value; } /** *

Describes the memory for the FPGA accelerator for the instance type.

*/ inline void SetMemoryInfo(FpgaDeviceMemoryInfo&& value) { m_memoryInfoHasBeenSet = true; m_memoryInfo = std::move(value); } /** *

Describes the memory for the FPGA accelerator for the instance type.

*/ inline FpgaDeviceInfo& WithMemoryInfo(const FpgaDeviceMemoryInfo& value) { SetMemoryInfo(value); return *this;} /** *

Describes the memory for the FPGA accelerator for the instance type.

*/ inline FpgaDeviceInfo& WithMemoryInfo(FpgaDeviceMemoryInfo&& value) { SetMemoryInfo(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_manufacturer; bool m_manufacturerHasBeenSet = false; int m_count; bool m_countHasBeenSet = false; FpgaDeviceMemoryInfo m_memoryInfo; bool m_memoryInfoHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws