/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECS { namespace Model { /** *

The devices that are available on the container instance. The only supported * device type is a GPU.

See Also:

AWS * API Reference

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

The ID for the GPUs on the container instance. The available GPU IDs can also * be obtained on the container instance in the * /var/lib/ecs/gpu/nvidia_gpu_info.json file.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID for the GPUs on the container instance. The available GPU IDs can also * be obtained on the container instance in the * /var/lib/ecs/gpu/nvidia_gpu_info.json file.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID for the GPUs on the container instance. The available GPU IDs can also * be obtained on the container instance in the * /var/lib/ecs/gpu/nvidia_gpu_info.json file.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID for the GPUs on the container instance. The available GPU IDs can also * be obtained on the container instance in the * /var/lib/ecs/gpu/nvidia_gpu_info.json file.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID for the GPUs on the container instance. The available GPU IDs can also * be obtained on the container instance in the * /var/lib/ecs/gpu/nvidia_gpu_info.json file.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID for the GPUs on the container instance. The available GPU IDs can also * be obtained on the container instance in the * /var/lib/ecs/gpu/nvidia_gpu_info.json file.

*/ inline PlatformDevice& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID for the GPUs on the container instance. The available GPU IDs can also * be obtained on the container instance in the * /var/lib/ecs/gpu/nvidia_gpu_info.json file.

*/ inline PlatformDevice& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID for the GPUs on the container instance. The available GPU IDs can also * be obtained on the container instance in the * /var/lib/ecs/gpu/nvidia_gpu_info.json file.

*/ inline PlatformDevice& WithId(const char* value) { SetId(value); return *this;} /** *

The type of device that's available on the container instance. The only * supported value is GPU.

*/ inline const PlatformDeviceType& GetType() const{ return m_type; } /** *

The type of device that's available on the container instance. The only * supported value is GPU.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of device that's available on the container instance. The only * supported value is GPU.

*/ inline void SetType(const PlatformDeviceType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of device that's available on the container instance. The only * supported value is GPU.

*/ inline void SetType(PlatformDeviceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of device that's available on the container instance. The only * supported value is GPU.

*/ inline PlatformDevice& WithType(const PlatformDeviceType& value) { SetType(value); return *this;} /** *

The type of device that's available on the container instance. The only * supported value is GPU.

*/ inline PlatformDevice& WithType(PlatformDeviceType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; PlatformDeviceType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws