/** * 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 Batch { namespace Model { /** *

Linux-specific modifications that are applied to the container, such as * details for device mappings.

See Also:

AWS * API Reference

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

Any host devices to expose to the container. This parameter maps to * Devices in the Create a * container section of the Docker Remote API and the * --device option to docker run.

*/ inline const Aws::Vector& GetDevices() const{ return m_devices; } /** *

Any host devices to expose to the container. This parameter maps to * Devices in the Create a * container section of the Docker Remote API and the * --device option to docker run.

*/ inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; } /** *

Any host devices to expose to the container. This parameter maps to * Devices in the Create a * container section of the Docker Remote API and the * --device option to docker run.

*/ inline void SetDevices(const Aws::Vector& value) { m_devicesHasBeenSet = true; m_devices = value; } /** *

Any host devices to expose to the container. This parameter maps to * Devices in the Create a * container section of the Docker Remote API and the * --device option to docker run.

*/ inline void SetDevices(Aws::Vector&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); } /** *

Any host devices to expose to the container. This parameter maps to * Devices in the Create a * container section of the Docker Remote API and the * --device option to docker run.

*/ inline LinuxParameters& WithDevices(const Aws::Vector& value) { SetDevices(value); return *this;} /** *

Any host devices to expose to the container. This parameter maps to * Devices in the Create a * container section of the Docker Remote API and the * --device option to docker run.

*/ inline LinuxParameters& WithDevices(Aws::Vector&& value) { SetDevices(std::move(value)); return *this;} /** *

Any host devices to expose to the container. This parameter maps to * Devices in the Create a * container section of the Docker Remote API and the * --device option to docker run.

*/ inline LinuxParameters& AddDevices(const Device& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; } /** *

Any host devices to expose to the container. This parameter maps to * Devices in the Create a * container section of the Docker Remote API and the * --device option to docker run.

*/ inline LinuxParameters& AddDevices(Device&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; } private: Aws::Vector m_devices; bool m_devicesHasBeenSet; }; } // namespace Model } // namespace Batch } // namespace Aws