@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ForwardAction extends Object implements Serializable, Cloneable, StructuredPojo
Describes a forward action. You can use forward actions to route requests to one or more target groups.
Constructor and Description |
---|
ForwardAction() |
Modifier and Type | Method and Description |
---|---|
ForwardAction |
clone() |
boolean |
equals(Object obj) |
List<WeightedTargetGroup> |
getTargetGroups()
The target groups.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTargetGroups(Collection<WeightedTargetGroup> targetGroups)
The target groups.
|
String |
toString()
Returns a string representation of this object.
|
ForwardAction |
withTargetGroups(Collection<WeightedTargetGroup> targetGroups)
The target groups.
|
ForwardAction |
withTargetGroups(WeightedTargetGroup... targetGroups)
The target groups.
|
public List<WeightedTargetGroup> getTargetGroups()
The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of the traffic goes to that target group.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of the traffic goes to that target group.
public void setTargetGroups(Collection<WeightedTargetGroup> targetGroups)
The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of the traffic goes to that target group.
targetGroups
- The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward
actions, you can assign a weight that controls the prioritization and selection of each target group. This
means that requests are distributed to individual target groups based on their weights. For example, if
two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of the traffic goes to that target group.
public ForwardAction withTargetGroups(WeightedTargetGroup... targetGroups)
The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of the traffic goes to that target group.
NOTE: This method appends the values to the existing list (if any). Use
setTargetGroups(java.util.Collection)
or withTargetGroups(java.util.Collection)
if you want to
override the existing values.
targetGroups
- The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward
actions, you can assign a weight that controls the prioritization and selection of each target group. This
means that requests are distributed to individual target groups based on their weights. For example, if
two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of the traffic goes to that target group.
public ForwardAction withTargetGroups(Collection<WeightedTargetGroup> targetGroups)
The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of the traffic goes to that target group.
targetGroups
- The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward
actions, you can assign a weight that controls the prioritization and selection of each target group. This
means that requests are distributed to individual target groups based on their weights. For example, if
two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of the traffic goes to that target group.
public String toString()
toString
in class Object
Object.toString()
public ForwardAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.