public static class ApiJobRequest.Builder extends com.netflix.genie.common.external.dtos.v4.CommonRequestImpl.Builder<ApiJobRequest.Builder>
| Constructor and Description |
|---|
Builder(JobMetadata metadata,
ExecutionResourceCriteria criteria)
Constructor with required parameters.
|
| Modifier and Type | Method and Description |
|---|---|
ApiJobRequest |
build()
Build an immutable job request instance.
|
ApiJobRequest.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.
|
ApiJobRequest.Builder |
withRequestedAgentConfig(AgentConfigRequest requestedAgentConfig)
Set the configuration requested for the agent when this job is executed.
|
ApiJobRequest.Builder |
withRequestedAgentEnvironment(JobEnvironmentRequest requestedJobEnvironment)
Set the information provided by a user for the Agent execution environment.
|
public Builder(JobMetadata metadata, ExecutionResourceCriteria criteria)
metadata - All user supplied metadatacriteria - All user supplied execution criteriapublic ApiJobRequest.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. Any blanks will be removedpublic ApiJobRequest.Builder withRequestedAgentEnvironment(@Nullable JobEnvironmentRequest requestedJobEnvironment)
requestedJobEnvironment - the requested Genie job environment parameterspublic ApiJobRequest.Builder withRequestedAgentConfig(@Nullable AgentConfigRequest requestedAgentConfig)
requestedAgentConfig - The requested configurationpublic ApiJobRequest build()