Class AgentJobRequest.Builder

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

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

    • Builder

      public Builder(JobMetadata metadata, ExecutionResourceCriteria criteria, AgentConfigRequest requestedAgentConfig)
      Constructor with required parameters.
      Parameters:
      metadata - All user supplied metadata
      criteria - All user supplied execution criteria
      requestedAgentConfig - The requested configuration of the Genie agent
  • Method Details

    • withCommandArgs

      public AgentJobRequest.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. Blank strings are removed
      Returns:
      The builder
    • build

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