Interface TaskContainerOverrides.Builder

All Superinterfaces:
Buildable, CopyableBuilder<TaskContainerOverrides.Builder,TaskContainerOverrides>, SdkBuilder<TaskContainerOverrides.Builder,TaskContainerOverrides>, SdkPojo
Enclosing class:
TaskContainerOverrides

public static interface TaskContainerOverrides.Builder extends SdkPojo, CopyableBuilder<TaskContainerOverrides.Builder,TaskContainerOverrides>
  • Method Details

    • command

      The command to send to the container that overrides the default command from the Docker image or the job definition.

      This parameter can't contain an empty string.

      Parameters:
      command - The command to send to the container that overrides the default command from the Docker image or the job definition.

      This parameter can't contain an empty string.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • command

      The command to send to the container that overrides the default command from the Docker image or the job definition.

      This parameter can't contain an empty string.

      Parameters:
      command - The command to send to the container that overrides the default command from the Docker image or the job definition.

      This parameter can't contain an empty string.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 job definition.

      Environment variables cannot start with AWS_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 job definition.

      Environment variables cannot start with AWS_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

      TaskContainerOverrides.Builder environment(KeyValuePair... 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 job definition.

      Environment variables cannot start with AWS_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 job definition.

      Environment variables cannot start with AWS_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

      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 job definition.

      Environment variables cannot start with AWS_BATCH. This naming convention is reserved for variables that Batch sets.

      This is a convenience method that creates an instance of the KeyValuePair.Builder avoiding the need to create one manually via KeyValuePair.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to environment(List<KeyValuePair>).

      Parameters:
      environment - a consumer that will call methods on KeyValuePair.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • name

      A pointer to the container that you want to override. The container's name provides a unique identifier for the container being used.

      Parameters:
      name - A pointer to the container that you want to override. The container's name provides a unique identifier for the container being used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceRequirements

      TaskContainerOverrides.Builder resourceRequirements(Collection<ResourceRequirement> 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, and VCPU.

      Parameters:
      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, and VCPU.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceRequirements

      TaskContainerOverrides.Builder resourceRequirements(ResourceRequirement... 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, and VCPU.

      Parameters:
      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, and VCPU.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceRequirements

      TaskContainerOverrides.Builder resourceRequirements(Consumer<ResourceRequirement.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 GPU, MEMORY, and VCPU.

      This is a convenience method that creates an instance of the ResourceRequirement.Builder avoiding the need to create one manually via ResourceRequirement.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resourceRequirements(List<ResourceRequirement>).

      Parameters:
      resourceRequirements - a consumer that will call methods on ResourceRequirement.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: