| Modifier and Type | Method and Description |
|---|---|
Task |
build()
Builds a new
Task. |
Task.Builder |
command(String command)
Initializes the value for the
command attribute. |
Task.Builder |
from(Task instance)
Fill a builder with attribute values from the provided
Task instance. |
Task.Builder |
name(String name)
Initializes the value for the
name attribute. |
Task.Builder |
sequenceId(Integer sequenceId)
Initializes the value for the
sequenceId attribute. |
Task.Builder |
startTime(String startTime)
Initializes the value for the
startTime attribute. |
Task.Builder |
state(TaskState state)
Initializes the value for the
state attribute. |
public final Task.Builder from(Task instance)
Task instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Task.Builder command(String command)
command attribute.command - The value for command (can be null)this builder for use in a chained invocationpublic final Task.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final Task.Builder sequenceId(Integer sequenceId)
sequenceId attribute.sequenceId - The value for sequenceIdthis builder for use in a chained invocationpublic final Task.Builder startTime(String startTime)
startTime attribute.startTime - The value for startTimethis builder for use in a chained invocationpublic final Task.Builder state(TaskState state)
state attribute.state - The value for statethis builder for use in a chained invocationpublic Task build()
Task.IllegalStateException - if any required attributes are missingCopyright © 2018. All rights reserved.