@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HttpRouteMatch extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the requirements for a route to match HTTP requests for a virtual router.
| Constructor and Description |
|---|
HttpRouteMatch() |
| Modifier and Type | Method and Description |
|---|---|
HttpRouteMatch |
clone() |
boolean |
equals(Object obj) |
String |
getPrefix()
Specifies the path with which to match requests.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setPrefix(String prefix)
Specifies the path with which to match requests.
|
String |
toString()
Returns a string representation of this object.
|
HttpRouteMatch |
withPrefix(String prefix)
Specifies the path with which to match requests.
|
public void setPrefix(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.
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.public String getPrefix()
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 withPrefix(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.
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.public String toString()
toString in class ObjectObject.toString()public HttpRouteMatch clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.