public static final class StateProps.Builder
extends java.lang.Object
StateProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StateProps |
build()
Builds the configured instance.
|
StateProps.Builder |
comment(java.lang.String comment)
Sets the value of
StateProps.getComment() |
StateProps.Builder |
inputPath(java.lang.String inputPath)
Sets the value of
StateProps.getInputPath() |
StateProps.Builder |
outputPath(java.lang.String outputPath)
Sets the value of
StateProps.getOutputPath() |
StateProps.Builder |
parameters(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
Sets the value of
StateProps.getParameters() |
StateProps.Builder |
resultPath(java.lang.String resultPath)
Sets the value of
StateProps.getResultPath() |
StateProps.Builder |
resultSelector(java.util.Map<java.lang.String,? extends java.lang.Object> resultSelector)
Sets the value of
StateProps.getResultSelector() |
public StateProps.Builder comment(java.lang.String comment)
StateProps.getComment()
comment
- A comment describing this state.this
public StateProps.Builder inputPath(java.lang.String inputPath)
StateProps.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 StateProps.Builder outputPath(java.lang.String outputPath)
StateProps.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 StateProps.Builder parameters(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
StateProps.getParameters()
parameters
- Parameters pass a collection of key-value pairs, either static values or JSONPath expressions that select from the input.this
public StateProps.Builder resultPath(java.lang.String resultPath)
StateProps.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 StateProps.Builder resultSelector(java.util.Map<java.lang.String,? extends java.lang.Object> resultSelector)
StateProps.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 StateProps build()
StateProps
java.lang.NullPointerException
- if any required attribute was not provided