public static class Job.Builder extends CommonDTO.Builder<Job.Builder>
| Constructor and Description | 
|---|
| Builder(java.lang.String name,
       java.lang.String user,
       java.lang.String version)Constructor which has required fields. | 
| Builder(java.lang.String name,
       java.lang.String user,
       java.lang.String version,
       java.lang.String commandArgs)Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| Job | build()Build the job. | 
| Job.Builder | withArchiveLocation(java.lang.String archiveLocation)Set the archive location of the job. | 
| Job.Builder | withClusterName(java.lang.String clusterName)Set the execution cluster name for this job. | 
| Job.Builder | withCommandArgs(java.util.List<java.lang.String> commandArgs)The command arguments to use in conjunction with the command executable selected for this job. | 
| Job.Builder | withCommandArgs(java.lang.String commandArgs)Deprecated.  | 
| Job.Builder | withCommandName(java.lang.String commandName)Set the name of the command used to run this job. | 
| Job.Builder | withFinished(java.util.Date finished)Set the finished time of the job. | 
| Job.Builder | withGrouping(java.lang.String grouping)Set the grouping to use for this job. | 
| Job.Builder | withGroupingInstance(java.lang.String groupingInstance)Set the grouping instance to use for this job. | 
| Job.Builder | withStarted(java.util.Date started)Set the started time of the job. | 
| Job.Builder | withStatus(JobStatus status)Set the status of the job. | 
| Job.Builder | withStatusMsg(java.lang.String statusMsg)Set the detailed status message of the job. | 
withDescription, withMetadata, withMetadata, withTagswithCreated, withId, withUpdatedpublic Builder(java.lang.String name,
               java.lang.String user,
               java.lang.String version)
name - The name to use for the Jobuser - The user to use for the Jobversion - The version to use for the Job@Deprecated
public Builder(java.lang.String name,
                           java.lang.String user,
                           java.lang.String version,
                           @Nullable
                           java.lang.String commandArgs)
Deprecated: Command args is optional. Use new constructor. Will be removed in 4.0.0
name - The name to use for the Jobuser - The user to use for the Jobversion - The version to use for the JobcommandArgs - The command arguments used for this job#Builder(String, String, String)@Deprecated public Job.Builder withCommandArgs(@Nullable java.lang.String commandArgs)
DEPRECATED: This API will be removed in 4.0.0 in favor of the List based method for improved control over escaping of arguments.
commandArgs - The command argswithCommandArgs(List)public Job.Builder withCommandArgs(@Nullable java.util.List<java.lang.String> commandArgs)
commandArgs - The command argspublic Job.Builder withClusterName(@Nullable java.lang.String clusterName)
clusterName - The execution cluster namepublic Job.Builder withCommandName(@Nullable java.lang.String commandName)
commandName - The name of the commandpublic Job.Builder withStatus(JobStatus status)
status - The statusJobStatuspublic Job.Builder withStatusMsg(@Nullable java.lang.String statusMsg)
statusMsg - The status messagepublic Job.Builder withStarted(@Nullable java.util.Date started)
started - The started time of the jobpublic Job.Builder withFinished(@Nullable java.util.Date finished)
finished - The time the job finishedpublic Job.Builder withArchiveLocation(@Nullable java.lang.String archiveLocation)
archiveLocation - The location where the job results are archivedpublic Job.Builder withGrouping(@Nullable java.lang.String grouping)
grouping - The groupingpublic Job.Builder withGroupingInstance(@Nullable java.lang.String groupingInstance)
groupingInstance - The grouping instancepublic Job build()