Class FailProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.FailProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FailProps>
- Enclosing interface:
- FailProps
@Stability(Stable)
public static final class FailProps.Builder
extends Object
implements software.amazon.jsii.Builder<FailProps>
A builder for
FailProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofFailProps.getCause()Sets the value ofFailProps.getComment()Sets the value ofFailProps.getError()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cause
Sets the value ofFailProps.getCause()- Parameters:
cause- A description for the cause of the failure.- Returns:
this
-
comment
Sets the value ofFailProps.getComment()- Parameters:
comment- An optional description for this state.- Returns:
this
-
error
Sets the value ofFailProps.getError()- Parameters:
error- Error code used to represent this failure.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FailProps>- Returns:
- a new instance of
FailProps - Throws:
NullPointerException- if any required attribute was not provided
-