@Generated(value="software.amazon.awssdk:codegen") public final class HttpRouteAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HttpRouteAction.Builder,HttpRouteAction>
An object representing the traffic distribution requirements for matched HTTP requests.
Modifier and Type | Class and Description |
---|---|
static interface |
HttpRouteAction.Builder |
Modifier and Type | Method and Description |
---|---|
static HttpRouteAction.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends HttpRouteAction.Builder> |
serializableBuilderClass() |
HttpRouteAction.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
List<WeightedTarget> |
weightedTargets()
The targets that traffic is routed to when a request matches the route.
|
copy
public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public HttpRouteAction.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<HttpRouteAction.Builder,HttpRouteAction>
public static HttpRouteAction.Builder builder()
public static Class<? extends HttpRouteAction.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.