Class JobEnvironmentRequest.Builder
java.lang.Object
com.netflix.genie.common.internal.dtos.JobEnvironmentRequest.Builder
- Enclosing class:
- JobEnvironmentRequest
Builder to create an immutable
JobEnvironmentRequest instance.- Since:
- 4.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a new immutable instance of anJobEnvironmentRequest.withExt(com.fasterxml.jackson.databind.JsonNode ext) Set the extension configuration for the agent.withRequestedComputeResources(ComputeResources requestedComputeResources) Set the computation resources the job should run with.withRequestedEnvironmentVariables(Map<String, String> requestedEnvironmentVariables) Set any environment variables that the agent should add to the job runtime.withRequestedImages(Map<String, Image> requestedImages) Set the images the job should run with.
-
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
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- TheComputeResources- Returns:
- This
JobEnvironmentRequest.Builderinstance
-
withRequestedImages
Set the images the job should run with.- Parameters:
requestedImages- TheImagemap- Returns:
- This
JobEnvironmentRequest.Builderinstance
-
build
Build a new immutable instance of anJobEnvironmentRequest.- Returns:
- An instance containing the fields set in this builder
-