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