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
Constructors -
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()queryLanguage(QueryLanguage queryLanguage) Sets the value ofStateMachineProps.getQueryLanguage()removalPolicy(RemovalPolicy removalPolicy) Sets the value ofStateMachineProps.getRemovalPolicy()<T1 extends IRoleRef & IGrantable>
StateMachineProps.Builderrole(T1 role) 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
-
queryLanguage
Sets the value ofStateMachineProps.getQueryLanguage()- Parameters:
queryLanguage- The name of the query language used by the state machine. If the state does not contain aqueryLanguagefield, then it will use the query language specified in thisqueryLanguagefield.- Returns:
this
-
removalPolicy
Sets the value ofStateMachineProps.getRemovalPolicy()- Parameters:
removalPolicy- The removal policy to apply to state machine.- Returns:
this
-
role
@Stability(Stable) public <T1 extends IRoleRef & IGrantable> StateMachineProps.Builder role(T1 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:
buildin interfacesoftware.amazon.jsii.Builder<StateMachineProps>- Returns:
- a new instance of
StateMachineProps - Throws:
NullPointerException- if any required attribute was not provided
-