@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProductionVariantRoutingConfig extends Object implements Serializable, Cloneable, StructuredPojo
Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.
| Constructor and Description |
|---|
ProductionVariantRoutingConfig() |
| Modifier and Type | Method and Description |
|---|---|
ProductionVariantRoutingConfig |
clone() |
boolean |
equals(Object obj) |
String |
getRoutingStrategy()
Sets how the endpoint routes incoming traffic:
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setRoutingStrategy(String routingStrategy)
Sets how the endpoint routes incoming traffic:
|
String |
toString()
Returns a string representation of this object.
|
ProductionVariantRoutingConfig |
withRoutingStrategy(RoutingStrategy routingStrategy)
Sets how the endpoint routes incoming traffic:
|
ProductionVariantRoutingConfig |
withRoutingStrategy(String routingStrategy)
Sets how the endpoint routes incoming traffic:
|
public void setRoutingStrategy(String routingStrategy)
Sets how the endpoint routes incoming traffic:
LEAST_OUTSTANDING_REQUESTS: The endpoint routes requests to the specific instances that have more
capacity to process them.
RANDOM: The endpoint routes each request to a randomly chosen instance.
routingStrategy - Sets how the endpoint routes incoming traffic:
LEAST_OUTSTANDING_REQUESTS: The endpoint routes requests to the specific instances that have
more capacity to process them.
RANDOM: The endpoint routes each request to a randomly chosen instance.
RoutingStrategypublic String getRoutingStrategy()
Sets how the endpoint routes incoming traffic:
LEAST_OUTSTANDING_REQUESTS: The endpoint routes requests to the specific instances that have more
capacity to process them.
RANDOM: The endpoint routes each request to a randomly chosen instance.
LEAST_OUTSTANDING_REQUESTS: The endpoint routes requests to the specific instances that have
more capacity to process them.
RANDOM: The endpoint routes each request to a randomly chosen instance.
RoutingStrategypublic ProductionVariantRoutingConfig withRoutingStrategy(String routingStrategy)
Sets how the endpoint routes incoming traffic:
LEAST_OUTSTANDING_REQUESTS: The endpoint routes requests to the specific instances that have more
capacity to process them.
RANDOM: The endpoint routes each request to a randomly chosen instance.
routingStrategy - Sets how the endpoint routes incoming traffic:
LEAST_OUTSTANDING_REQUESTS: The endpoint routes requests to the specific instances that have
more capacity to process them.
RANDOM: The endpoint routes each request to a randomly chosen instance.
RoutingStrategypublic ProductionVariantRoutingConfig withRoutingStrategy(RoutingStrategy routingStrategy)
Sets how the endpoint routes incoming traffic:
LEAST_OUTSTANDING_REQUESTS: The endpoint routes requests to the specific instances that have more
capacity to process them.
RANDOM: The endpoint routes each request to a randomly chosen instance.
routingStrategy - Sets how the endpoint routes incoming traffic:
LEAST_OUTSTANDING_REQUESTS: The endpoint routes requests to the specific instances that have
more capacity to process them.
RANDOM: The endpoint routes each request to a randomly chosen instance.
RoutingStrategypublic String toString()
toString in class ObjectObject.toString()public ProductionVariantRoutingConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.