public class TaskBuilder extends Object
Modifier and Type | Method and Description |
---|---|
List<Task> |
allTasks() |
Task |
build()
Create new Task instance.
|
TaskBuilder |
definition(String taskDefinition)
Fluent API method to set the task definition.
|
TaskBuilder |
description(String taskDescription) |
Optional<Task> |
findByName(String taskName) |
TaskBuilder |
name(String definitionName)
Fluent API method to set the name for the task definition.
|
public TaskBuilder name(String definitionName)
definitionName
- - definition name of a Task with the server. Note that the actual task name is computed
form the definition name, task definition and task description.TaskBuilder
that provides the next navigation step in the DSL.public TaskBuilder definition(String taskDefinition)
taskDefinition
- - The task definition to use.TaskBuilder
that provides the next navigation step in the DSL.public TaskBuilder description(String taskDescription)
taskDescription
- Task description.TaskBuilder
that provides the next navigation step in the DSL.public Task build()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.