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.Sets the value ofStateMachineProps.getComment()
definition
(IChainable definition) Deprecated.use definitionBody: DefinitionBody.fromChainable()definitionBody
(DefinitionBody definitionBody) Sets the value ofStateMachineProps.getDefinitionBody()
definitionSubstitutions
(Map<String, String> definitionSubstitutions) Sets the value ofStateMachineProps.getDefinitionSubstitutions()
encryptionConfiguration
(EncryptionConfiguration encryptionConfiguration) Sets the value ofStateMachineProps.getEncryptionConfiguration()
logs
(LogOptions logs) Sets the value ofStateMachineProps.getLogs()
removalPolicy
(RemovalPolicy removalPolicy) Sets the value ofStateMachineProps.getRemovalPolicy()
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
-
comment
Sets the value ofStateMachineProps.getComment()
- Parameters:
comment
- Comment that describes this state machine.- Returns:
this
-
definition
@Stability(Deprecated) @Deprecated public StateMachineProps.Builder definition(IChainable definition) Deprecated.use definitionBody: DefinitionBody.fromChainable()Sets the value ofStateMachineProps.getDefinition()
- Parameters:
definition
- Definition for this state machine.- Returns:
this
-
definitionBody
Sets the value ofStateMachineProps.getDefinitionBody()
- Parameters:
definitionBody
- Definition for this state machine.- Returns:
this
-
definitionSubstitutions
@Stability(Stable) public StateMachineProps.Builder definitionSubstitutions(Map<String, String> definitionSubstitutions) Sets the value ofStateMachineProps.getDefinitionSubstitutions()
- Parameters:
definitionSubstitutions
- substitutions for the definition body as a key-value map.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public StateMachineProps.Builder encryptionConfiguration(EncryptionConfiguration encryptionConfiguration) Sets the value ofStateMachineProps.getEncryptionConfiguration()
- Parameters:
encryptionConfiguration
- Configures server-side encryption of the state machine definition and execution history.- Returns:
this
-
logs
Sets the value ofStateMachineProps.getLogs()
- Parameters:
logs
- Defines what execution history events are logged and where they are logged.- Returns:
this
-
removalPolicy
Sets the value ofStateMachineProps.getRemovalPolicy()
- Parameters:
removalPolicy
- The removal policy to apply to state machine.- 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
-