public static final class CfnRoute.HttpRouteActionProperty.Builder
extends java.lang.Object
CfnRoute.HttpRouteActionProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRoute.HttpRouteActionProperty |
build()
Builds the configured instance.
|
CfnRoute.HttpRouteActionProperty.Builder |
weightedTargets(IResolvable weightedTargets)
Sets the value of
CfnRoute.HttpRouteActionProperty.getWeightedTargets() |
CfnRoute.HttpRouteActionProperty.Builder |
weightedTargets(java.util.List<? extends java.lang.Object> weightedTargets)
Sets the value of
CfnRoute.HttpRouteActionProperty.getWeightedTargets() |
public CfnRoute.HttpRouteActionProperty.Builder weightedTargets(IResolvable weightedTargets)
CfnRoute.HttpRouteActionProperty.getWeightedTargets()
weightedTargets
- An object that represents the targets that traffic is routed to when a request matches the route. This parameter is required.this
public CfnRoute.HttpRouteActionProperty.Builder weightedTargets(java.util.List<? extends java.lang.Object> weightedTargets)
CfnRoute.HttpRouteActionProperty.getWeightedTargets()
weightedTargets
- An object that represents the targets that traffic is routed to when a request matches the route. This parameter is required.this
public CfnRoute.HttpRouteActionProperty build()
CfnRoute.HttpRouteActionProperty
java.lang.NullPointerException
- if any required attribute was not provided