Class TaskInput.Builder

Enclosing class:
TaskInput

public static class TaskInput.Builder extends ValidatedBuilder<TaskInput>
A builder that can be used to build a new TaskInput that is automatically validated on build.
  • Method Details

    • fromTaskNamespace

      public TaskInput.Builder fromTaskNamespace(String objectNamePattern)
      Specifies that matching objects from the same namespace as the task should be downloaded to the working directory prior to task execution.
      Parameters:
      objectNamePattern - an ant-style pattern to select objects by name
      Returns:
      the builder
    • fromTaskNamespace

      public TaskInput.Builder fromTaskNamespace(String objectNamePattern, TaskInputVerification verification)
      Specifies that matching objects from the same namespace as the task should be downloaded to the working directory prior to task execution.
      Parameters:
      objectNamePattern - an ant-style pattern to select objects by name
      verification - indicates if input verification is required
      Returns:
      the builder
    • fromNamespace

      public TaskInput.Builder fromNamespace(String namespace, String objectNamePattern)
      Specifies that matching objects from the supplied namespace should be downloaded to the working directory prior to task execution.
      Parameters:
      namespace - the namespace containing matching objects
      objectNamePattern - an ant-style pattern to select objects by name
      Returns:
      the builder
    • fromNamespace

      public TaskInput.Builder fromNamespace(String namespace, String objectNamePattern, TaskInputVerification verification)
      Specifies that matching objects from the supplied namespace should be downloaded to the working directory prior to task execution.
      Parameters:
      namespace - the namespace containing matching objects
      objectNamePattern - an ant-style pattern to select objects by name
      verification - indicates if input verification is required
      Returns:
      the builder
    • source

      public TaskInput.Builder source(TaskInputSource source)
      Returns:
      this.
    • namespace

      public TaskInput.Builder namespace(String namespace)
      Returns:
      this.
    • objectNamePattern

      public TaskInput.Builder objectNamePattern(String objectNamePattern)
      Returns:
      this.
    • verification

      public TaskInput.Builder verification(TaskInputVerification verification)
      Returns:
      this.
    • buildUnchecked

      public TaskInput buildUnchecked()
      Description copied from class: ValidatedBuilder
      Builds the object without enforcing validation constraints. This should only be used for testing purposes
      Overrides:
      buildUnchecked in class ValidatedBuilder<TaskInput>
      Returns:
      the object being built
    • toString

      public String toString()
      Overrides:
      toString in class Object