Interface WeightedTargetGroup.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<WeightedTargetGroup.Builder,WeightedTargetGroup>,SdkBuilder<WeightedTargetGroup.Builder,WeightedTargetGroup>,SdkPojo
- Enclosing class:
- WeightedTargetGroup
public static interface WeightedTargetGroup.Builder extends SdkPojo, CopyableBuilder<WeightedTargetGroup.Builder,WeightedTargetGroup>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WeightedTargetGroup.BuildertargetGroupIdentifier(String targetGroupIdentifier)The ID or Amazon Resource Name (ARN) of the target group.WeightedTargetGroup.Builderweight(Integer weight)Only required if you specify multiple target groups for a forward action.-
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
-
targetGroupIdentifier
WeightedTargetGroup.Builder targetGroupIdentifier(String targetGroupIdentifier)
The ID or Amazon Resource Name (ARN) of the target group.
- Parameters:
targetGroupIdentifier- The ID or Amazon Resource Name (ARN) of the target group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weight
WeightedTargetGroup.Builder weight(Integer weight)
Only required if you specify multiple target groups for a forward action. The "weight" determines how requests are distributed to the target group. For example, if you specify two target groups, each with a weight of 10, each target group receives half the requests. If you specify two target groups, one with a weight of 10 and the other with a weight of 20, the target group with a weight of 20 receives twice as many requests as the other target group. If there's only one target group specified, then the default value is 100.
- Parameters:
weight- Only required if you specify multiple target groups for a forward action. The "weight" determines how requests are distributed to the target group. For example, if you specify two target groups, each with a weight of 10, each target group receives half the requests. If you specify two target groups, one with a weight of 10 and the other with a weight of 20, the target group with a weight of 20 receives twice as many requests as the other target group. If there's only one target group specified, then the default value is 100.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-