@Generated(value="software.amazon.awssdk:codegen") public final class WeightedTargetGroup extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WeightedTargetGroup.Builder,WeightedTargetGroup>
Describes the weight of a target group.
| Modifier and Type | Class and Description |
|---|---|
static interface |
WeightedTargetGroup.Builder |
| Modifier and Type | Method and Description |
|---|---|
static WeightedTargetGroup.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends WeightedTargetGroup.Builder> |
serializableBuilderClass() |
String |
targetGroupIdentifier()
The ID or Amazon Resource Name (ARN) of the target group.
|
WeightedTargetGroup.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
weight()
Only required if you specify multiple target groups for a forward action.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String targetGroupIdentifier()
The ID or Amazon Resource Name (ARN) of the target group.
public final 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.
public WeightedTargetGroup.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<WeightedTargetGroup.Builder,WeightedTargetGroup>public static WeightedTargetGroup.Builder builder()
public static Class<? extends WeightedTargetGroup.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.