Class CfnStateMachineAliasPropsMixin.RoutingConfigurationVersionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.stepfunctions.CfnStateMachineAliasPropsMixin.RoutingConfigurationVersionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStateMachineAliasPropsMixin.RoutingConfigurationVersionProperty>
- Enclosing interface:
CfnStateMachineAliasPropsMixin.RoutingConfigurationVersionProperty
@Stability(Stable)
public static final class CfnStateMachineAliasPropsMixin.RoutingConfigurationVersionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStateMachineAliasPropsMixin.RoutingConfigurationVersionProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.stateMachineVersionArn(String stateMachineVersionArn)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stateMachineVersionArn
@Stability(Stable) public CfnStateMachineAliasPropsMixin.RoutingConfigurationVersionProperty.Builder stateMachineVersionArn(String stateMachineVersionArn) Sets the value ofCfnStateMachineAliasPropsMixin.RoutingConfigurationVersionProperty.getStateMachineVersionArn()- Parameters:
stateMachineVersionArn- The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration. If you specify the ARN of a second version, it must belong to the same state machine as the first version.- Returns:
this
-
weight
@Stability(Stable) public CfnStateMachineAliasPropsMixin.RoutingConfigurationVersionProperty.Builder weight(Number weight) - Parameters:
weight- The percentage of traffic you want to route to the state machine version. The sum of the weights in the routing configuration must be equal to 100.- Returns:
this
-
build
@Stability(Stable) public CfnStateMachineAliasPropsMixin.RoutingConfigurationVersionProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStateMachineAliasPropsMixin.RoutingConfigurationVersionProperty>- Returns:
- a new instance of
CfnStateMachineAliasPropsMixin.RoutingConfigurationVersionProperty - Throws:
NullPointerException- if any required attribute was not provided
-