Interface AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder,AwsEcsTaskDefinitionContainerDefinitionsDetails>,SdkBuilder<AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder,AwsEcsTaskDefinitionContainerDefinitionsDetails>,SdkPojo
- Enclosing class:
- AwsEcsTaskDefinitionContainerDefinitionsDetails
public static interface AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder extends SdkPojo, CopyableBuilder<AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder,AwsEcsTaskDefinitionContainerDefinitionsDetails>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
command
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder command(Collection<String> command)
The command that is passed to the container.
- Parameters:
command- The command that is passed to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder command(String... command)
The command that is passed to the container.
- Parameters:
command- The command that is passed to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpu
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder cpu(Integer cpu)
The number of CPU units reserved for the container.
- Parameters:
cpu- The number of CPU units reserved for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dependsOn(Collection<AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails> dependsOn)
The dependencies that are defined for container startup and shutdown.
- Parameters:
dependsOn- The dependencies that are defined for container startup and shutdown.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dependsOn(AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails... dependsOn)
The dependencies that are defined for container startup and shutdown.
- Parameters:
dependsOn- The dependencies that are defined for container startup and shutdown.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dependsOn(Consumer<AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails.Builder>... dependsOn)
The dependencies that are defined for container startup and shutdown.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#dependsOn(List.) - Parameters:
dependsOn- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#dependsOn(java.util.Collection)
-
disableNetworking
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder disableNetworking(Boolean disableNetworking)
Whether to disable networking within the container.
- Parameters:
disableNetworking- Whether to disable networking within the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsSearchDomains
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dnsSearchDomains(Collection<String> dnsSearchDomains)
A list of DNS search domains that are presented to the container.
- Parameters:
dnsSearchDomains- A list of DNS search domains that are presented to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsSearchDomains
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dnsSearchDomains(String... dnsSearchDomains)
A list of DNS search domains that are presented to the container.
- Parameters:
dnsSearchDomains- A list of DNS search domains that are presented to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsServers
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dnsServers(Collection<String> dnsServers)
A list of DNS servers that are presented to the container.
- Parameters:
dnsServers- A list of DNS servers that are presented to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsServers
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dnsServers(String... dnsServers)
A list of DNS servers that are presented to the container.
- Parameters:
dnsServers- A list of DNS servers that are presented to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dockerLabels
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dockerLabels(Map<String,String> dockerLabels)
A key-value map of labels to add to the container.
- Parameters:
dockerLabels- A key-value map of labels to add to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dockerSecurityOptions
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dockerSecurityOptions(Collection<String> dockerSecurityOptions)
A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.
- Parameters:
dockerSecurityOptions- A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dockerSecurityOptions
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dockerSecurityOptions(String... dockerSecurityOptions)
A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.
- Parameters:
dockerSecurityOptions- A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entryPoint
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder entryPoint(Collection<String> entryPoint)
The entry point that is passed to the container.
- Parameters:
entryPoint- The entry point that is passed to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entryPoint
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder entryPoint(String... entryPoint)
The entry point that is passed to the container.
- Parameters:
entryPoint- The entry point that is passed to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder environment(Collection<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails> environment)
The environment variables to pass to a container.
- Parameters:
environment- The environment variables to pass to a container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder environment(AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails... environment)
The environment variables to pass to a container.
- Parameters:
environment- The environment variables to pass to a container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder environment(Consumer<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails.Builder>... environment)
The environment variables to pass to a container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#environment(List.) - Parameters:
environment- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#environment(java.util.Collection)
-
environmentFiles
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder environmentFiles(Collection<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails> environmentFiles)
A list of files containing the environment variables to pass to a container.
- Parameters:
environmentFiles- A list of files containing the environment variables to pass to a container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentFiles
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder environmentFiles(AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails... environmentFiles)
A list of files containing the environment variables to pass to a container.
- Parameters:
environmentFiles- A list of files containing the environment variables to pass to a container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentFiles
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder environmentFiles(Consumer<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails.Builder>... environmentFiles)
A list of files containing the environment variables to pass to a container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#environmentFiles(List.) - Parameters:
environmentFiles- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#environmentFiles(java.util.Collection)
-
essential
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder essential(Boolean essential)
Whether the container is essential. All tasks must have at least one essential container.
- Parameters:
essential- Whether the container is essential. All tasks must have at least one essential container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extraHosts
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder extraHosts(Collection<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails> extraHosts)
A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.
- Parameters:
extraHosts- A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extraHosts
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder extraHosts(AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails... extraHosts)
A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.
- Parameters:
extraHosts- A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extraHosts
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder extraHosts(Consumer<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails.Builder>... extraHosts)
A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#extraHosts(List.) - Parameters:
extraHosts- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#extraHosts(java.util.Collection)
-
firelensConfiguration
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder firelensConfiguration(AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails firelensConfiguration)
The FireLens configuration for the container. Specifies and configures a log router for container logs.
- Parameters:
firelensConfiguration- The FireLens configuration for the container. Specifies and configures a log router for container logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firelensConfiguration
default AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder firelensConfiguration(Consumer<AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails.Builder> firelensConfiguration)
The FireLens configuration for the container. Specifies and configures a log router for container logs.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofirelensConfiguration(AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails).- Parameters:
firelensConfiguration- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
firelensConfiguration(AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails)
-
healthCheck
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder healthCheck(AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails healthCheck)
The container health check command and associated configuration parameters for the container.
- Parameters:
healthCheck- The container health check command and associated configuration parameters for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheck
default AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder healthCheck(Consumer<AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.Builder> healthCheck)
The container health check command and associated configuration parameters for the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohealthCheck(AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails).- Parameters:
healthCheck- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
healthCheck(AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails)
-
hostname
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder hostname(String hostname)
The hostname to use for the container.
- Parameters:
hostname- The hostname to use for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
image
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder image(String image)
The image used to start the container.
- Parameters:
image- The image used to start the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interactive
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder interactive(Boolean interactive)
If set to true, then containerized applications can be deployed that require
stdinor attyto be allocated.- Parameters:
interactive- If set to true, then containerized applications can be deployed that requirestdinor attyto be allocated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
links
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder links(Collection<String> links)
A list of links for the container in the form
container_name:alias. Allows containers to communicate with each other without the need for port mappings.- Parameters:
links- A list of links for the container in the formcontainer_name:alias. Allows containers to communicate with each other without the need for port mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
links
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder links(String... links)
A list of links for the container in the form
container_name:alias. Allows containers to communicate with each other without the need for port mappings.- Parameters:
links- A list of links for the container in the formcontainer_name:alias. Allows containers to communicate with each other without the need for port mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
linuxParameters
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder linuxParameters(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails linuxParameters)
Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
- Parameters:
linuxParameters- Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
linuxParameters
default AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder linuxParameters(Consumer<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails.Builder> linuxParameters)
Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolinuxParameters(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails).- Parameters:
linuxParameters- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
linuxParameters(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails)
-
logConfiguration
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder logConfiguration(AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails logConfiguration)
The log configuration specification for the container.
- Parameters:
logConfiguration- The log configuration specification for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfiguration
default AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder logConfiguration(Consumer<AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails.Builder> logConfiguration)
The log configuration specification for the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologConfiguration(AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails).- Parameters:
logConfiguration- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
logConfiguration(AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails)
-
memory
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder memory(Integer memory)
The amount (in MiB) of memory to present to the container. If the container attempts to exceed the memory specified here, the container is shut down. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified.
- Parameters:
memory- The amount (in MiB) of memory to present to the container. If the container attempts to exceed the memory specified here, the container is shut down. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryReservation
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder memoryReservation(Integer memoryReservation)
The soft limit (in MiB) of memory to reserve for the container.
- Parameters:
memoryReservation- The soft limit (in MiB) of memory to reserve for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mountPoints
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder mountPoints(Collection<AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails> mountPoints)
The mount points for the data volumes in the container.
- Parameters:
mountPoints- The mount points for the data volumes in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mountPoints
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder mountPoints(AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails... mountPoints)
The mount points for the data volumes in the container.
- Parameters:
mountPoints- The mount points for the data volumes in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mountPoints
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder mountPoints(Consumer<AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails.Builder>... mountPoints)
The mount points for the data volumes in the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#mountPoints(List.) - Parameters:
mountPoints- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#mountPoints(java.util.Collection)
-
name
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder name(String name)
The name of the container.
- Parameters:
name- The name of the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portMappings
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder portMappings(Collection<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails> portMappings)
The list of port mappings for the container.
- Parameters:
portMappings- The list of port mappings for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portMappings
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder portMappings(AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails... portMappings)
The list of port mappings for the container.
- Parameters:
portMappings- The list of port mappings for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portMappings
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder portMappings(Consumer<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder>... portMappings)
The list of port mappings for the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#portMappings(List.) - Parameters:
portMappings- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#portMappings(java.util.Collection)
-
privileged
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder privileged(Boolean privileged)
Whether the container is given elevated privileges on the host container instance. The elevated privileges are similar to the root user.
- Parameters:
privileged- Whether the container is given elevated privileges on the host container instance. The elevated privileges are similar to the root user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pseudoTerminal
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder pseudoTerminal(Boolean pseudoTerminal)
Whether to allocate a TTY to the container.
- Parameters:
pseudoTerminal- Whether to allocate a TTY to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
readonlyRootFilesystem
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder readonlyRootFilesystem(Boolean readonlyRootFilesystem)
Whether the container is given read-only access to its root file system.
- Parameters:
readonlyRootFilesystem- Whether the container is given read-only access to its root file system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryCredentials
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder repositoryCredentials(AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails repositoryCredentials)
The private repository authentication credentials to use.
- Parameters:
repositoryCredentials- The private repository authentication credentials to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryCredentials
default AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder repositoryCredentials(Consumer<AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails.Builder> repositoryCredentials)
The private repository authentication credentials to use.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torepositoryCredentials(AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails).- Parameters:
repositoryCredentials- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
repositoryCredentials(AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails)
-
resourceRequirements
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder resourceRequirements(Collection<AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails> resourceRequirements)
The type and amount of a resource to assign to a container. The only supported resource is a GPU.
- Parameters:
resourceRequirements- The type and amount of a resource to assign to a container. The only supported resource is a GPU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceRequirements
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder resourceRequirements(AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails... resourceRequirements)
The type and amount of a resource to assign to a container. The only supported resource is a GPU.
- Parameters:
resourceRequirements- The type and amount of a resource to assign to a container. The only supported resource is a GPU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceRequirements
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder resourceRequirements(Consumer<AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails.Builder>... resourceRequirements)
The type and amount of a resource to assign to a container. The only supported resource is a GPU.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resourceRequirements(List.) - Parameters:
resourceRequirements- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resourceRequirements(java.util.Collection< AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails>)
-
secrets
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder secrets(Collection<AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails> secrets)
The secrets to pass to the container.
- Parameters:
secrets- The secrets to pass to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secrets
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder secrets(AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails... secrets)
The secrets to pass to the container.
- Parameters:
secrets- The secrets to pass to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secrets
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder secrets(Consumer<AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails.Builder>... secrets)
The secrets to pass to the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsSecretsDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsSecretsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#secrets(List.) - Parameters:
secrets- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsSecretsDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#secrets(java.util.Collection)
-
startTimeout
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder startTimeout(Integer startTimeout)
The number of seconds to wait before giving up on resolving dependencies for a container.
- Parameters:
startTimeout- The number of seconds to wait before giving up on resolving dependencies for a container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stopTimeout
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder stopTimeout(Integer stopTimeout)
The number of seconds to wait before the container is stopped if it doesn't shut down normally on its own.
- Parameters:
stopTimeout- The number of seconds to wait before the container is stopped if it doesn't shut down normally on its own.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemControls
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder systemControls(Collection<AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails> systemControls)
A list of namespaced kernel parameters to set in the container.
- Parameters:
systemControls- A list of namespaced kernel parameters to set in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemControls
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder systemControls(AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails... systemControls)
A list of namespaced kernel parameters to set in the container.
- Parameters:
systemControls- A list of namespaced kernel parameters to set in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemControls
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder systemControls(Consumer<AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails.Builder>... systemControls)
A list of namespaced kernel parameters to set in the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#systemControls(List.) - Parameters:
systemControls- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#systemControls(java.util.Collection)
-
ulimits
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder ulimits(Collection<AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails> ulimits)
A list of ulimits to set in the container.
- Parameters:
ulimits- A list of ulimits to set in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ulimits
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder ulimits(AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails... ulimits)
A list of ulimits to set in the container.
- Parameters:
ulimits- A list of ulimits to set in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ulimits
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder ulimits(Consumer<AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails.Builder>... ulimits)
A list of ulimits to set in the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#ulimits(List.) - Parameters:
ulimits- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#ulimits(java.util.Collection)
-
user
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder user(String user)
The user to use inside the container.
The value can use one of the following formats.
-
user -
user:group -
uid -
uid:gid -
user:gid -
uid:group
- Parameters:
user- The user to use inside the container.The value can use one of the following formats.
-
user -
user:group -
uid -
uid:gid -
user:gid -
uid:group
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
volumesFrom
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder volumesFrom(Collection<AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails> volumesFrom)
Data volumes to mount from another container.
- Parameters:
volumesFrom- Data volumes to mount from another container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumesFrom
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder volumesFrom(AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails... volumesFrom)
Data volumes to mount from another container.
- Parameters:
volumesFrom- Data volumes to mount from another container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumesFrom
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder volumesFrom(Consumer<AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails.Builder>... volumesFrom)
Data volumes to mount from another container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#volumesFrom(List.) - Parameters:
volumesFrom- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#volumesFrom(java.util.Collection)
-
workingDirectory
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder workingDirectory(String workingDirectory)
The working directory in which to run commands inside the container.
- Parameters:
workingDirectory- The working directory in which to run commands inside the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-