Class JobSubmission.Builder

java.lang.Object
com.netflix.genie.web.dtos.JobSubmission.Builder
Enclosing class:
JobSubmission

public static class JobSubmission.Builder extends Object
Builder for JobSubmission instances.
Since:
4.0.0
  • Constructor Details

    • Builder

      public Builder(JobRequest jobRequest, JobRequestMetadata jobRequestMetadata)
      Constructor with required parameters.
      Parameters:
      jobRequest - The job request metadata entered by the user
      jobRequestMetadata - The metadata collected by the system about the request
  • Method Details

    • withAttachments

      public JobSubmission.Builder withAttachments(@Nullable Set<URI> attachments)
      Set the attachments associated with this submission if there were any.
      Parameters:
      attachments - The attachments URIs
      Returns:
      the builder
    • withAttachments

      public JobSubmission.Builder withAttachments(URI... attachments)
      Set the attachments associated with this submission.
      Parameters:
      attachments - The attachments as URIs
      Returns:
      the builder
    • build

      public JobSubmission build()
      Build an immutable JobSubmission instance based on the current contents of this builder.
      Returns:
      An JobSubmission instance