public static final class ParallelProps.Builder
extends java.lang.Object
ParallelProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ParallelProps |
build()
Builds the configured instance.
|
ParallelProps.Builder |
comment(java.lang.String comment)
Sets the value of
ParallelProps.getComment() |
ParallelProps.Builder |
inputPath(java.lang.String inputPath)
Sets the value of
ParallelProps.getInputPath() |
ParallelProps.Builder |
outputPath(java.lang.String outputPath)
Sets the value of
ParallelProps.getOutputPath() |
ParallelProps.Builder |
resultPath(java.lang.String resultPath)
Sets the value of
ParallelProps.getResultPath() |
ParallelProps.Builder |
resultSelector(java.util.Map<java.lang.String,? extends java.lang.Object> resultSelector)
Sets the value of
ParallelProps.getResultSelector() |
public ParallelProps.Builder comment(java.lang.String comment)
ParallelProps.getComment()
comment
- An optional description for this state.this
public ParallelProps.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 ParallelProps.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 ParallelProps.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 ParallelProps.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 ParallelProps build()
ParallelProps
java.lang.NullPointerException
- if any required attribute was not provided