@Stability(value=Stable) 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 HeaderMatch> headers)
Sets the value of
HttpRouteMatch.getHeaders() |
HttpRouteMatch.Builder |
method(HttpRouteMethod method)
Sets the value of
HttpRouteMatch.getMethod() |
HttpRouteMatch.Builder |
path(HttpRoutePathMatch path)
Sets the value of
HttpRouteMatch.getPath() |
HttpRouteMatch.Builder |
protocol(HttpRouteProtocol protocol)
Sets the value of
HttpRouteMatch.getProtocol() |
HttpRouteMatch.Builder |
queryParameters(List<? extends QueryParameterMatch> queryParameters)
Sets the value of
HttpRouteMatch.getQueryParameters() |
@Stability(value=Stable) public HttpRouteMatch.Builder headers(List<? extends HeaderMatch> 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=Stable) public HttpRouteMatch.Builder method(HttpRouteMethod method)
HttpRouteMatch.getMethod()method - The HTTP client request method to match on.this@Stability(value=Stable) public HttpRouteMatch.Builder path(HttpRoutePathMatch path)
HttpRouteMatch.getPath()path - Specifies how is the request matched based on the path part of its URL.this@Stability(value=Stable) public HttpRouteMatch.Builder protocol(HttpRouteProtocol protocol)
HttpRouteMatch.getProtocol()protocol - The client request protocol to match on.
Applicable only for HTTP2 routes.this@Stability(value=Stable) public HttpRouteMatch.Builder queryParameters(List<? extends QueryParameterMatch> queryParameters)
HttpRouteMatch.getQueryParameters()queryParameters - The query parameters to match on.
All specified query parameters must match for the route to match.this@Stability(value=Stable) public HttpRouteMatch build()
build in interface software.amazon.jsii.Builder<HttpRouteMatch>HttpRouteMatchNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.