@Generated(value="software.amazon.awssdk:codegen") public final class WeightedTarget extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WeightedTarget.Builder,WeightedTarget>
An object that represents a target and its relative weight. Traffic is distributed across targets according to their relative weight. For example, a weighted target with a relative weight of 50 receives five times as much traffic as one with a relative weight of 10. The total weight for all targets combined must be less than or equal to 100.
| Modifier and Type | Class and Description |
|---|---|
static interface |
WeightedTarget.Builder |
| Modifier and Type | Method and Description |
|---|---|
static WeightedTarget.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 WeightedTarget.Builder> |
serializableBuilderClass() |
WeightedTarget.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
virtualNode()
The virtual node to associate with the weighted target.
|
Integer |
weight()
The relative weight of the weighted target.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String virtualNode()
The virtual node to associate with the weighted target.
public final Integer weight()
The relative weight of the weighted target.
public WeightedTarget.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<WeightedTarget.Builder,WeightedTarget>public static WeightedTarget.Builder builder()
public static Class<? extends WeightedTarget.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.