Buildable.Utils
Modifier and Type | Method and Description |
---|---|
TaskState |
build() |
TaskState.Builder |
catcher(Catcher.Builder catcherBuilder)
OPTIONAL.
|
TaskState.Builder |
catchers(Catcher.Builder... catcherBuilders)
OPTIONAL.
|
TaskState.Builder |
comment(String comment)
OPTIONAL.
|
TaskState.Builder |
heartbeatSeconds(Integer heartbeatSeconds)
OPTIONAL.
|
TaskState.Builder |
inputPath(String inputPath)
OPTIONAL.
|
TaskState.Builder |
outputPath(String outputPath)
OPTIONAL.
|
TaskState.Builder |
resource(String resource)
REQUIRED.
|
TaskState.Builder |
resultPath(String resultPath)
OPTIONAL.
|
TaskState.Builder |
retrier(Retrier.Builder retrierBuilder)
OPTIONAL.
|
TaskState.Builder |
retriers(Retrier.Builder... retrierBuilders)
OPTIONAL.
|
TaskState.Builder |
timeoutSeconds(Integer timeoutSeconds)
OPTIONAL.
|
TaskState.Builder |
transition(Transition.Builder transition)
REQUIRED.
|
public TaskState.Builder resource(String resource)
resource
- URI of resource.public TaskState.Builder inputPath(String inputPath)
inputPath
- New path value.public TaskState.Builder resultPath(String resultPath)
resultPath
- New path value.public TaskState.Builder outputPath(String outputPath)
outputPath
- New path value.public TaskState.Builder comment(String comment)
comment
- New comment.public TaskState.Builder timeoutSeconds(Integer timeoutSeconds)
ErrorCode.TIMEOUT
error.timeoutSeconds
- Timeout value.public TaskState.Builder heartbeatSeconds(Integer heartbeatSeconds)
ErrorCode.TIMEOUT
. If not set then no heartbeats are required. Heartbeats are a more granular
way
for a task to report it's progress to the state machine.heartbeatSeconds
- Heartbeat value.public TaskState.Builder transition(Transition.Builder transition)
transition
- New transition.public TaskState.Builder retriers(Retrier.Builder... retrierBuilders)
Retrier
s to this states retriers. If the task exits abnormally (throws exception, times
out,
etc) it will be considered failed and eligible to be retried.retrierBuilders
- Instances of Retrier.Builder
. Note that the Retrier
object is not built until the ParallelState
is built so any modifications on
the state builder will be reflected in this object.public TaskState.Builder retrier(Retrier.Builder retrierBuilder)
Retrier
to this states retriers. If the task exits abnormally (throws exception, times out,
etc) it will be considered failed and eligible to be retried.retrierBuilder
- Instance of Retrier.Builder
. Note that the Retrier
object is not built until the ParallelState
is built so any modifications on
the
state builder will be reflected in this object.public TaskState.Builder catchers(Catcher.Builder... catcherBuilders)
Catcher
s to this states catchers. If the task exits abnormally (throws exception, times
out,
etc) it will be considered failed and eligible to be caught.catcherBuilders
- Instances of Catcher.Builder
. Note that the Catcher
object is not built until the TaskState
is built so any modifications on the
state builder will be reflected in this object.public TaskState.Builder catcher(Catcher.Builder catcherBuilder)
Catcher
to this states catchers. If the task exits abnormally (throws exception, times out,
etc) it will be considered failed and eligible to be caught.catcherBuilder
- Instance of Catcher.Builder
. Note that the Catcher
object is not built until the TaskState
is built so any modifications on the
state builder will be reflected in this object.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.