Package com.netflix.genie.common.dto
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 Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.netflix.genie.common.dto.BaseDTO.Builder
withCreated, withId, withUpdated
-
-
-
-
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
-
-