public static final class SingleStateOptions.Builder
extends java.lang.Object
SingleStateOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SingleStateOptions |
build()
Builds the configured instance.
|
SingleStateOptions.Builder |
comment(java.lang.String comment)
Sets the value of
ParallelProps.getComment() |
SingleStateOptions.Builder |
inputPath(java.lang.String inputPath)
Sets the value of
ParallelProps.getInputPath() |
SingleStateOptions.Builder |
outputPath(java.lang.String outputPath)
Sets the value of
ParallelProps.getOutputPath() |
SingleStateOptions.Builder |
prefixStates(java.lang.String prefixStates)
Sets the value of
SingleStateOptions.getPrefixStates() |
SingleStateOptions.Builder |
resultPath(java.lang.String resultPath)
Sets the value of
ParallelProps.getResultPath() |
SingleStateOptions.Builder |
resultSelector(java.util.Map<java.lang.String,? extends java.lang.Object> resultSelector)
Sets the value of
ParallelProps.getResultSelector() |
SingleStateOptions.Builder |
stateId(java.lang.String stateId)
Sets the value of
SingleStateOptions.getStateId() |
public SingleStateOptions.Builder prefixStates(java.lang.String prefixStates)
SingleStateOptions.getPrefixStates()
prefixStates
- String to prefix all stateIds in the state machine with.this
public SingleStateOptions.Builder stateId(java.lang.String stateId)
SingleStateOptions.getStateId()
stateId
- ID of newly created containing state.this
public SingleStateOptions.Builder comment(java.lang.String comment)
ParallelProps.getComment()
comment
- An optional description for this state.this
public SingleStateOptions.Builder inputPath(java.lang.String inputPath)
ParallelProps.getInputPath()
inputPath
- JSONPath expression to select part of the state to be the input to this state.
May also be the special value JsonPath.DISCARD, which will cause the effective
input to be the empty object {}.this
public SingleStateOptions.Builder outputPath(java.lang.String outputPath)
ParallelProps.getOutputPath()
outputPath
- JSONPath expression to select part of the state to be the output to this state.
May also be the special value JsonPath.DISCARD, which will cause the effective
output to be the empty object {}.this
public SingleStateOptions.Builder resultPath(java.lang.String resultPath)
ParallelProps.getResultPath()
resultPath
- JSONPath expression to indicate where to inject the state's output.
May also be the special value JsonPath.DISCARD, which will cause the state's
input to become its output.this
public SingleStateOptions.Builder resultSelector(java.util.Map<java.lang.String,? extends java.lang.Object> resultSelector)
ParallelProps.getResultSelector()
resultSelector
- The JSON that will replace the state's raw result and become the effective result before ResultPath is applied.
You can use ResultSelector to create a payload with values that are static
or selected from the state's raw result.this
public SingleStateOptions build()
SingleStateOptions
java.lang.NullPointerException
- if any required attribute was not provided