Class JobEnvironmentRequest.Builder

java.lang.Object
com.netflix.genie.common.internal.dtos.JobEnvironmentRequest.Builder
Enclosing class:
JobEnvironmentRequest

public static class JobEnvironmentRequest.Builder extends Object
Builder to create an immutable JobEnvironmentRequest instance.
Since:
4.0.0
  • Constructor Details

    • Builder

      public Builder()
      Constructor.
  • Method Details

    • withRequestedEnvironmentVariables

      public JobEnvironmentRequest.Builder withRequestedEnvironmentVariables(@Nullable Map<String,String> requestedEnvironmentVariables)
      Set any environment variables that the agent should add to the job runtime.
      Parameters:
      requestedEnvironmentVariables - Additional environment variables
      Returns:
      The builder
    • withExt

      public JobEnvironmentRequest.Builder withExt(@Nullable com.fasterxml.jackson.databind.JsonNode ext)
      Set the extension configuration for the agent. This is generally used for specific implementations of the job launcher e.g. on Titus or local docker etc.
      Parameters:
      ext - The extension configuration which is effectively a DSL per job launch implementation
      Returns:
      The builder
    • withRequestedComputeResources

      public JobEnvironmentRequest.Builder withRequestedComputeResources(ComputeResources requestedComputeResources)
      Set the computation resources the job should run with.
      Parameters:
      requestedComputeResources - The ComputeResources
      Returns:
      This JobEnvironmentRequest.Builder instance
    • withRequestedImages

      public JobEnvironmentRequest.Builder withRequestedImages(Map<String,Image> requestedImages)
      Set the images the job should run with.
      Parameters:
      requestedImages - The Image map
      Returns:
      This JobEnvironmentRequest.Builder instance
    • build

      public JobEnvironmentRequest build()
      Build a new immutable instance of an JobEnvironmentRequest.
      Returns:
      An instance containing the fields set in this builder