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