@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TcpRouteAction extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the action to take if a match is determined.
Constructor and Description |
---|
TcpRouteAction() |
Modifier and Type | Method and Description |
---|---|
TcpRouteAction |
clone() |
boolean |
equals(Object obj) |
List<WeightedTarget> |
getWeightedTargets()
An object that represents 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)
An object that represents 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)
An object that represents the targets that traffic is routed to when a request matches the route.
|
TcpRouteAction |
withWeightedTargets(WeightedTarget... weightedTargets)
An object that represents the targets that traffic is routed to when a request matches the route.
|
public List<WeightedTarget> getWeightedTargets()
An object that represents the targets that traffic is routed to when a request matches the route.
public void setWeightedTargets(Collection<WeightedTarget> weightedTargets)
An object that represents the targets that traffic is routed to when a request matches the route.
weightedTargets
- An object that represents the targets that traffic is routed to when a request matches the route.public TcpRouteAction withWeightedTargets(WeightedTarget... weightedTargets)
An object that represents the targets that traffic is routed to when a request matches the route.
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
- An object that represents the targets that traffic is routed to when a request matches the route.public TcpRouteAction withWeightedTargets(Collection<WeightedTarget> weightedTargets)
An object that represents the targets that traffic is routed to when a request matches the route.
weightedTargets
- An object that represents the targets that traffic is routed to when a request matches the route.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.