@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TcpRouteAction extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the traffic distribution requirements for matched TCP requests.
Constructor and Description |
---|
TcpRouteAction() |
Modifier and Type | Method and Description |
---|---|
TcpRouteAction |
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.
|
TcpRouteAction |
withWeightedTargets(Collection<WeightedTarget> weightedTargets)
The targets that traffic is routed to when a request matches the route.
|
TcpRouteAction |
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 to distribute traffic with.
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 to distribute traffic with.
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 to distribute traffic with.public TcpRouteAction 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 to distribute traffic with.
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 to distribute traffic with.public TcpRouteAction 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 to distribute traffic with.
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 to distribute traffic with.public String toString()
toString
in class Object
Object.toString()
public TcpRouteAction 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.