Class CfnStateMachineVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.CfnStateMachineVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStateMachineVersionProps>
- Enclosing interface:
CfnStateMachineVersionProps
@Stability(Stable)
public static final class CfnStateMachineVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStateMachineVersionProps>
A builder for
CfnStateMachineVersionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnStateMachineVersionProps.getDescription()
stateMachineArn
(String stateMachineArn) Sets the value ofCfnStateMachineVersionProps.getStateMachineArn()
stateMachineRevisionId
(String stateMachineRevisionId) Sets the value ofCfnStateMachineVersionProps.getStateMachineRevisionId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stateMachineArn
@Stability(Stable) public CfnStateMachineVersionProps.Builder stateMachineArn(String stateMachineArn) Sets the value ofCfnStateMachineVersionProps.getStateMachineArn()
- Parameters:
stateMachineArn
- The Amazon Resource Name (ARN) of the state machine. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnStateMachineVersionProps.getDescription()
- Parameters:
description
- An optional description of the state machine version.- Returns:
this
-
stateMachineRevisionId
@Stability(Stable) public CfnStateMachineVersionProps.Builder stateMachineRevisionId(String stateMachineRevisionId) Sets the value ofCfnStateMachineVersionProps.getStateMachineRevisionId()
- Parameters:
stateMachineRevisionId
- Identifier for a state machine revision, which is an immutable, read-only snapshot of a state machine’s definition and configuration. Only publish the state machine version if the current state machine's revision ID matches the specified ID. Use this option to avoid publishing a version if the state machine has changed since you last updated it.To specify the initial state machine revision, set the value as
INITIAL
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStateMachineVersionProps>
- Returns:
- a new instance of
CfnStateMachineVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-