Interface BatchContainerOverrides.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<BatchContainerOverrides.Builder,BatchContainerOverrides>,SdkBuilder<BatchContainerOverrides.Builder,BatchContainerOverrides>,SdkPojo
- Enclosing class:
- BatchContainerOverrides
public static interface BatchContainerOverrides.Builder extends SdkPojo, CopyableBuilder<BatchContainerOverrides.Builder,BatchContainerOverrides>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BatchContainerOverrides.Buildercommand(String... command)The command to send to the container that overrides the default command from the Docker image or the task definition.BatchContainerOverrides.Buildercommand(Collection<String> command)The command to send to the container that overrides the default command from the Docker image or the task definition.BatchContainerOverrides.Builderenvironment(Collection<BatchEnvironmentVariable> environment)The environment variables to send to the container.BatchContainerOverrides.Builderenvironment(Consumer<BatchEnvironmentVariable.Builder>... environment)The environment variables to send to the container.BatchContainerOverrides.Builderenvironment(BatchEnvironmentVariable... environment)The environment variables to send to the container.BatchContainerOverrides.BuilderinstanceType(String instanceType)The instance type to use for a multi-node parallel job.BatchContainerOverrides.BuilderresourceRequirements(Collection<BatchResourceRequirement> resourceRequirements)The type and amount of resources to assign to a container.BatchContainerOverrides.BuilderresourceRequirements(Consumer<BatchResourceRequirement.Builder>... resourceRequirements)The type and amount of resources to assign to a container.BatchContainerOverrides.BuilderresourceRequirements(BatchResourceRequirement... resourceRequirements)The type and amount of resources to assign to a container.-
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
BatchContainerOverrides.Builder command(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the task definition.
- Parameters:
command- The command to send to the container that overrides the default command from the Docker image or the task definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
BatchContainerOverrides.Builder command(String... command)
The command to send to the container that overrides the default command from the Docker image or the task definition.
- Parameters:
command- The command to send to the container that overrides the default command from the Docker image or the task definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
BatchContainerOverrides.Builder environment(Collection<BatchEnvironmentVariable> environment)
The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition.
Environment variables cannot start with "
Batch". This naming convention is reserved for variables that Batch sets.- Parameters:
environment- The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition.Environment variables cannot start with "
Batch". This naming convention is reserved for variables that Batch sets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
BatchContainerOverrides.Builder environment(BatchEnvironmentVariable... environment)
The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition.
Environment variables cannot start with "
Batch". This naming convention is reserved for variables that Batch sets.- Parameters:
environment- The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition.Environment variables cannot start with "
Batch". This naming convention is reserved for variables that Batch sets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
BatchContainerOverrides.Builder environment(Consumer<BatchEnvironmentVariable.Builder>... environment)
The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition.
This is a convenience method that creates an instance of theEnvironment variables cannot start with "
Batch". This naming convention is reserved for variables that Batch sets.BatchEnvironmentVariable.Builderavoiding the need to create one manually viaBatchEnvironmentVariable.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 onBatchEnvironmentVariable.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#environment(java.util.Collection)
-
instanceType
BatchContainerOverrides.Builder instanceType(String instanceType)
The instance type to use for a multi-node parallel job.
This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided.
- Parameters:
instanceType- The instance type to use for a multi-node parallel job.This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceRequirements
BatchContainerOverrides.Builder resourceRequirements(Collection<BatchResourceRequirement> resourceRequirements)
The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources include
GPU,MEMORY, andVCPU.- Parameters:
resourceRequirements- The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources includeGPU,MEMORY, andVCPU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceRequirements
BatchContainerOverrides.Builder resourceRequirements(BatchResourceRequirement... resourceRequirements)
The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources include
GPU,MEMORY, andVCPU.- Parameters:
resourceRequirements- The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources includeGPU,MEMORY, andVCPU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceRequirements
BatchContainerOverrides.Builder resourceRequirements(Consumer<BatchResourceRequirement.Builder>... resourceRequirements)
The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources include
This is a convenience method that creates an instance of theGPU,MEMORY, andVCPU.BatchResourceRequirement.Builderavoiding the need to create one manually viaBatchResourceRequirement.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 onBatchResourceRequirement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resourceRequirements(java.util.Collection)
-
-