/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include >Linux-specific modifications that are applied to the container, such as
* Linux kernel capabilities.See Also:
AWS
* API Reference
The Linux capabilities for the container that are added to or dropped from * the default configuration provided by Docker.
*/ inline const AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails& GetCapabilities() const{ return m_capabilities; } /** *The Linux capabilities for the container that are added to or dropped from * the default configuration provided by Docker.
*/ inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; } /** *The Linux capabilities for the container that are added to or dropped from * the default configuration provided by Docker.
*/ inline void SetCapabilities(const AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; } /** *The Linux capabilities for the container that are added to or dropped from * the default configuration provided by Docker.
*/ inline void SetCapabilities(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::move(value); } /** *The Linux capabilities for the container that are added to or dropped from * the default configuration provided by Docker.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& WithCapabilities(const AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails& value) { SetCapabilities(value); return *this;} /** *The Linux capabilities for the container that are added to or dropped from * the default configuration provided by Docker.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& WithCapabilities(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails&& value) { SetCapabilities(std::move(value)); return *this;} /** *The host devices to expose to the container.
*/ inline const Aws::VectorThe host devices to expose to the container.
*/ inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; } /** *The host devices to expose to the container.
*/ inline void SetDevices(const Aws::VectorThe host devices to expose to the container.
*/ inline void SetDevices(Aws::VectorThe host devices to expose to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& WithDevices(const Aws::VectorThe host devices to expose to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& WithDevices(Aws::VectorThe host devices to expose to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& AddDevices(const AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; } /** *The host devices to expose to the container.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& AddDevices(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; } /** *Whether to run an init
process inside the container that
* forwards signals and reaps processes.
Whether to run an init
process inside the container that
* forwards signals and reaps processes.
Whether to run an init
process inside the container that
* forwards signals and reaps processes.
Whether to run an init
process inside the container that
* forwards signals and reaps processes.
The total amount of swap memory (in MiB) that a container can use.
*/ inline int GetMaxSwap() const{ return m_maxSwap; } /** *The total amount of swap memory (in MiB) that a container can use.
*/ inline bool MaxSwapHasBeenSet() const { return m_maxSwapHasBeenSet; } /** *The total amount of swap memory (in MiB) that a container can use.
*/ inline void SetMaxSwap(int value) { m_maxSwapHasBeenSet = true; m_maxSwap = value; } /** *The total amount of swap memory (in MiB) that a container can use.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& WithMaxSwap(int value) { SetMaxSwap(value); return *this;} /** *The value for the size (in MiB) of the /dev/shm volume.
*/ inline int GetSharedMemorySize() const{ return m_sharedMemorySize; } /** *The value for the size (in MiB) of the /dev/shm volume.
*/ inline bool SharedMemorySizeHasBeenSet() const { return m_sharedMemorySizeHasBeenSet; } /** *The value for the size (in MiB) of the /dev/shm volume.
*/ inline void SetSharedMemorySize(int value) { m_sharedMemorySizeHasBeenSet = true; m_sharedMemorySize = value; } /** *The value for the size (in MiB) of the /dev/shm volume.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& WithSharedMemorySize(int value) { SetSharedMemorySize(value); return *this;} /** *Configures the container's memory swappiness behavior. Determines how * aggressively pages are swapped. The higher the value, the more aggressive the * swappiness. The default is 60.
*/ inline int GetSwappiness() const{ return m_swappiness; } /** *Configures the container's memory swappiness behavior. Determines how * aggressively pages are swapped. The higher the value, the more aggressive the * swappiness. The default is 60.
*/ inline bool SwappinessHasBeenSet() const { return m_swappinessHasBeenSet; } /** *Configures the container's memory swappiness behavior. Determines how * aggressively pages are swapped. The higher the value, the more aggressive the * swappiness. The default is 60.
*/ inline void SetSwappiness(int value) { m_swappinessHasBeenSet = true; m_swappiness = value; } /** *Configures the container's memory swappiness behavior. Determines how * aggressively pages are swapped. The higher the value, the more aggressive the * swappiness. The default is 60.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& WithSwappiness(int value) { SetSwappiness(value); return *this;} /** *The container path, mount options, and size (in MiB) of the tmpfs mount.
*/ inline const Aws::VectorThe container path, mount options, and size (in MiB) of the tmpfs mount.
*/ inline bool TmpfsHasBeenSet() const { return m_tmpfsHasBeenSet; } /** *The container path, mount options, and size (in MiB) of the tmpfs mount.
*/ inline void SetTmpfs(const Aws::VectorThe container path, mount options, and size (in MiB) of the tmpfs mount.
*/ inline void SetTmpfs(Aws::VectorThe container path, mount options, and size (in MiB) of the tmpfs mount.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& WithTmpfs(const Aws::VectorThe container path, mount options, and size (in MiB) of the tmpfs mount.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& WithTmpfs(Aws::VectorThe container path, mount options, and size (in MiB) of the tmpfs mount.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& AddTmpfs(const AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails& value) { m_tmpfsHasBeenSet = true; m_tmpfs.push_back(value); return *this; } /** *The container path, mount options, and size (in MiB) of the tmpfs mount.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails& AddTmpfs(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails&& value) { m_tmpfsHasBeenSet = true; m_tmpfs.push_back(std::move(value)); return *this; } private: AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails m_capabilities; bool m_capabilitiesHasBeenSet = false; Aws::Vector