@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()
The client request headers to match on.
|
String |
getMethod()
The client request method to match on.
|
HttpPathMatch |
getPath()
The client request path to match on.
|
String |
getPrefix()
Specifies the path to match requests with.
|
List<HttpQueryParameter> |
getQueryParameters()
The client request query parameters to match on.
|
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)
The client request headers to match on.
|
void |
setMethod(String method)
The client request method to match on.
|
void |
setPath(HttpPathMatch path)
The client request path to match on.
|
void |
setPrefix(String prefix)
Specifies the path to match requests with.
|
void |
setQueryParameters(Collection<HttpQueryParameter> queryParameters)
The client request query parameters to match on.
|
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)
The client request headers to match on.
|
HttpRouteMatch |
withHeaders(HttpRouteHeader... headers)
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 |
withPath(HttpPathMatch path)
The client request path to match on.
|
HttpRouteMatch |
withPrefix(String prefix)
Specifies the path to match requests with.
|
HttpRouteMatch |
withQueryParameters(Collection<HttpQueryParameter> queryParameters)
The client request query parameters to match on.
|
HttpRouteMatch |
withQueryParameters(HttpQueryParameter... queryParameters)
The client request query parameters to match on.
|
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()
The client request headers to match on.
public void setHeaders(Collection<HttpRouteHeader> headers)
The client request headers to match on.
headers
- The client request headers to match on.public HttpRouteMatch withHeaders(HttpRouteHeader... headers)
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
- The client request headers to match on.public HttpRouteMatch withHeaders(Collection<HttpRouteHeader> headers)
The client request headers to match on.
headers
- 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.HttpMethod
public String getMethod()
The client request method to match on. Specify only one.
HttpMethod
public 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.HttpMethod
public 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.HttpMethod
public void setPath(HttpPathMatch path)
The client request path to match on.
path
- The client request path to match on.public HttpPathMatch getPath()
The client request path to match on.
public HttpRouteMatch withPath(HttpPathMatch path)
The client request path to match on.
path
- The client request path to match on.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 List<HttpQueryParameter> getQueryParameters()
The client request query parameters to match on.
public void setQueryParameters(Collection<HttpQueryParameter> queryParameters)
The client request query parameters to match on.
queryParameters
- The client request query parameters to match on.public HttpRouteMatch withQueryParameters(HttpQueryParameter... queryParameters)
The client request query parameters to match on.
NOTE: This method appends the values to the existing list (if any). Use
setQueryParameters(java.util.Collection)
or withQueryParameters(java.util.Collection)
if you
want to override the existing values.
queryParameters
- The client request query parameters to match on.public HttpRouteMatch withQueryParameters(Collection<HttpQueryParameter> queryParameters)
The client request query parameters to match on.
queryParameters
- The client request query parameters to match on.public void setScheme(String scheme)
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
scheme
- The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.HttpScheme
public String getScheme()
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
HttpScheme
public HttpRouteMatch withScheme(String scheme)
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
scheme
- The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.HttpScheme
public HttpRouteMatch withScheme(HttpScheme scheme)
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
scheme
- The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.HttpScheme
public String toString()
toString
in class Object
Object.toString()
public HttpRouteMatch clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.