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