@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails extends Object implements Serializable, Cloneable, StructuredPojo
>Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
Constructor and Description |
---|
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails |
clone() |
boolean |
equals(Object obj) |
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails |
getCapabilities()
The Linux capabilities for the container that are added to or dropped from the default configuration provided by
Docker.
|
List<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails> |
getDevices()
The host devices to expose to the container.
|
Boolean |
getInitProcessEnabled()
Whether to run an
init process inside the container that forwards signals and reaps processes. |
Integer |
getMaxSwap()
The total amount of swap memory (in MiB) that a container can use.
|
Integer |
getSharedMemorySize()
The value for the size (in MiB) of the /dev/shm volume.
|
Integer |
getSwappiness()
Configures the container's memory swappiness behavior.
|
List<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails> |
getTmpfs()
The container path, mount options, and size (in MiB) of the tmpfs mount.
|
int |
hashCode() |
Boolean |
isInitProcessEnabled()
Whether to run an
init process inside the container that forwards signals and reaps processes. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCapabilities(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails capabilities)
The Linux capabilities for the container that are added to or dropped from the default configuration provided by
Docker.
|
void |
setDevices(Collection<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails> devices)
The host devices to expose to the container.
|
void |
setInitProcessEnabled(Boolean initProcessEnabled)
Whether to run an
init process inside the container that forwards signals and reaps processes. |
void |
setMaxSwap(Integer maxSwap)
The total amount of swap memory (in MiB) that a container can use.
|
void |
setSharedMemorySize(Integer sharedMemorySize)
The value for the size (in MiB) of the /dev/shm volume.
|
void |
setSwappiness(Integer swappiness)
Configures the container's memory swappiness behavior.
|
void |
setTmpfs(Collection<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails> tmpfs)
The container path, mount options, and size (in MiB) of the tmpfs mount.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails |
withCapabilities(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails capabilities)
The Linux capabilities for the container that are added to or dropped from the default configuration provided by
Docker.
|
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails |
withDevices(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails... devices)
The host devices to expose to the container.
|
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails |
withDevices(Collection<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails> devices)
The host devices to expose to the container.
|
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails |
withInitProcessEnabled(Boolean initProcessEnabled)
Whether to run an
init process inside the container that forwards signals and reaps processes. |
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails |
withMaxSwap(Integer maxSwap)
The total amount of swap memory (in MiB) that a container can use.
|
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails |
withSharedMemorySize(Integer sharedMemorySize)
The value for the size (in MiB) of the /dev/shm volume.
|
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails |
withSwappiness(Integer swappiness)
Configures the container's memory swappiness behavior.
|
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails |
withTmpfs(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails... tmpfs)
The container path, mount options, and size (in MiB) of the tmpfs mount.
|
AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails |
withTmpfs(Collection<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails> tmpfs)
The container path, mount options, and size (in MiB) of the tmpfs mount.
|
public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails()
public void setCapabilities(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails capabilities)
The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker.
capabilities
- The Linux capabilities for the container that are added to or dropped from the default configuration
provided by Docker.public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails getCapabilities()
The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker.
public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withCapabilities(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails capabilities)
The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker.
capabilities
- The Linux capabilities for the container that are added to or dropped from the default configuration
provided by Docker.public List<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails> getDevices()
The host devices to expose to the container.
public void setDevices(Collection<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails> devices)
The host devices to expose to the container.
devices
- The host devices to expose to the container.public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withDevices(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails... devices)
The host devices to expose to the container.
NOTE: This method appends the values to the existing list (if any). Use
setDevices(java.util.Collection)
or withDevices(java.util.Collection)
if you want to override
the existing values.
devices
- The host devices to expose to the container.public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withDevices(Collection<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails> devices)
The host devices to expose to the container.
devices
- The host devices to expose to the container.public void setInitProcessEnabled(Boolean initProcessEnabled)
Whether to run an init
process inside the container that forwards signals and reaps processes.
initProcessEnabled
- Whether to run an init
process inside the container that forwards signals and reaps
processes.public Boolean getInitProcessEnabled()
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 AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withInitProcessEnabled(Boolean initProcessEnabled)
Whether to run an init
process inside the container that forwards signals and reaps processes.
initProcessEnabled
- Whether to run an init
process inside the container that forwards signals and reaps
processes.public Boolean isInitProcessEnabled()
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 setMaxSwap(Integer maxSwap)
The total amount of swap memory (in MiB) that a container can use.
maxSwap
- The total amount of swap memory (in MiB) that a container can use.public Integer getMaxSwap()
The total amount of swap memory (in MiB) that a container can use.
public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withMaxSwap(Integer maxSwap)
The total amount of swap memory (in MiB) that a container can use.
maxSwap
- The total amount of swap memory (in MiB) that a container can use.public void setSharedMemorySize(Integer sharedMemorySize)
The value for the size (in MiB) of the /dev/shm volume.
sharedMemorySize
- The value for the size (in MiB) of the /dev/shm volume.public Integer getSharedMemorySize()
The value for the size (in MiB) of the /dev/shm volume.
public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withSharedMemorySize(Integer sharedMemorySize)
The value for the size (in MiB) of the /dev/shm volume.
sharedMemorySize
- The value for the size (in MiB) of the /dev/shm volume.public void setSwappiness(Integer 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.
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 Integer getSwappiness()
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 AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withSwappiness(Integer 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.
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 List<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails> getTmpfs()
The container path, mount options, and size (in MiB) of the tmpfs mount.
public void setTmpfs(Collection<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails> tmpfs)
The container path, mount options, and size (in MiB) of the tmpfs mount.
tmpfs
- The container path, mount options, and size (in MiB) of the tmpfs mount.public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withTmpfs(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails... tmpfs)
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
setTmpfs(java.util.Collection)
or withTmpfs(java.util.Collection)
if you want to override the
existing values.
tmpfs
- The container path, mount options, and size (in MiB) of the tmpfs mount.public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails withTmpfs(Collection<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails> tmpfs)
The container path, mount options, and size (in MiB) of the tmpfs mount.
tmpfs
- The container path, mount options, and size (in MiB) of the tmpfs mount.public String toString()
toString
in class Object
Object.toString()
public AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.