Class DistributedMapProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.DistributedMapProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DistributedMapProps>
- Enclosing interface:
- DistributedMapProps
@Stability(Stable)
public static final class DistributedMapProps.Builder
extends Object
implements software.amazon.jsii.Builder<DistributedMapProps>
A builder for
DistributedMapProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofMapBaseProps.getComment()
Sets the value ofMapBaseProps.getInputPath()
itemBatcher
(ItemBatcher itemBatcher) Sets the value ofDistributedMapProps.getItemBatcher()
itemReader
(IItemReader itemReader) Sets the value ofDistributedMapProps.getItemReader()
itemSelector
(Map<String, ? extends Object> itemSelector) Sets the value ofMapBaseProps.getItemSelector()
Sets the value ofMapBaseProps.getItemsPath()
Sets the value ofDistributedMapProps.getLabel()
mapExecutionType
(StateMachineType mapExecutionType) Sets the value ofDistributedMapProps.getMapExecutionType()
maxConcurrency
(Number maxConcurrency) Sets the value ofMapBaseProps.getMaxConcurrency()
maxConcurrencyPath
(String maxConcurrencyPath) Sets the value ofMapBaseProps.getMaxConcurrencyPath()
outputPath
(String outputPath) Sets the value ofMapBaseProps.getOutputPath()
resultPath
(String resultPath) Sets the value ofMapBaseProps.getResultPath()
resultSelector
(Map<String, ? extends Object> resultSelector) Sets the value ofMapBaseProps.getResultSelector()
resultWriter
(ResultWriter resultWriter) Sets the value ofDistributedMapProps.getResultWriter()
Sets the value ofMapBaseProps.getStateName()
toleratedFailureCount
(Number toleratedFailureCount) Sets the value ofDistributedMapProps.getToleratedFailureCount()
toleratedFailureCountPath
(String toleratedFailureCountPath) Sets the value ofDistributedMapProps.getToleratedFailureCountPath()
toleratedFailurePercentage
(Number toleratedFailurePercentage) Sets the value ofDistributedMapProps.getToleratedFailurePercentage()
toleratedFailurePercentagePath
(String toleratedFailurePercentagePath) Sets the value ofDistributedMapProps.getToleratedFailurePercentagePath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
itemBatcher
Sets the value ofDistributedMapProps.getItemBatcher()
- Parameters:
itemBatcher
- Specifies to process a group of items in a single child workflow execution.- Returns:
this
-
itemReader
Sets the value ofDistributedMapProps.getItemReader()
- Parameters:
itemReader
- ItemReader. Configuration for where to read items dataset in S3 to iterate- Returns:
this
-
label
Sets the value ofDistributedMapProps.getLabel()
- Parameters:
label
- Label. Unique name for the Distributed Map state added to each Map Run- Returns:
this
-
mapExecutionType
@Stability(Stable) public DistributedMapProps.Builder mapExecutionType(StateMachineType mapExecutionType) Sets the value ofDistributedMapProps.getMapExecutionType()
- Parameters:
mapExecutionType
- MapExecutionType. The execution type of the distributed map stateThis property overwrites ProcessorConfig.executionType
- Returns:
this
-
resultWriter
Sets the value ofDistributedMapProps.getResultWriter()
- Parameters:
resultWriter
- Configuration for S3 location in which to save Map Run results.- Returns:
this
-
toleratedFailureCount
@Stability(Stable) public DistributedMapProps.Builder toleratedFailureCount(Number toleratedFailureCount) Sets the value ofDistributedMapProps.getToleratedFailureCount()
- Parameters:
toleratedFailureCount
- ToleratedFailureCount. Number of failed items to tolerate in a Map Run, as static number- Returns:
this
-
toleratedFailureCountPath
@Stability(Stable) public DistributedMapProps.Builder toleratedFailureCountPath(String toleratedFailureCountPath) Sets the value ofDistributedMapProps.getToleratedFailureCountPath()
- Parameters:
toleratedFailureCountPath
- ToleratedFailureCountPath. Number of failed items to tolerate in a Map Run, as JsonPath- Returns:
this
-
toleratedFailurePercentage
@Stability(Stable) public DistributedMapProps.Builder toleratedFailurePercentage(Number toleratedFailurePercentage) Sets the value ofDistributedMapProps.getToleratedFailurePercentage()
- Parameters:
toleratedFailurePercentage
- ToleratedFailurePercentage. Percentage of failed items to tolerate in a Map Run, as static number- Returns:
this
-
toleratedFailurePercentagePath
@Stability(Stable) public DistributedMapProps.Builder toleratedFailurePercentagePath(String toleratedFailurePercentagePath) Sets the value ofDistributedMapProps.getToleratedFailurePercentagePath()
- Parameters:
toleratedFailurePercentagePath
- ToleratedFailurePercentagePath. Percentage of failed items to tolerate in a Map Run, as JsonPath- Returns:
this
-
comment
Sets the value ofMapBaseProps.getComment()
- Parameters:
comment
- An optional description for this state.- Returns:
this
-
inputPath
Sets the value ofMapBaseProps.getInputPath()
- Parameters:
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 {}.- Returns:
this
-
itemSelector
@Stability(Stable) public DistributedMapProps.Builder itemSelector(Map<String, ? extends Object> itemSelector) Sets the value ofMapBaseProps.getItemSelector()
- Parameters:
itemSelector
- The JSON that you want to override your default iteration input (mutually exclusive withparameters
).- Returns:
this
-
itemsPath
Sets the value ofMapBaseProps.getItemsPath()
- Parameters:
itemsPath
- JSONPath expression to select the array to iterate over.- Returns:
this
-
maxConcurrency
Sets the value ofMapBaseProps.getMaxConcurrency()
- Parameters:
maxConcurrency
- MaxConcurrency. An upper bound on the number of iterations you want running at once.- Returns:
this
-
maxConcurrencyPath
Sets the value ofMapBaseProps.getMaxConcurrencyPath()
- Parameters:
maxConcurrencyPath
- MaxConcurrencyPath. A JsonPath that specifies the maximum concurrency dynamically from the state input.- Returns:
this
-
outputPath
Sets the value ofMapBaseProps.getOutputPath()
- Parameters:
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 {}.- Returns:
this
-
resultPath
Sets the value ofMapBaseProps.getResultPath()
- Parameters:
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.- Returns:
this
-
resultSelector
@Stability(Stable) public DistributedMapProps.Builder resultSelector(Map<String, ? extends Object> resultSelector) Sets the value ofMapBaseProps.getResultSelector()
- Parameters:
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.- Returns:
this
-
stateName
Sets the value ofMapBaseProps.getStateName()
- Parameters:
stateName
- Optional name for this state.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DistributedMapProps>
- Returns:
- a new instance of
DistributedMapProps
- Throws:
NullPointerException
- if any required attribute was not provided
-