public static class JobMetadata.Builder extends CommonMetadata.Builder<JobMetadata.Builder>
| Constructor and Description |
|---|
Builder(java.lang.String name,
java.lang.String user)
Constructor which will set a default version of 0.1.
|
Builder(java.lang.String name,
java.lang.String user,
java.lang.String version)
Constructor which has required fields.
|
| Modifier and Type | Method and Description |
|---|---|
JobMetadata |
build()
Build the job user metadata instance.
|
JobMetadata.Builder |
withEmail(java.lang.String email)
Set the email to use for alerting of job completion.
|
JobMetadata.Builder |
withGroup(java.lang.String group)
Set the group for the job.
|
JobMetadata.Builder |
withGrouping(java.lang.String grouping)
Set the grouping to use for this job.
|
JobMetadata.Builder |
withGroupingInstance(java.lang.String groupingInstance)
Set the grouping instance to use for this job.
|
withDescription, withMetadata, withMetadata, withTagspublic Builder(java.lang.String name,
java.lang.String user,
java.lang.String version)
name - The name to use for the jobuser - The user to use for the Jobversion - The version of the jobpublic Builder(java.lang.String name,
java.lang.String user)
name - The name to use for the jobuser - The user to use for the jobpublic JobMetadata.Builder withGroup(@Nullable java.lang.String group)
group - The grouppublic JobMetadata.Builder withEmail(@Nullable java.lang.String email)
email - the email address to usepublic JobMetadata.Builder withGrouping(@Nullable java.lang.String grouping)
grouping - The groupingpublic JobMetadata.Builder withGroupingInstance(@Nullable java.lang.String groupingInstance)
groupingInstance - The grouping instancepublic JobMetadata build()