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 Summary
Constructors Constructor Description Builder(JobMetadata metadata, ExecutionResourceCriteria criteria, AgentConfigRequest requestedAgentConfig)
Constructor with required parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentJobRequest
build()
Build an immutable job request instance.AgentJobRequest.Builder
withCommandArgs(java.util.List<java.lang.String> commandArgs)
Set the ordered list of command line arguments to append to the command executable at runtime.
-
-
-
Constructor Detail
-
Builder
public Builder(JobMetadata metadata, ExecutionResourceCriteria criteria, AgentConfigRequest requestedAgentConfig)
Constructor with required parameters.- Parameters:
metadata
- All user supplied metadatacriteria
- All user supplied execution criteriarequestedAgentConfig
- The requested configuration of the Genie agent
-
-
Method Detail
-
withCommandArgs
public AgentJobRequest.Builder withCommandArgs(@Nullable java.util.List<java.lang.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
-
-