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 Details

    • BaseBuilder

      protected BaseBuilder()
      Protected constructor to prevent direct instantiation.
  • Method Details

    • self

      protected abstract B self()
      Returns the builder instance itself for method chaining.
      Returns:
      The builder instance.
    • build

      public abstract P build()
      Builds the TemplateUpdate instance.
      Returns:
      A new TemplateUpdate instance.
    • withNewExecutable

      public B withNewExecutable(String newExecutable)
      Sets the new executable for the job template.
      Parameters:
      newExecutable - The new executable to set.
      Returns:
      The builder instance for chaining.
    • withNewArguments

      public B withNewArguments(List<String> newArguments)
      Sets the new arguments for the job template.
      Parameters:
      newArguments - The new arguments to set.
      Returns:
      The builder instance for chaining.
    • withNewEnvironments

      public B withNewEnvironments(Map<String,String> newEnvironments)
      Sets the new environments for the job template.
      Parameters:
      newEnvironments - The new environments to set.
      Returns:
      The builder instance for chaining.
    • withNewCustomFields

      public B withNewCustomFields(Map<String,String> newCustomFields)
      Sets the new custom fields for the job template.
      Parameters:
      newCustomFields - The new custom fields to set.
      Returns:
      The builder instance for chaining.