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
ConstructorsConstructorDescriptionBuilder
(JobMetadata metadata, ExecutionResourceCriteria criteria, AgentConfigRequest requestedAgentConfig) Constructor with required parameters. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build an immutable job request instance.withCommandArgs
(List<String> commandArgs) Set the ordered list of command line arguments to append to the command executable at runtime.Methods inherited from class com.netflix.genie.common.internal.dtos.CommonRequestImpl.Builder
withRequestedId, withResources
-
Constructor Details
-
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 Details
-
withCommandArgs
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
Build an immutable job request instance.- Returns:
- An immutable representation of the user supplied information for a job request
-