/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the GPU accelerators for the instance type.See
* Also:
AWS
* API Reference
The name of the GPU accelerator.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the GPU accelerator.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the GPU accelerator.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the GPU accelerator.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the GPU accelerator.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the GPU accelerator.
*/ inline GpuDeviceInfo& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the GPU accelerator.
*/ inline GpuDeviceInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the GPU accelerator.
*/ inline GpuDeviceInfo& WithName(const char* value) { SetName(value); return *this;} /** *The manufacturer of the GPU accelerator.
*/ inline const Aws::String& GetManufacturer() const{ return m_manufacturer; } /** *The manufacturer of the GPU accelerator.
*/ inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; } /** *The manufacturer of the GPU accelerator.
*/ inline void SetManufacturer(const Aws::String& value) { m_manufacturerHasBeenSet = true; m_manufacturer = value; } /** *The manufacturer of the GPU accelerator.
*/ inline void SetManufacturer(Aws::String&& value) { m_manufacturerHasBeenSet = true; m_manufacturer = std::move(value); } /** *The manufacturer of the GPU accelerator.
*/ inline void SetManufacturer(const char* value) { m_manufacturerHasBeenSet = true; m_manufacturer.assign(value); } /** *The manufacturer of the GPU accelerator.
*/ inline GpuDeviceInfo& WithManufacturer(const Aws::String& value) { SetManufacturer(value); return *this;} /** *The manufacturer of the GPU accelerator.
*/ inline GpuDeviceInfo& WithManufacturer(Aws::String&& value) { SetManufacturer(std::move(value)); return *this;} /** *The manufacturer of the GPU accelerator.
*/ inline GpuDeviceInfo& WithManufacturer(const char* value) { SetManufacturer(value); return *this;} /** *The number of GPUs for the instance type.
*/ inline int GetCount() const{ return m_count; } /** *The number of GPUs for the instance type.
*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *The number of GPUs for the instance type.
*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** *The number of GPUs for the instance type.
*/ inline GpuDeviceInfo& WithCount(int value) { SetCount(value); return *this;} /** *Describes the memory available to the GPU accelerator.
*/ inline const GpuDeviceMemoryInfo& GetMemoryInfo() const{ return m_memoryInfo; } /** *Describes the memory available to the GPU accelerator.
*/ inline bool MemoryInfoHasBeenSet() const { return m_memoryInfoHasBeenSet; } /** *Describes the memory available to the GPU accelerator.
*/ inline void SetMemoryInfo(const GpuDeviceMemoryInfo& value) { m_memoryInfoHasBeenSet = true; m_memoryInfo = value; } /** *Describes the memory available to the GPU accelerator.
*/ inline void SetMemoryInfo(GpuDeviceMemoryInfo&& value) { m_memoryInfoHasBeenSet = true; m_memoryInfo = std::move(value); } /** *Describes the memory available to the GPU accelerator.
*/ inline GpuDeviceInfo& WithMemoryInfo(const GpuDeviceMemoryInfo& value) { SetMemoryInfo(value); return *this;} /** *Describes the memory available to the GPU accelerator.
*/ inline GpuDeviceInfo& WithMemoryInfo(GpuDeviceMemoryInfo&& 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; GpuDeviceMemoryInfo m_memoryInfo; bool m_memoryInfoHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws