Class ApiJobRequest.Builder

java.lang.Object
com.netflix.genie.common.internal.dtos.CommonRequestImpl.Builder<ApiJobRequest.Builder>
com.netflix.genie.common.internal.dtos.ApiJobRequest.Builder
Enclosing interface:
ApiJobRequest

public static class ApiJobRequest.Builder extends com.netflix.genie.common.internal.dtos.CommonRequestImpl.Builder<ApiJobRequest.Builder>
Builder for a V4 Job Request.
Since:
4.0.0
  • Constructor Details

    • Builder

      public Builder(JobMetadata metadata, ExecutionResourceCriteria criteria)
      Constructor with required parameters.
      Parameters:
      metadata - All user supplied metadata
      criteria - All user supplied execution criteria
  • Method Details

    • withCommandArgs

      public ApiJobRequest.Builder withCommandArgs(@Nullable List<String> commandArgs)
      Set the ordered list of command line arguments to append to the command executable at runtime.
      Parameters:
      commandArgs - The arguments in the order they should be placed on the command line. Maximum of 10,000 characters per argument. Any blanks will be removed
      Returns:
      The builder
    • withRequestedAgentEnvironment

      public ApiJobRequest.Builder withRequestedAgentEnvironment(@Nullable JobEnvironmentRequest requestedJobEnvironment)
      Set the information provided by a user for the Agent execution environment.
      Parameters:
      requestedJobEnvironment - the requested Genie job environment parameters
      Returns:
      The builder
    • withRequestedAgentConfig

      public ApiJobRequest.Builder withRequestedAgentConfig(@Nullable AgentConfigRequest requestedAgentConfig)
      Set the configuration requested for the agent when this job is executed.
      Parameters:
      requestedAgentConfig - The requested configuration
      Returns:
      The builder
    • build

      public ApiJobRequest build()
      Build an immutable job request instance.
      Returns:
      An immutable representation of the user supplied information for a job request