@Generated(value="software.amazon.awssdk:codegen") public final class HttpRouteMatch extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HttpRouteMatch.Builder,HttpRouteMatch>
An object representing the requirements for a route to match HTTP requests for a virtual router.
Modifier and Type | Class and Description |
---|---|
static interface |
HttpRouteMatch.Builder |
Modifier and Type | Method and Description |
---|---|
static HttpRouteMatch.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
prefix()
Specifies the path with which to match requests.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HttpRouteMatch.Builder> |
serializableBuilderClass() |
HttpRouteMatch.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String prefix()
Specifies the path with which to match requests. This parameter must always start with /
, which by
itself matches all requests to the virtual router service name. You can also match for path-based routing of
requests. For example, if your virtual router service name is my-service.local
, and you want the
route to match requests to my-service.local/metrics
, then your prefix should be
/metrics
.
/
,
which by itself matches all requests to the virtual router service name. You can also match for
path-based routing of requests. For example, if your virtual router service name is
my-service.local
, and you want the route to match requests to
my-service.local/metrics
, then your prefix should be /metrics
.public HttpRouteMatch.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<HttpRouteMatch.Builder,HttpRouteMatch>
public static HttpRouteMatch.Builder builder()
public static Class<? extends HttpRouteMatch.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.