@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HttpRouteAction extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the traffic distribution requirements for matched HTTP requests.
Constructor and Description |
---|
HttpRouteAction() |
Modifier and Type | Method and Description |
---|---|
HttpRouteAction |
clone() |
boolean |
equals(Object obj) |
List<WeightedTarget> |
getWeightedTargets()
The targets that traffic is routed to when a request matches the route.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setWeightedTargets(Collection<WeightedTarget> weightedTargets)
The targets that traffic is routed to when a request matches the route.
|
String |
toString()
Returns a string representation of this object.
|
HttpRouteAction |
withWeightedTargets(Collection<WeightedTarget> weightedTargets)
The targets that traffic is routed to when a request matches the route.
|
HttpRouteAction |
withWeightedTargets(WeightedTarget... weightedTargets)
The targets that traffic is routed to when a request matches the route.
|
public List<WeightedTarget> getWeightedTargets()
The targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
public void setWeightedTargets(Collection<WeightedTarget> weightedTargets)
The targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
weightedTargets
- The targets that traffic is routed to when a request matches the route. You can specify one or more
targets and their relative weights with which to distribute traffic.public HttpRouteAction withWeightedTargets(WeightedTarget... weightedTargets)
The targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
NOTE: This method appends the values to the existing list (if any). Use
setWeightedTargets(java.util.Collection)
or withWeightedTargets(java.util.Collection)
if you
want to override the existing values.
weightedTargets
- The targets that traffic is routed to when a request matches the route. You can specify one or more
targets and their relative weights with which to distribute traffic.public HttpRouteAction withWeightedTargets(Collection<WeightedTarget> weightedTargets)
The targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights with which to distribute traffic.
weightedTargets
- The targets that traffic is routed to when a request matches the route. You can specify one or more
targets and their relative weights with which to distribute traffic.public String toString()
toString
in class Object
Object.toString()
public HttpRouteAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.