Class WeightedTargetGroup
- java.lang.Object
-
- software.amazon.awssdk.services.vpclattice.model.WeightedTargetGroup
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<WeightedTargetGroup.Builder,WeightedTargetGroup>
@Generated("software.amazon.awssdk:codegen") public final class WeightedTargetGroup extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WeightedTargetGroup.Builder,WeightedTargetGroup>
Describes the weight of a target group.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWeightedTargetGroup.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WeightedTargetGroup.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends WeightedTargetGroup.Builder>serializableBuilderClass()StringtargetGroupIdentifier()The ID or Amazon Resource Name (ARN) of the target group.WeightedTargetGroup.BuildertoBuilder()StringtoString()Returns a string representation of this object.Integerweight()Only required if you specify multiple target groups for a forward action.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
targetGroupIdentifier
public final String targetGroupIdentifier()
The ID or Amazon Resource Name (ARN) of the target group.
- Returns:
- The ID or Amazon Resource Name (ARN) of the target group.
-
weight
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.
- Returns:
- 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.
-
toBuilder
public WeightedTargetGroup.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<WeightedTargetGroup.Builder,WeightedTargetGroup>
-
builder
public static WeightedTargetGroup.Builder builder()
-
serializableBuilderClass
public static Class<? extends WeightedTargetGroup.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-