@Stability(value=Experimental) public static final class HttpRouteMatch.Builder extends Object implements software.amazon.jsii.Builder<HttpRouteMatch>
HttpRouteMatch| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
HttpRouteMatch |
build()
Builds the configured instance.
|
HttpRouteMatch.Builder |
headers(List<? extends HttpHeaderMatch> headers)
Sets the value of
HttpRouteMatch.getHeaders() |
HttpRouteMatch.Builder |
method(HttpRouteMatchMethod method)
Sets the value of
HttpRouteMatch.getMethod() |
HttpRouteMatch.Builder |
prefixPath(String prefixPath)
Sets the value of
HttpRouteMatch.getPrefixPath() |
HttpRouteMatch.Builder |
protocol(HttpRouteProtocol protocol)
Sets the value of
HttpRouteMatch.getProtocol() |
@Stability(value=Experimental) public HttpRouteMatch.Builder prefixPath(String prefixPath)
HttpRouteMatch.getPrefixPath()prefixPath - Specifies the path to match requests with. This parameter is required.
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.this@Stability(value=Experimental) public HttpRouteMatch.Builder headers(List<? extends HttpHeaderMatch> headers)
HttpRouteMatch.getHeaders()headers - Specifies the client request headers to match on.
All specified headers
must match for the route to match.this@Stability(value=Experimental) public HttpRouteMatch.Builder method(HttpRouteMatchMethod method)
HttpRouteMatch.getMethod()method - The HTTP client request method to match on.this@Stability(value=Experimental) public HttpRouteMatch.Builder protocol(HttpRouteProtocol protocol)
HttpRouteMatch.getProtocol()protocol - The client request protocol to match on.
Applicable only for HTTP2 routes.this@Stability(value=Experimental) public HttpRouteMatch build()
build in interface software.amazon.jsii.Builder<HttpRouteMatch>HttpRouteMatchNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.