/** * 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 GPU accelerators for the instance type.

See * Also:

AWS API * Reference

*/ class GpuInfo { public: AWS_EC2_API GpuInfo(); AWS_EC2_API GpuInfo(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API GpuInfo& 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 GPU accelerators for the instance type.

*/ inline const Aws::Vector& GetGpus() const{ return m_gpus; } /** *

Describes the GPU accelerators for the instance type.

*/ inline bool GpusHasBeenSet() const { return m_gpusHasBeenSet; } /** *

Describes the GPU accelerators for the instance type.

*/ inline void SetGpus(const Aws::Vector& value) { m_gpusHasBeenSet = true; m_gpus = value; } /** *

Describes the GPU accelerators for the instance type.

*/ inline void SetGpus(Aws::Vector&& value) { m_gpusHasBeenSet = true; m_gpus = std::move(value); } /** *

Describes the GPU accelerators for the instance type.

*/ inline GpuInfo& WithGpus(const Aws::Vector& value) { SetGpus(value); return *this;} /** *

Describes the GPU accelerators for the instance type.

*/ inline GpuInfo& WithGpus(Aws::Vector&& value) { SetGpus(std::move(value)); return *this;} /** *

Describes the GPU accelerators for the instance type.

*/ inline GpuInfo& AddGpus(const GpuDeviceInfo& value) { m_gpusHasBeenSet = true; m_gpus.push_back(value); return *this; } /** *

Describes the GPU accelerators for the instance type.

*/ inline GpuInfo& AddGpus(GpuDeviceInfo&& value) { m_gpusHasBeenSet = true; m_gpus.push_back(std::move(value)); return *this; } /** *

The total size of the memory for the GPU accelerators for the instance type, * in MiB.

*/ inline int GetTotalGpuMemoryInMiB() const{ return m_totalGpuMemoryInMiB; } /** *

The total size of the memory for the GPU accelerators for the instance type, * in MiB.

*/ inline bool TotalGpuMemoryInMiBHasBeenSet() const { return m_totalGpuMemoryInMiBHasBeenSet; } /** *

The total size of the memory for the GPU accelerators for the instance type, * in MiB.

*/ inline void SetTotalGpuMemoryInMiB(int value) { m_totalGpuMemoryInMiBHasBeenSet = true; m_totalGpuMemoryInMiB = value; } /** *

The total size of the memory for the GPU accelerators for the instance type, * in MiB.

*/ inline GpuInfo& WithTotalGpuMemoryInMiB(int value) { SetTotalGpuMemoryInMiB(value); return *this;} private: Aws::Vector m_gpus; bool m_gpusHasBeenSet = false; int m_totalGpuMemoryInMiB; bool m_totalGpuMemoryInMiBHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws