Class CfnRoute.HttpRouteActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnRoute.HttpRouteActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoute.HttpRouteActionProperty>
- Enclosing interface:
CfnRoute.HttpRouteActionProperty
@Stability(Stable)
public static final class CfnRoute.HttpRouteActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoute.HttpRouteActionProperty>
A builder for
CfnRoute.HttpRouteActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.weightedTargets
(List<? extends Object> weightedTargets) Sets the value ofCfnRoute.HttpRouteActionProperty.getWeightedTargets()
weightedTargets
(IResolvable weightedTargets) Sets the value ofCfnRoute.HttpRouteActionProperty.getWeightedTargets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
weightedTargets
@Stability(Stable) public CfnRoute.HttpRouteActionProperty.Builder weightedTargets(IResolvable weightedTargets) Sets the value ofCfnRoute.HttpRouteActionProperty.getWeightedTargets()
- Parameters:
weightedTargets
- An object that represents the targets that traffic is routed to when a request matches the route. This parameter is required.- Returns:
this
-
weightedTargets
@Stability(Stable) public CfnRoute.HttpRouteActionProperty.Builder weightedTargets(List<? extends Object> weightedTargets) Sets the value ofCfnRoute.HttpRouteActionProperty.getWeightedTargets()
- Parameters:
weightedTargets
- An object that represents the targets that traffic is routed to when a request matches the route. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRoute.HttpRouteActionProperty>
- Returns:
- a new instance of
CfnRoute.HttpRouteActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-