public static interface HttpRouteAction.Builder extends SdkPojo, CopyableBuilder<HttpRouteAction.Builder,HttpRouteAction>
Modifier and Type | Method and Description |
---|---|
HttpRouteAction.Builder |
weightedTargets(Collection<WeightedTarget> weightedTargets)
The targets that traffic is routed to when a request matches the route.
|
HttpRouteAction.Builder |
weightedTargets(Consumer<WeightedTarget.Builder>... weightedTargets)
The targets that traffic is routed to when a request matches the route.
|
HttpRouteAction.Builder |
weightedTargets(WeightedTarget... weightedTargets)
The targets that traffic is routed to when a request matches the route.
|
copy
applyMutation, build
HttpRouteAction.Builder weightedTargets(Collection<WeightedTarget> weightedTargets)
The targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
weightedTargets
- The targets that traffic is routed to when a request matches the route. You can specify one or more
targets and their relative weights with which to distribute traffic.HttpRouteAction.Builder weightedTargets(WeightedTarget... weightedTargets)
The targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
weightedTargets
- The targets that traffic is routed to when a request matches the route. You can specify one or more
targets and their relative weights with which to distribute traffic.HttpRouteAction.Builder weightedTargets(Consumer<WeightedTarget.Builder>... weightedTargets)
The targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #weightedTargets(List)
.weightedTargets
- a consumer that will call methods on List.Builder
#weightedTargets(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.