Class StateMachineProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.StateMachineProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StateMachineProps>
- Enclosing interface:
StateMachineProps
@Stability(Stable)
public static final class StateMachineProps.Builder
extends Object
implements software.amazon.jsii.Builder<StateMachineProps>
A builder for
StateMachineProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.definition
(IChainable definition) Sets the value ofStateMachineProps.getDefinition()
logs
(LogOptions logs) Sets the value ofStateMachineProps.getLogs()
Sets the value ofStateMachineProps.getRole()
stateMachineName
(String stateMachineName) Sets the value ofStateMachineProps.getStateMachineName()
stateMachineType
(StateMachineType stateMachineType) Sets the value ofStateMachineProps.getStateMachineType()
Sets the value ofStateMachineProps.getTimeout()
tracingEnabled
(Boolean tracingEnabled) Sets the value ofStateMachineProps.getTracingEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
definition
Sets the value ofStateMachineProps.getDefinition()
- Parameters:
definition
- Definition for this state machine. This parameter is required.- Returns:
this
-
logs
Sets the value ofStateMachineProps.getLogs()
- Parameters:
logs
- Defines what execution history events are logged and where they are logged.- Returns:
this
-
role
Sets the value ofStateMachineProps.getRole()
- Parameters:
role
- The execution role for the state machine service.- Returns:
this
-
stateMachineName
Sets the value ofStateMachineProps.getStateMachineName()
- Parameters:
stateMachineName
- A name for the state machine.- Returns:
this
-
stateMachineType
@Stability(Stable) public StateMachineProps.Builder stateMachineType(StateMachineType stateMachineType) Sets the value ofStateMachineProps.getStateMachineType()
- Parameters:
stateMachineType
- Type of the state machine.- Returns:
this
-
timeout
Sets the value ofStateMachineProps.getTimeout()
- Parameters:
timeout
- Maximum run time for this state machine.- Returns:
this
-
tracingEnabled
Sets the value ofStateMachineProps.getTracingEnabled()
- Parameters:
tracingEnabled
- Specifies whether Amazon X-Ray tracing is enabled for this state machine.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<StateMachineProps>
- Returns:
- a new instance of
StateMachineProps
- Throws:
NullPointerException
- if any required attribute was not provided
-