public static interface HttpGatewayRouteMatch.Builder extends SdkPojo, CopyableBuilder<HttpGatewayRouteMatch.Builder,HttpGatewayRouteMatch>
equalsBySdkFields, sdkFieldscopyapplyMutation, buildHttpGatewayRouteMatch.Builder headers(Collection<HttpGatewayRouteHeader> headers)
The client request headers to match on.
headers - The client request headers to match on.HttpGatewayRouteMatch.Builder headers(HttpGatewayRouteHeader... headers)
The client request headers to match on.
headers - The client request headers to match on.HttpGatewayRouteMatch.Builder headers(Consumer<HttpGatewayRouteHeader.Builder>... headers)
The client request headers to match on.
This is a convenience method that creates an instance of theHttpGatewayRouteHeader.Builder avoiding the need to
create one manually via
HttpGatewayRouteHeader.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #headers(List.
headers - a consumer that will call methods on
HttpGatewayRouteHeader.Builder#headers(java.util.Collection) HttpGatewayRouteMatch.Builder hostname(GatewayRouteHostnameMatch hostname)
The host name to match on.
hostname - The host name to match on.default HttpGatewayRouteMatch.Builder hostname(Consumer<GatewayRouteHostnameMatch.Builder> hostname)
The host name to match on.
This is a convenience method that creates an instance of theGatewayRouteHostnameMatch.Builder
avoiding the need to create one manually via GatewayRouteHostnameMatch.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to hostname(GatewayRouteHostnameMatch).
hostname - a consumer that will call methods on GatewayRouteHostnameMatch.Builderhostname(GatewayRouteHostnameMatch)HttpGatewayRouteMatch.Builder method(String method)
The method to match on.
method - The method to match on.HttpMethod,
HttpMethodHttpGatewayRouteMatch.Builder method(HttpMethod method)
The method to match on.
method - The method to match on.HttpMethod,
HttpMethodHttpGatewayRouteMatch.Builder path(HttpPathMatch path)
The path to match on.
path - The path to match on.default HttpGatewayRouteMatch.Builder path(Consumer<HttpPathMatch.Builder> path)
The path to match on.
This is a convenience method that creates an instance of theHttpPathMatch.Builder avoiding the need
to create one manually via HttpPathMatch.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to path(HttpPathMatch).
path - a consumer that will call methods on HttpPathMatch.Builderpath(HttpPathMatch)HttpGatewayRouteMatch.Builder port(Integer port)
The port number to match on.
port - The port number to match on.HttpGatewayRouteMatch.Builder prefix(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.HttpGatewayRouteMatch.Builder queryParameters(Collection<HttpQueryParameter> queryParameters)
The query parameter to match on.
queryParameters - The query parameter to match on.HttpGatewayRouteMatch.Builder queryParameters(HttpQueryParameter... queryParameters)
The query parameter to match on.
queryParameters - The query parameter to match on.HttpGatewayRouteMatch.Builder queryParameters(Consumer<HttpQueryParameter.Builder>... queryParameters)
The query parameter to match on.
This is a convenience method that creates an instance of theHttpQueryParameter.Builder avoiding the need to create
one manually via HttpQueryParameter.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #queryParameters(List.
queryParameters - a consumer that will call methods on
HttpQueryParameter.Builder#queryParameters(java.util.Collection) Copyright © 2023. All rights reserved.