Interface HttpRouteMatch.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<HttpRouteMatch.Builder,,HttpRouteMatch> SdkBuilder<HttpRouteMatch.Builder,,HttpRouteMatch> SdkPojo
- Enclosing class:
HttpRouteMatch
-
Method Summary
Modifier and TypeMethodDescriptionheaders(Collection<HttpRouteHeader> headers) The client request headers to match on.headers(Consumer<HttpRouteHeader.Builder>... headers) The client request headers to match on.headers(HttpRouteHeader... headers) The client request headers to match on.The client request method to match on.method(HttpMethod method) The client request method to match on.default HttpRouteMatch.Builderpath(Consumer<HttpPathMatch.Builder> path) The client request path to match on.path(HttpPathMatch path) The client request path to match on.The port number to match on.Specifies the path to match requests with.queryParameters(Collection<HttpQueryParameter> queryParameters) The client request query parameters to match on.queryParameters(Consumer<HttpQueryParameter.Builder>... queryParameters) The client request query parameters to match on.queryParameters(HttpQueryParameter... queryParameters) The client request query parameters to match on.The client request scheme to match on.scheme(HttpScheme scheme) The client request scheme to match on.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
headers
The client request headers to match on.
- Parameters:
headers- The client request headers to match on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
headers
The client request headers to match on.
- Parameters:
headers- The client request headers to match on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
headers
The client request headers to match on.
This is a convenience method that creates an instance of theHttpRouteHeader.Builderavoiding the need to create one manually viaHttpRouteHeader.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toheaders(List<HttpRouteHeader>).- Parameters:
headers- a consumer that will call methods onHttpRouteHeader.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
method
The client request method to match on. Specify only one.
- Parameters:
method- The client request method to match on. Specify only one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
method
The client request method to match on. Specify only one.
- Parameters:
method- The client request method to match on. Specify only one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
path
The client request path to match on.
- Parameters:
path- The client request path to match on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
path
The client request path to match on.
This is a convenience method that creates an instance of theHttpPathMatch.Builderavoiding the need to create one manually viaHttpPathMatch.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topath(HttpPathMatch).- Parameters:
path- a consumer that will call methods onHttpPathMatch.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
port
The port number to match on.
- Parameters:
port- The port number to match on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 ismy-service.localand you want the route to match requests tomy-service.local/metrics, your prefix should be/metrics.- Parameters:
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 ismy-service.localand you want the route to match requests tomy-service.local/metrics, your prefix should be/metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryParameters
The client request query parameters to match on.
- Parameters:
queryParameters- The client request query parameters to match on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryParameters
The client request query parameters to match on.
- Parameters:
queryParameters- The client request query parameters to match on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryParameters
The client request query parameters to match on.
This is a convenience method that creates an instance of theHttpQueryParameter.Builderavoiding the need to create one manually viaHttpQueryParameter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toqueryParameters(List<HttpQueryParameter>).- Parameters:
queryParameters- a consumer that will call methods onHttpQueryParameter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scheme
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
- Parameters:
scheme- The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scheme
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
- Parameters:
scheme- The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-