Class Task.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<Task>
co.yellowdog.platform.model.Task.Builder
- Enclosing class:
Task
A builder that can be used to build a new Task that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionarguments(@NonNull Collection<? extends String> arguments) Builds the object without enforcing validation constraints.environment(String environmentKey, String environmentValue) environment(Map<? extends String, ? extends String> environment) toString()Methods inherited from class ValidatedBuilder
build, validate
-
Method Details
-
argument
-
arguments
-
arguments
-
clearArguments
-
name
- Parameters:
name- the task name- Returns:
this.
-
tag
- Parameters:
tag- the task tag- Returns:
this.
-
taskType
- Parameters:
taskType- the task type- Returns:
this.
-
taskData
- Parameters:
taskData- the task initialisation data- Returns:
this.
-
environment
-
environment
-
clearEnvironment
-
timeout
- Parameters:
timeout- the task timeout- Returns:
this.
-
data
- Returns:
this.
-
buildUnchecked
Description copied from class:ValidatedBuilderBuilds the object without enforcing validation constraints. Use this when the object is validated later, for example as part of an enclosing object built withValidatedBuilder.build(), or when it does not need to be valid on its own.- Overrides:
buildUncheckedin classValidatedBuilder<Task>- Returns:
- the object being built
-
toString
-