public static class JobMetadata.Builder extends BaseDTO.Builder<JobMetadata.Builder>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JobMetadata |
build()
Create a new JobMetadata object from this builder.
|
JobMetadata.Builder |
withClientHost(java.lang.String clientHost)
Set the host name that sent the job request.
|
JobMetadata.Builder |
withNumAttachments(java.lang.Integer numAttachments)
Set the number of attachments the job had.
|
JobMetadata.Builder |
withStdErrSize(java.lang.Long stdErrSize)
Set the total size (in bytes) of the jobs' standard error file.
|
JobMetadata.Builder |
withStdOutSize(java.lang.Long stdOutSize)
Set the total size (in bytes) of the jobs' standard out file.
|
JobMetadata.Builder |
withTotalSizeOfAttachments(java.lang.Long totalSizeOfAttachments)
Set the total size (in bytes) of the attachments sent with the job request.
|
JobMetadata.Builder |
withUserAgent(java.lang.String userAgent)
Set the user agent string the request came in with.
|
withCreated, withId, withUpdated
public JobMetadata.Builder withClientHost(java.lang.String clientHost)
clientHost
- The hostname to use.public JobMetadata.Builder withUserAgent(java.lang.String userAgent)
userAgent
- The user agent stringpublic JobMetadata.Builder withNumAttachments(java.lang.Integer numAttachments)
numAttachments
- The number of attachments sent in with the job requestpublic JobMetadata.Builder withTotalSizeOfAttachments(java.lang.Long totalSizeOfAttachments)
totalSizeOfAttachments
- The total size of the attachments sent in with the job requestpublic JobMetadata.Builder withStdOutSize(java.lang.Long stdOutSize)
stdOutSize
- The total size of the jobs' standard out filepublic JobMetadata.Builder withStdErrSize(java.lang.Long stdErrSize)
stdErrSize
- The total size of the jobs' standard error filepublic JobMetadata build()