Class AfterwardsOptions.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.AfterwardsOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AfterwardsOptions>
- Enclosing interface:
AfterwardsOptions
@Stability(Stable)
public static final class AfterwardsOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AfterwardsOptions>
A builder for
AfterwardsOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.includeErrorHandlers
(Boolean includeErrorHandlers) Sets the value ofAfterwardsOptions.getIncludeErrorHandlers()
includeOtherwise
(Boolean includeOtherwise) Sets the value ofAfterwardsOptions.getIncludeOtherwise()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
includeErrorHandlers
@Stability(Stable) public AfterwardsOptions.Builder includeErrorHandlers(Boolean includeErrorHandlers) Sets the value ofAfterwardsOptions.getIncludeErrorHandlers()
- Parameters:
includeErrorHandlers
- Whether to include error handling states. If this is true, all states which are error handlers (added through 'onError') and states reachable via error handlers will be included as well.- Returns:
this
-
includeOtherwise
Sets the value ofAfterwardsOptions.getIncludeOtherwise()
- Parameters:
includeOtherwise
- Whether to include the default/otherwise transition for the current Choice state. If this is true and the current Choice does not have a default outgoing transition, one will be added included when .next() is called on the chain.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AfterwardsOptions>
- Returns:
- a new instance of
AfterwardsOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-