Class JobMetadata.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withClientHost

        public JobMetadata.Builder withClientHost​(@Nullable
                                                  java.lang.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
                                                 java.lang.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
                                                      java.lang.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
                                                              java.lang.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
                                                  java.lang.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
                                                  java.lang.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