public static class JobSubmission.Builder
extends java.lang.Object
JobSubmission
instances.Constructor and Description |
---|
Builder(JobRequest jobRequest,
JobRequestMetadata jobRequestMetadata)
Constructor with required parameters.
|
Modifier and Type | Method and Description |
---|---|
JobSubmission |
build()
Build an immutable
JobSubmission instance based on the current contents of this builder. |
JobSubmission.Builder |
withAttachments(org.springframework.core.io.Resource... attachments)
Set the attachments associated with this submission.
|
JobSubmission.Builder |
withAttachments(java.util.Set<org.springframework.core.io.Resource> attachments)
Set the attachments associated with this submission if there were any.
|
public Builder(JobRequest jobRequest, JobRequestMetadata jobRequestMetadata)
jobRequest
- The job request metadata entered by the userjobRequestMetadata
- The metadata collected by the system about the requestpublic JobSubmission.Builder withAttachments(@Nullable java.util.Set<org.springframework.core.io.Resource> attachments)
attachments
- The attachments as Resource
instancespublic JobSubmission.Builder withAttachments(org.springframework.core.io.Resource... attachments)
attachments
- The attachments as Resource
instancespublic JobSubmission build()
JobSubmission
instance based on the current contents of this builder.JobSubmission
instance