Package com.netflix.genie.web.dtos
Class JobSubmission.Builder
java.lang.Object
com.netflix.genie.web.dtos.JobSubmission.Builder
- Enclosing class:
- JobSubmission
Builder for
JobSubmission instances.- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(JobRequest jobRequest, JobRequestMetadata jobRequestMetadata) Constructor with required parameters. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build an immutableJobSubmissioninstance based on the current contents of this builder.withAttachments(URI... attachments) Set the attachments associated with this submission.withAttachments(Set<URI> attachments) Set the attachments associated with this submission if there were any.
-
Constructor Details
-
Builder
Constructor with required parameters.- Parameters:
jobRequest- The job request metadata entered by the userjobRequestMetadata- The metadata collected by the system about the request
-
-
Method Details
-
withAttachments
Set the attachments associated with this submission if there were any.- Parameters:
attachments- The attachmentsURIs- Returns:
- the builder
-
withAttachments
Set the attachments associated with this submission.- Parameters:
attachments- The attachments asURIs- Returns:
- the builder
-
build
Build an immutableJobSubmissioninstance based on the current contents of this builder.- Returns:
- An
JobSubmissioninstance
-