Interface ContainerOverride.Builder

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

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

    • name

      The name of the container that receives the override. This parameter is required if any override is specified.

      Parameters:
      name - The name of the container that receives the override. This parameter is required if any override is specified.
      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 task definition. You must also specify a container name.

      Parameters:
      command - The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • command

      ContainerOverride.Builder command(String... command)

      The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.

      Parameters:
      command - The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.
      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 task definition. You must also specify a container name.

      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. You must also specify a container name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environment

      ContainerOverride.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 task definition. You must also specify a container name.

      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. You must also specify a container name.
      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 task definition. You must also specify a container name.

      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:
    • environmentFiles

      ContainerOverride.Builder environmentFiles(Collection<EnvironmentFile> environmentFiles)

      A list of files containing the environment variables to pass to a container, instead of the value from the container definition.

      Parameters:
      environmentFiles - A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environmentFiles

      ContainerOverride.Builder environmentFiles(EnvironmentFile... environmentFiles)

      A list of files containing the environment variables to pass to a container, instead of the value from the container definition.

      Parameters:
      environmentFiles - A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environmentFiles

      ContainerOverride.Builder environmentFiles(Consumer<EnvironmentFile.Builder>... environmentFiles)

      A list of files containing the environment variables to pass to a container, instead of the value from the container definition.

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

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

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

      The number of cpu units reserved for the container, instead of the default value from the task definition. You must also specify a container name.

      Parameters:
      cpu - The number of cpu units reserved for the container, instead of the default value from the task definition. You must also specify a container name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memory

      The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.

      Parameters:
      memory - The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryReservation

      ContainerOverride.Builder memoryReservation(Integer memoryReservation)

      The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.

      Parameters:
      memoryReservation - The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceRequirements

      ContainerOverride.Builder resourceRequirements(Collection<ResourceRequirement> resourceRequirements)

      The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.

      Parameters:
      resourceRequirements - The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceRequirements

      ContainerOverride.Builder resourceRequirements(ResourceRequirement... resourceRequirements)

      The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.

      Parameters:
      resourceRequirements - The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceRequirements

      ContainerOverride.Builder resourceRequirements(Consumer<ResourceRequirement.Builder>... resourceRequirements)

      The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.

      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: