Interface RouteToTargetAction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteToTargetAction.Builder,,RouteToTargetAction> SdkBuilder<RouteToTargetAction.Builder,,RouteToTargetAction> SdkPojo
- Enclosing class:
RouteToTargetAction
@Mutable
@NotThreadSafe
public static interface RouteToTargetAction.Builder
extends SdkPojo, CopyableBuilder<RouteToTargetAction.Builder,RouteToTargetAction>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RouteToTargetAction.BuilderstaticRoute(Consumer<StaticRoute.Builder> staticRoute) A static route that sends all matching requests to a single target.staticRoute(StaticRoute staticRoute) A static route that sends all matching requests to a single target.default RouteToTargetAction.BuilderweightedRoute(Consumer<WeightedRoute.Builder> weightedRoute) A weighted route that splits traffic between multiple targets.weightedRoute(WeightedRoute weightedRoute) A weighted route that splits traffic between multiple targets.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
staticRoute
A static route that sends all matching requests to a single target.
- Parameters:
staticRoute- A static route that sends all matching requests to a single target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
staticRoute
A static route that sends all matching requests to a single target.
This is a convenience method that creates an instance of theStaticRoute.Builderavoiding the need to create one manually viaStaticRoute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostaticRoute(StaticRoute).- Parameters:
staticRoute- a consumer that will call methods onStaticRoute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
weightedRoute
A weighted route that splits traffic between multiple targets.
- Parameters:
weightedRoute- A weighted route that splits traffic between multiple targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weightedRoute
A weighted route that splits traffic between multiple targets.
This is a convenience method that creates an instance of theWeightedRoute.Builderavoiding the need to create one manually viaWeightedRoute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toweightedRoute(WeightedRoute).- Parameters:
weightedRoute- a consumer that will call methods onWeightedRoute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-