@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WeightedTargetGroup extends Object implements Serializable, Cloneable, StructuredPojo
Describes the weight of a target group.
Constructor and Description |
---|
WeightedTargetGroup() |
Modifier and Type | Method and Description |
---|---|
WeightedTargetGroup |
clone() |
boolean |
equals(Object obj) |
String |
getTargetGroupIdentifier()
The ID or Amazon Resource Name (ARN) of the target group.
|
Integer |
getWeight()
Only required if you specify multiple target groups for a forward action.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTargetGroupIdentifier(String targetGroupIdentifier)
The ID or Amazon Resource Name (ARN) of the target group.
|
void |
setWeight(Integer weight)
Only required if you specify multiple target groups for a forward action.
|
String |
toString()
Returns a string representation of this object.
|
WeightedTargetGroup |
withTargetGroupIdentifier(String targetGroupIdentifier)
The ID or Amazon Resource Name (ARN) of the target group.
|
WeightedTargetGroup |
withWeight(Integer weight)
Only required if you specify multiple target groups for a forward action.
|
public void setTargetGroupIdentifier(String targetGroupIdentifier)
The ID or Amazon Resource Name (ARN) of the target group.
targetGroupIdentifier
- The ID or Amazon Resource Name (ARN) of the target group.public String getTargetGroupIdentifier()
The ID or Amazon Resource Name (ARN) of the target group.
public WeightedTargetGroup withTargetGroupIdentifier(String targetGroupIdentifier)
The ID or Amazon Resource Name (ARN) of the target group.
targetGroupIdentifier
- The ID or Amazon Resource Name (ARN) of the target group.public void setWeight(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.
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 Integer getWeight()
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 withWeight(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.
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 String toString()
toString
in class Object
Object.toString()
public WeightedTargetGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.