Class JobMetadata.Builder

java.lang.Object
com.netflix.genie.common.dto.BaseDTO.Builder<JobMetadata.Builder>
com.netflix.genie.common.dto.JobMetadata.Builder
Enclosing class:
JobMetadata

public static class JobMetadata.Builder extends BaseDTO.Builder<JobMetadata.Builder>
Builder for creating a JobMetadata instance.
Since:
3.0.0
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • withClientHost

      public JobMetadata.Builder withClientHost(@Nullable String clientHost)
      Set the host name that sent the job request.
      Parameters:
      clientHost - The hostname to use.
      Returns:
      The builder
    • withUserAgent

      public JobMetadata.Builder withUserAgent(@Nullable String userAgent)
      Set the user agent string the request came in with.
      Parameters:
      userAgent - The user agent string
      Returns:
      The builder
    • withNumAttachments

      public JobMetadata.Builder withNumAttachments(@Nullable Integer numAttachments)
      Set the number of attachments the job had.
      Parameters:
      numAttachments - The number of attachments sent in with the job request
      Returns:
      The builder
    • withTotalSizeOfAttachments

      public JobMetadata.Builder withTotalSizeOfAttachments(@Nullable Long totalSizeOfAttachments)
      Set the total size (in bytes) of the attachments sent with the job request.
      Parameters:
      totalSizeOfAttachments - The total size of the attachments sent in with the job request
      Returns:
      The builder
    • withStdOutSize

      public JobMetadata.Builder withStdOutSize(@Nullable Long stdOutSize)
      Set the total size (in bytes) of the jobs' standard out file.
      Parameters:
      stdOutSize - The total size of the jobs' standard out file
      Returns:
      The builder
    • withStdErrSize

      public JobMetadata.Builder withStdErrSize(@Nullable Long stdErrSize)
      Set the total size (in bytes) of the jobs' standard error file.
      Parameters:
      stdErrSize - The total size of the jobs' standard error file
      Returns:
      The builder
    • build

      public JobMetadata build()
      Create a new JobMetadata object from this builder.
      Returns:
      The JobMetadata read only instance