public static interface GrpcRouteAction.Builder extends SdkPojo, CopyableBuilder<GrpcRouteAction.Builder,GrpcRouteAction>
| Modifier and Type | Method and Description |
|---|---|
GrpcRouteAction.Builder |
weightedTargets(Collection<WeightedTarget> weightedTargets)
An object that represents the targets that traffic is routed to when a request matches the route.
|
GrpcRouteAction.Builder |
weightedTargets(Consumer<WeightedTarget.Builder>... weightedTargets)
An object that represents the targets that traffic is routed to when a request matches the route.
|
GrpcRouteAction.Builder |
weightedTargets(WeightedTarget... weightedTargets)
An object that represents the targets that traffic is routed to when a request matches the route.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildGrpcRouteAction.Builder weightedTargets(Collection<WeightedTarget> weightedTargets)
An object that represents the targets that traffic is routed to when a request matches the route.
weightedTargets - An object that represents the targets that traffic is routed to when a request matches the route.GrpcRouteAction.Builder weightedTargets(WeightedTarget... weightedTargets)
An object that represents the targets that traffic is routed to when a request matches the route.
weightedTargets - An object that represents the targets that traffic is routed to when a request matches the route.GrpcRouteAction.Builder weightedTargets(Consumer<WeightedTarget.Builder>... weightedTargets)
An object that represents the targets that traffic is routed to when a request matches the route.
This is a convenience method that creates an instance of theWeightedTarget.Builder avoiding the need to create one
manually via WeightedTarget.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #weightedTargets(List.
weightedTargets - a consumer that will call methods on
WeightedTarget.Builder#weightedTargets(java.util.Collection) Copyright © 2023. All rights reserved.