Interface TcpRouteAction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TcpRouteAction.Builder,TcpRouteAction>,SdkBuilder<TcpRouteAction.Builder,TcpRouteAction>,SdkPojo
- Enclosing class:
- TcpRouteAction
public static interface TcpRouteAction.Builder extends SdkPojo, CopyableBuilder<TcpRouteAction.Builder,TcpRouteAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TcpRouteAction.BuilderweightedTargets(Collection<WeightedTarget> weightedTargets)An object that represents the targets that traffic is routed to when a request matches the route.TcpRouteAction.BuilderweightedTargets(Consumer<WeightedTarget.Builder>... weightedTargets)An object that represents the targets that traffic is routed to when a request matches the route.TcpRouteAction.BuilderweightedTargets(WeightedTarget... weightedTargets)An object that represents the targets that traffic is routed to when a request matches the route.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
weightedTargets
TcpRouteAction.Builder weightedTargets(Collection<WeightedTarget> weightedTargets)
An object that represents the targets that traffic is routed to when a request matches the route.
- Parameters:
weightedTargets- An object that represents the targets that traffic is routed to when a request matches the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weightedTargets
TcpRouteAction.Builder weightedTargets(WeightedTarget... weightedTargets)
An object that represents the targets that traffic is routed to when a request matches the route.
- Parameters:
weightedTargets- An object that represents the targets that traffic is routed to when a request matches the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weightedTargets
TcpRouteAction.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.Builderavoiding the need to create one manually viaWeightedTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#weightedTargets(List.) - Parameters:
weightedTargets- a consumer that will call methods onWeightedTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#weightedTargets(java.util.Collection)
-
-