@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 to match requests with.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setPrefix(String prefix)
Specifies the path to match requests with.
|
String |
toString()
Returns a string representation of this object.
|
HttpRouteMatch |
withPrefix(String prefix)
Specifies the path to match requests with.
|
public void setPrefix(String prefix)
Specifies the path to match requests with. This parameter must always start with /, which by itself
matches all requests to the virtual service name. You can also match for path-based routing of requests. For
example, if your virtual service name is my-service.local and you want the route to match requests
to my-service.local/metrics, your prefix should be /metrics.
prefix - Specifies the path to match requests with. This parameter must always start with /, which by
itself matches all requests to the virtual service name. You can also match for path-based routing of
requests. For example, if your virtual service name is my-service.local and you want the
route to match requests to my-service.local/metrics, your prefix should be
/metrics.public String getPrefix()
Specifies the path to match requests with. This parameter must always start with /, which by itself
matches all requests to the virtual service name. You can also match for path-based routing of requests. For
example, if your virtual service name is my-service.local and you want the route to match requests
to my-service.local/metrics, your prefix should be /metrics.
/, which by
itself matches all requests to the virtual service name. You can also match for path-based routing of
requests. For example, if your virtual service name is my-service.local and you want the
route to match requests to my-service.local/metrics, your prefix should be
/metrics.public HttpRouteMatch withPrefix(String prefix)
Specifies the path to match requests with. This parameter must always start with /, which by itself
matches all requests to the virtual service name. You can also match for path-based routing of requests. For
example, if your virtual service name is my-service.local and you want the route to match requests
to my-service.local/metrics, your prefix should be /metrics.
prefix - Specifies the path to match requests with. This parameter must always start with /, which by
itself matches all requests to the virtual service name. You can also match for path-based routing of
requests. For example, if your virtual service name is my-service.local and you want the
route to match requests to my-service.local/metrics, your prefix should be
/metrics.public String toString()
toString in class ObjectObject.toString()public HttpRouteMatch clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.