@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 |
prefixPath(String prefixPath)
Sets the value of
HttpRouteMatch.getPrefixPath() |
@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 build()
build in interface software.amazon.jsii.Builder<HttpRouteMatch>HttpRouteMatchNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.