/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 AWS_EC2_API InferenceDeviceInfo { public: InferenceDeviceInfo(); InferenceDeviceInfo(const Aws::Utils::Xml::XmlNode& xmlNode); InferenceDeviceInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; 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;} private: int m_count; bool m_countHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_manufacturer; bool m_manufacturerHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws