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

See * Also:

AWS * API Reference

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

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

The number of Inference accelerators for the instance type.

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

The number of Inference accelerators for the instance type.

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

The number of Inference accelerators for the instance type.

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

The name of the Inference accelerator.

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

The name of the Inference accelerator.

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

The name of the Inference accelerator.

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

The name of the Inference accelerator.

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

The name of the Inference accelerator.

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

The name of the Inference accelerator.

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

The name of the Inference accelerator.

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

The name of the Inference accelerator.

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

The manufacturer of the Inference accelerator.

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

The manufacturer of the Inference accelerator.

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

The manufacturer of the Inference accelerator.

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

The manufacturer of the Inference accelerator.

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

The manufacturer of the Inference accelerator.

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

The manufacturer of the Inference accelerator.

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

The manufacturer of the Inference accelerator.

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

The manufacturer of the Inference accelerator.

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

Describes the memory available to the inference accelerator.

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

Describes the memory available to the inference accelerator.

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

Describes the memory available to the inference accelerator.

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

Describes the memory available to the inference accelerator.

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

Describes the memory available to the inference accelerator.

*/ inline InferenceDeviceInfo& WithMemoryInfo(const InferenceDeviceMemoryInfo& value) { SetMemoryInfo(value); return *this;} /** *

Describes the memory available to the inference accelerator.

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