@Generated(value="software.amazon.awssdk:codegen") public final class WeightedTarget extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WeightedTarget.Builder,WeightedTarget>
An object representing 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.
Modifier and Type | Class and Description |
---|---|
static interface |
WeightedTarget.Builder |
Modifier and Type | Method and Description |
---|---|
static WeightedTarget.Builder |
builder() |
boolean |
equals(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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
virtualNode()
The virtual node to associate with the weighted target.
|
Integer |
weight()
The relative weight of the weighted target.
|
copy
public String virtualNode()
The virtual node to associate with the weighted target.
public Integer weight()
The relative weight of the weighted target.
public WeightedTarget.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<WeightedTarget.Builder,WeightedTarget>
public static WeightedTarget.Builder builder()
public static Class<? extends WeightedTarget.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.