/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* >Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails implements Serializable, Cloneable, StructuredPojo { /** ** The Linux capabilities for the container that are added to or dropped from the default configuration provided by * Docker. *
*/ private AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails capabilities; /** ** The host devices to expose to the container. *
*/ private java.util.List
* 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. *
*/ private Integer maxSwap; /** ** The value for the size (in MiB) of the /dev/shm volume. *
*/ private Integer sharedMemorySize; /** ** 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. *
*/ private Integer swappiness; /** ** The container path, mount options, and size (in MiB) of the tmpfs mount. *
*/ private java.util.List* The Linux capabilities for the container that are added to or dropped from the default configuration provided by * Docker. *
* * @param capabilities * The Linux capabilities for the container that are added to or dropped from the default configuration * provided by Docker. */ public void setCapabilities(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails capabilities) { this.capabilities = capabilities; } /** ** The Linux capabilities for the container that are added to or dropped from the default configuration provided by * Docker. *
* * @return The Linux capabilities for the container that are added to or dropped from the default configuration * provided by Docker. */ public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails getCapabilities() { return this.capabilities; } /** ** The Linux capabilities for the container that are added to or dropped from the default configuration provided by * Docker. *
* * @param capabilities * The Linux capabilities for the container that are added to or dropped from the default configuration * provided by Docker. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withCapabilities( AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails capabilities) { setCapabilities(capabilities); return this; } /** ** The host devices to expose to the container. *
* * @return The host devices to expose to the container. */ public java.util.List* The host devices to expose to the container. *
* * @param devices * The host devices to expose to the container. */ public void setDevices(java.util.Collection* The host devices to expose to the container. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDevices(java.util.Collection)} or {@link #withDevices(java.util.Collection)} if you want to override * the existing values. *
* * @param devices * The host devices to expose to the container. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withDevices( AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails... devices) { if (this.devices == null) { setDevices(new java.util.ArrayList* The host devices to expose to the container. *
* * @param devices * The host devices to expose to the container. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withDevices( java.util.Collection
* Whether to run an init
process inside the container that forwards signals and reaps processes.
*
init
process inside the container that forwards signals and reaps
* processes.
*/
public void setInitProcessEnabled(Boolean initProcessEnabled) {
this.initProcessEnabled = initProcessEnabled;
}
/**
*
* Whether to run an init
process inside the container that forwards signals and reaps processes.
*
init
process inside the container that forwards signals and reaps
* processes.
*/
public Boolean getInitProcessEnabled() {
return this.initProcessEnabled;
}
/**
*
* Whether to run an init
process inside the container that forwards signals and reaps processes.
*
init
process inside the container that forwards signals and reaps
* processes.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withInitProcessEnabled(Boolean initProcessEnabled) {
setInitProcessEnabled(initProcessEnabled);
return this;
}
/**
*
* Whether to run an init
process inside the container that forwards signals and reaps processes.
*
init
process inside the container that forwards signals and reaps
* processes.
*/
public Boolean isInitProcessEnabled() {
return this.initProcessEnabled;
}
/**
* * The total amount of swap memory (in MiB) that a container can use. *
* * @param maxSwap * The total amount of swap memory (in MiB) that a container can use. */ public void setMaxSwap(Integer maxSwap) { this.maxSwap = maxSwap; } /** ** The total amount of swap memory (in MiB) that a container can use. *
* * @return The total amount of swap memory (in MiB) that a container can use. */ public Integer getMaxSwap() { return this.maxSwap; } /** ** The total amount of swap memory (in MiB) that a container can use. *
* * @param maxSwap * The total amount of swap memory (in MiB) that a container can use. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withMaxSwap(Integer maxSwap) { setMaxSwap(maxSwap); return this; } /** ** The value for the size (in MiB) of the /dev/shm volume. *
* * @param sharedMemorySize * The value for the size (in MiB) of the /dev/shm volume. */ public void setSharedMemorySize(Integer sharedMemorySize) { this.sharedMemorySize = sharedMemorySize; } /** ** The value for the size (in MiB) of the /dev/shm volume. *
* * @return The value for the size (in MiB) of the /dev/shm volume. */ public Integer getSharedMemorySize() { return this.sharedMemorySize; } /** ** The value for the size (in MiB) of the /dev/shm volume. *
* * @param sharedMemorySize * The value for the size (in MiB) of the /dev/shm volume. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withSharedMemorySize(Integer sharedMemorySize) { setSharedMemorySize(sharedMemorySize); 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. *
* * @param 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. */ public void setSwappiness(Integer swappiness) { this.swappiness = 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. *
* * @return 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. */ public Integer getSwappiness() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withSwappiness(Integer swappiness) { setSwappiness(swappiness); return this; } /** ** The container path, mount options, and size (in MiB) of the tmpfs mount. *
* * @return The container path, mount options, and size (in MiB) of the tmpfs mount. */ public java.util.List* The container path, mount options, and size (in MiB) of the tmpfs mount. *
* * @param tmpfs * The container path, mount options, and size (in MiB) of the tmpfs mount. */ public void setTmpfs(java.util.Collection* The container path, mount options, and size (in MiB) of the tmpfs mount. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTmpfs(java.util.Collection)} or {@link #withTmpfs(java.util.Collection)} if you want to override the * existing values. *
* * @param tmpfs * The container path, mount options, and size (in MiB) of the tmpfs mount. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withTmpfs( AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails... tmpfs) { if (this.tmpfs == null) { setTmpfs(new java.util.ArrayList* The container path, mount options, and size (in MiB) of the tmpfs mount. *
* * @param tmpfs * The container path, mount options, and size (in MiB) of the tmpfs mount. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withTmpfs( java.util.Collection