@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HttpRouteMatch extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents 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) | 
| List<HttpRouteHeader> | getHeaders()
 An object that represents the client request headers to match on. | 
| String | getMethod()
 The client request method to match on. | 
| String | getPrefix()
 Specifies the path to match requests with. | 
| String | getScheme()
 The client request scheme to match on. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setHeaders(Collection<HttpRouteHeader> headers)
 An object that represents the client request headers to match on. | 
| void | setMethod(String method)
 The client request method to match on. | 
| void | setPrefix(String prefix)
 Specifies the path to match requests with. | 
| void | setScheme(String scheme)
 The client request scheme to match on. | 
| String | toString()Returns a string representation of this object. | 
| HttpRouteMatch | withHeaders(Collection<HttpRouteHeader> headers)
 An object that represents the client request headers to match on. | 
| HttpRouteMatch | withHeaders(HttpRouteHeader... headers)
 An object that represents the client request headers to match on. | 
| HttpRouteMatch | withMethod(HttpMethod method)
 The client request method to match on. | 
| HttpRouteMatch | withMethod(String method)
 The client request method to match on. | 
| HttpRouteMatch | withPrefix(String prefix)
 Specifies the path to match requests with. | 
| HttpRouteMatch | withScheme(HttpScheme scheme)
 The client request scheme to match on. | 
| HttpRouteMatch | withScheme(String scheme)
 The client request scheme to match on. | 
public List<HttpRouteHeader> getHeaders()
An object that represents the client request headers to match on.
public void setHeaders(Collection<HttpRouteHeader> headers)
An object that represents the client request headers to match on.
headers - An object that represents the client request headers to match on.public HttpRouteMatch withHeaders(HttpRouteHeader... headers)
An object that represents the client request headers to match on.
 NOTE: This method appends the values to the existing list (if any). Use
 setHeaders(java.util.Collection) or withHeaders(java.util.Collection) if you want to override
 the existing values.
 
headers - An object that represents the client request headers to match on.public HttpRouteMatch withHeaders(Collection<HttpRouteHeader> headers)
An object that represents the client request headers to match on.
headers - An object that represents the client request headers to match on.public void setMethod(String method)
The client request method to match on. Specify only one.
method - The client request method to match on. Specify only one.HttpMethodpublic String getMethod()
The client request method to match on. Specify only one.
HttpMethodpublic HttpRouteMatch withMethod(String method)
The client request method to match on. Specify only one.
method - The client request method to match on. Specify only one.HttpMethodpublic HttpRouteMatch withMethod(HttpMethod method)
The client request method to match on. Specify only one.
method - The client request method to match on. Specify only one.HttpMethodpublic 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 void setScheme(String scheme)
The client request scheme to match on. Specify only one.
scheme - The client request scheme to match on. Specify only one.HttpSchemepublic String getScheme()
The client request scheme to match on. Specify only one.
HttpSchemepublic HttpRouteMatch withScheme(String scheme)
The client request scheme to match on. Specify only one.
scheme - The client request scheme to match on. Specify only one.HttpSchemepublic HttpRouteMatch withScheme(HttpScheme scheme)
The client request scheme to match on. Specify only one.
scheme - The client request scheme to match on. Specify only one.HttpSchemepublic 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.