Class CfnStateMachineAlias.RoutingConfigurationVersionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.CfnStateMachineAlias.RoutingConfigurationVersionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStateMachineAlias.RoutingConfigurationVersionProperty>
- Enclosing interface:
CfnStateMachineAlias.RoutingConfigurationVersionProperty
@Stability(Stable)
public static final class CfnStateMachineAlias.RoutingConfigurationVersionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStateMachineAlias.RoutingConfigurationVersionProperty>
A builder for
CfnStateMachineAlias.RoutingConfigurationVersionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.stateMachineVersionArn
(String stateMachineVersionArn) Sets the value ofCfnStateMachineAlias.RoutingConfigurationVersionProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stateMachineVersionArn
@Stability(Stable) public CfnStateMachineAlias.RoutingConfigurationVersionProperty.Builder stateMachineVersionArn(String stateMachineVersionArn) Sets the value ofCfnStateMachineAlias.RoutingConfigurationVersionProperty.getStateMachineVersionArn()
- Parameters:
stateMachineVersionArn
- The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration. This parameter is required. 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 CfnStateMachineAlias.RoutingConfigurationVersionProperty.Builder weight(Number weight) Sets the value ofCfnStateMachineAlias.RoutingConfigurationVersionProperty.getWeight()
- Parameters:
weight
- The percentage of traffic you want to route to the state machine version. This parameter is required. The sum of the weights in the routing configuration must be equal to 100.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStateMachineAlias.RoutingConfigurationVersionProperty>
- Returns:
- a new instance of
CfnStateMachineAlias.RoutingConfigurationVersionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-