Class JobMetadata.Builder
java.lang.Object
com.netflix.genie.common.internal.dtos.CommonMetadata.Builder<JobMetadata.Builder>
com.netflix.genie.common.internal.dtos.JobMetadata.Builder
- Enclosing class:
- JobMetadata
A builder to create job user metadata instances.
- Since:
- 4.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the job user metadata instance.Set the email to use for alerting of job completion.Set the group for the job.withGrouping
(String grouping) Set the grouping to use for this job.withGroupingInstance
(String groupingInstance) Set the grouping instance to use for this job.Methods inherited from class com.netflix.genie.common.internal.dtos.CommonMetadata.Builder
withDescription, withMetadata, withMetadata, withTags
-
Constructor Details
-
Builder
Constructor which has required fields.- Parameters:
name
- The name to use for the jobuser
- The user to use for the Jobversion
- The version of the job
-
Builder
Constructor which will set a default version of 0.1.- Parameters:
name
- The name to use for the jobuser
- The user to use for the job
-
-
Method Details
-
withGroup
Set the group for the job.- Parameters:
group
- The group- Returns:
- The builder
-
withEmail
Set the email to use for alerting of job completion. If no alert desired leave blank.- Parameters:
email
- the email address to use- Returns:
- The builder
-
withGrouping
Set the grouping to use for this job.- Parameters:
grouping
- The grouping- Returns:
- The builder
- Since:
- 3.3.0
-
withGroupingInstance
Set the grouping instance to use for this job.- Parameters:
groupingInstance
- The grouping instance- Returns:
- The builder
- Since:
- 3.3.0
-
build
Build the job user metadata instance.- Returns:
- Create the final read-only JobMetadata instance
-