Interface ForwardAction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ForwardAction.Builder,ForwardAction>,SdkBuilder<ForwardAction.Builder,ForwardAction>,SdkPojo
- Enclosing class:
- ForwardAction
public static interface ForwardAction.Builder extends SdkPojo, CopyableBuilder<ForwardAction.Builder,ForwardAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ForwardAction.BuildertargetGroups(Collection<WeightedTargetGroup> targetGroups)The target groups.ForwardAction.BuildertargetGroups(Consumer<WeightedTargetGroup.Builder>... targetGroups)The target groups.ForwardAction.BuildertargetGroups(WeightedTargetGroup... targetGroups)The target groups.-
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
-
targetGroups
ForwardAction.Builder targetGroups(Collection<WeightedTargetGroup> targetGroups)
The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of traffic will go to that target group.
- Parameters:
targetGroups- The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of traffic will go to that target group.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetGroups
ForwardAction.Builder targetGroups(WeightedTargetGroup... targetGroups)
The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of traffic will go to that target group.
- Parameters:
targetGroups- The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of traffic will go to that target group.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetGroups
ForwardAction.Builder targetGroups(Consumer<WeightedTargetGroup.Builder>... targetGroups)
The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of traffic will go to that target group.
This is a convenience method that creates an instance of theWeightedTargetGroup.Builderavoiding the need to create one manually viaWeightedTargetGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#targetGroups(List.) - Parameters:
targetGroups- a consumer that will call methods onWeightedTargetGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#targetGroups(java.util.Collection)
-
-