/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECS { namespace Model { /** *

Details on an Elastic Inference accelerator. For more information, see Working * with Amazon Elastic Inference on Amazon ECS in the Amazon Elastic * Container Service Developer Guide.

See Also:

AWS * API Reference

*/ class InferenceAccelerator { public: AWS_ECS_API InferenceAccelerator(); AWS_ECS_API InferenceAccelerator(Aws::Utils::Json::JsonView jsonValue); AWS_ECS_API InferenceAccelerator& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Elastic Inference accelerator device name. The deviceName * must also be referenced in a container definition as a ResourceRequirement.

*/ inline const Aws::String& GetDeviceName() const{ return m_deviceName; } /** *

The Elastic Inference accelerator device name. The deviceName * must also be referenced in a container definition as a ResourceRequirement.

*/ inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; } /** *

The Elastic Inference accelerator device name. The deviceName * must also be referenced in a container definition as a ResourceRequirement.

*/ inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; } /** *

The Elastic Inference accelerator device name. The deviceName * must also be referenced in a container definition as a ResourceRequirement.

*/ inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); } /** *

The Elastic Inference accelerator device name. The deviceName * must also be referenced in a container definition as a ResourceRequirement.

*/ inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); } /** *

The Elastic Inference accelerator device name. The deviceName * must also be referenced in a container definition as a ResourceRequirement.

*/ inline InferenceAccelerator& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;} /** *

The Elastic Inference accelerator device name. The deviceName * must also be referenced in a container definition as a ResourceRequirement.

*/ inline InferenceAccelerator& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;} /** *

The Elastic Inference accelerator device name. The deviceName * must also be referenced in a container definition as a ResourceRequirement.

*/ inline InferenceAccelerator& WithDeviceName(const char* value) { SetDeviceName(value); return *this;} /** *

The Elastic Inference accelerator type to use.

*/ inline const Aws::String& GetDeviceType() const{ return m_deviceType; } /** *

The Elastic Inference accelerator type to use.

*/ inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; } /** *

The Elastic Inference accelerator type to use.

*/ inline void SetDeviceType(const Aws::String& value) { m_deviceTypeHasBeenSet = true; m_deviceType = value; } /** *

The Elastic Inference accelerator type to use.

*/ inline void SetDeviceType(Aws::String&& value) { m_deviceTypeHasBeenSet = true; m_deviceType = std::move(value); } /** *

The Elastic Inference accelerator type to use.

*/ inline void SetDeviceType(const char* value) { m_deviceTypeHasBeenSet = true; m_deviceType.assign(value); } /** *

The Elastic Inference accelerator type to use.

*/ inline InferenceAccelerator& WithDeviceType(const Aws::String& value) { SetDeviceType(value); return *this;} /** *

The Elastic Inference accelerator type to use.

*/ inline InferenceAccelerator& WithDeviceType(Aws::String&& value) { SetDeviceType(std::move(value)); return *this;} /** *

The Elastic Inference accelerator type to use.

*/ inline InferenceAccelerator& WithDeviceType(const char* value) { SetDeviceType(value); return *this;} private: Aws::String m_deviceName; bool m_deviceNameHasBeenSet = false; Aws::String m_deviceType; bool m_deviceTypeHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws