public static final class CfnRoute.GrpcRouteActionProperty.Builder
extends java.lang.Object
CfnRoute.GrpcRouteActionProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRoute.GrpcRouteActionProperty |
build()
Builds the configured instance.
|
CfnRoute.GrpcRouteActionProperty.Builder |
weightedTargets(IResolvable weightedTargets)
Sets the value of
CfnRoute.GrpcRouteActionProperty.getWeightedTargets() |
CfnRoute.GrpcRouteActionProperty.Builder |
weightedTargets(java.util.List<? extends java.lang.Object> weightedTargets)
Sets the value of
CfnRoute.GrpcRouteActionProperty.getWeightedTargets() |
public CfnRoute.GrpcRouteActionProperty.Builder weightedTargets(IResolvable weightedTargets)
CfnRoute.GrpcRouteActionProperty.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.GrpcRouteActionProperty.Builder weightedTargets(java.util.List<? extends java.lang.Object> weightedTargets)
CfnRoute.GrpcRouteActionProperty.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.GrpcRouteActionProperty build()
CfnRoute.GrpcRouteActionProperty
java.lang.NullPointerException
- if any required attribute was not provided