Class CfnGatewayRulePropsMixin.WeightedRouteProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrockagentcore.CfnGatewayRulePropsMixin.WeightedRouteProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayRulePropsMixin.WeightedRouteProperty>
- Enclosing interface:
CfnGatewayRulePropsMixin.WeightedRouteProperty
@Stability(Stable)
public static final class CfnGatewayRulePropsMixin.WeightedRouteProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayRulePropsMixin.WeightedRouteProperty>
A builder for
CfnGatewayRulePropsMixin.WeightedRouteProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.trafficSplit(List<? extends Object> trafficSplit) Sets the value ofCfnGatewayRulePropsMixin.WeightedRouteProperty.getTrafficSplit()trafficSplit(IResolvable trafficSplit) Sets the value ofCfnGatewayRulePropsMixin.WeightedRouteProperty.getTrafficSplit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
trafficSplit
@Stability(Stable) public CfnGatewayRulePropsMixin.WeightedRouteProperty.Builder trafficSplit(IResolvable trafficSplit) Sets the value ofCfnGatewayRulePropsMixin.WeightedRouteProperty.getTrafficSplit()- Parameters:
trafficSplit- the value to be set.- Returns:
this
-
trafficSplit
@Stability(Stable) public CfnGatewayRulePropsMixin.WeightedRouteProperty.Builder trafficSplit(List<? extends Object> trafficSplit) Sets the value ofCfnGatewayRulePropsMixin.WeightedRouteProperty.getTrafficSplit()- Parameters:
trafficSplit- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGatewayRulePropsMixin.WeightedRouteProperty>- Returns:
- a new instance of
CfnGatewayRulePropsMixin.WeightedRouteProperty - Throws:
NullPointerException- if any required attribute was not provided
-