Class TaskInput.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<TaskInput>
co.yellowdog.platform.model.TaskInput.Builder
- Enclosing class:
TaskInput
A builder that can be used to build a new TaskInput that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.fromNamespace
(String namespace, String objectNamePattern) Specifies that matching objects from the supplied namespace should be downloaded to the working directory prior to task execution.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.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.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.objectNamePattern
(String objectNamePattern) source
(TaskInputSource source) toString()
verification
(TaskInputVerification verification) Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
fromTaskNamespace
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 nameverification
- indicates if input verification is required- Returns:
- the builder
-
fromNamespace
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 objectsobjectNamePattern
- 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 objectsobjectNamePattern
- an ant-style pattern to select objects by nameverification
- indicates if input verification is required- Returns:
- the builder
-
source
- Returns:
this
.
-
namespace
- Returns:
this
.
-
objectNamePattern
- Returns:
this
.
-
verification
- Returns:
this
.
-
buildUnchecked
Description copied from class:ValidatedBuilder
Builds the object without enforcing validation constraints. This should only be used for testing purposes- Overrides:
buildUnchecked
in classValidatedBuilder<TaskInput>
- Returns:
- the object being built
-
toString
-