public static class AgentJobRequest.Builder extends com.netflix.genie.common.external.dtos.v4.CommonRequestImpl.Builder<AgentJobRequest.Builder>
| Constructor and Description |
|---|
Builder(JobMetadata metadata,
ExecutionResourceCriteria criteria,
AgentConfigRequest requestedAgentConfig,
JobArchivalDataRequest requestedJobArchivalData)
Constructor with required parameters.
|
| Modifier and Type | Method and 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.
|
public Builder(JobMetadata metadata, ExecutionResourceCriteria criteria, AgentConfigRequest requestedAgentConfig, JobArchivalDataRequest requestedJobArchivalData)
metadata - All user supplied metadatacriteria - All user supplied execution criteriarequestedAgentConfig - The requested configuration of the Genie agentrequestedJobArchivalData - The requested job archival datapublic AgentJobRequest.Builder withCommandArgs(@Nullable java.util.List<java.lang.String> commandArgs)
commandArgs - The arguments in the order they should be placed on the command line. Maximum of 10,000
characters per argument. Blank strings are removedpublic AgentJobRequest build()