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
ConstructorDescriptionBuilder
(JobRequest jobRequest, JobRequestMetadata jobRequestMetadata) Constructor with required parameters. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build an immutableJobSubmission
instance 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 attachmentsURI
s- Returns:
- the builder
-
withAttachments
Set the attachments associated with this submission.- Parameters:
attachments
- The attachments asURI
s- Returns:
- the builder
-
build
Build an immutableJobSubmission
instance based on the current contents of this builder.- Returns:
- An
JobSubmission
instance
-