Interface GrpcRouteAction.Builder
- All Superinterfaces:
 Buildable,CopyableBuilder<GrpcRouteAction.Builder,,GrpcRouteAction> SdkBuilder<GrpcRouteAction.Builder,,GrpcRouteAction> SdkPojo
- Enclosing class:
 GrpcRouteAction
public static interface GrpcRouteAction.Builder
extends SdkPojo, CopyableBuilder<GrpcRouteAction.Builder,GrpcRouteAction> 
- 
Method Summary
Modifier and TypeMethodDescriptionweightedTargets(Collection<WeightedTarget> weightedTargets) An object that represents the targets that traffic is routed to when a request matches the route.weightedTargets(Consumer<WeightedTarget.Builder>... weightedTargets) An object that represents the targets that traffic is routed to when a request matches the route.weightedTargets(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
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
- 
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
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
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 toweightedTargets(List<WeightedTarget>).- 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:
 
 
 -