Package org.apache.gravitino.job
Class JobTemplateChange.TemplateUpdate.BaseBuilder<B extends JobTemplateChange.TemplateUpdate.BaseBuilder<B,P>,P extends JobTemplateChange.TemplateUpdate>
java.lang.Object
org.apache.gravitino.job.JobTemplateChange.TemplateUpdate.BaseBuilder<B,P>
- Direct Known Subclasses:
JobTemplateChange.ShellTemplateUpdate.Builder,JobTemplateChange.SparkTemplateUpdate.Builder
- Enclosing class:
- JobTemplateChange.TemplateUpdate
protected abstract static class JobTemplateChange.TemplateUpdate.BaseBuilder<B extends JobTemplateChange.TemplateUpdate.BaseBuilder<B,P>,P extends JobTemplateChange.TemplateUpdate>
extends Object
Base builder class for constructing TemplateUpdate instances.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor to prevent direct instantiation. -
Method Summary
Modifier and TypeMethodDescriptionabstract Pbuild()Builds the TemplateUpdate instance.protected abstract Bself()Returns the builder instance itself for method chaining.withNewArguments(List<String> newArguments) Sets the new arguments for the job template.withNewCustomFields(Map<String, String> newCustomFields) Sets the new custom fields for the job template.withNewEnvironments(Map<String, String> newEnvironments) Sets the new environments for the job template.withNewExecutable(String newExecutable) Sets the new executable for the job template.
-
Constructor Details
-
BaseBuilder
protected BaseBuilder()Protected constructor to prevent direct instantiation.
-
-
Method Details
-
self
Returns the builder instance itself for method chaining.- Returns:
- The builder instance.
-
build
Builds the TemplateUpdate instance.- Returns:
- A new TemplateUpdate instance.
-
withNewExecutable
Sets the new executable for the job template.- Parameters:
newExecutable- The new executable to set.- Returns:
- The builder instance for chaining.
-
withNewArguments
Sets the new arguments for the job template.- Parameters:
newArguments- The new arguments to set.- Returns:
- The builder instance for chaining.
-
withNewEnvironments
Sets the new environments for the job template.- Parameters:
newEnvironments- The new environments to set.- Returns:
- The builder instance for chaining.
-
withNewCustomFields
Sets the new custom fields for the job template.- Parameters:
newCustomFields- The new custom fields to set.- Returns:
- The builder instance for chaining.
-