Interface HttpRouteMatch.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<HttpRouteMatch.Builder,HttpRouteMatch>,SdkBuilder<HttpRouteMatch.Builder,HttpRouteMatch>,SdkPojo
- Enclosing class:
- HttpRouteMatch
public static interface HttpRouteMatch.Builder extends SdkPojo, CopyableBuilder<HttpRouteMatch.Builder,HttpRouteMatch>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description HttpRouteMatch.Builderheaders(Collection<HttpRouteHeader> headers)The client request headers to match on.HttpRouteMatch.Builderheaders(Consumer<HttpRouteHeader.Builder>... headers)The client request headers to match on.HttpRouteMatch.Builderheaders(HttpRouteHeader... headers)The client request headers to match on.HttpRouteMatch.Buildermethod(String method)The client request method to match on.HttpRouteMatch.Buildermethod(HttpMethod method)The client request method to match on.default HttpRouteMatch.Builderpath(Consumer<HttpPathMatch.Builder> path)The client request path to match on.HttpRouteMatch.Builderpath(HttpPathMatch path)The client request path to match on.HttpRouteMatch.Builderport(Integer port)The port number to match on.HttpRouteMatch.Builderprefix(String prefix)Specifies the path to match requests with.HttpRouteMatch.BuilderqueryParameters(Collection<HttpQueryParameter> queryParameters)The client request query parameters to match on.HttpRouteMatch.BuilderqueryParameters(Consumer<HttpQueryParameter.Builder>... queryParameters)The client request query parameters to match on.HttpRouteMatch.BuilderqueryParameters(HttpQueryParameter... queryParameters)The client request query parameters to match on.HttpRouteMatch.Builderscheme(String scheme)The client request scheme to match on.HttpRouteMatch.Builderscheme(HttpScheme scheme)The client request scheme to match on.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
headers
HttpRouteMatch.Builder headers(Collection<HttpRouteHeader> 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
HttpRouteMatch.Builder headers(HttpRouteHeader... 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
HttpRouteMatch.Builder headers(Consumer<HttpRouteHeader.Builder>... 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 to#headers(List.) - 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:
#headers(java.util.Collection)
-
method
HttpRouteMatch.Builder method(String 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:
HttpMethod,HttpMethod
-
method
HttpRouteMatch.Builder method(HttpMethod 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:
HttpMethod,HttpMethod
-
path
HttpRouteMatch.Builder path(HttpPathMatch 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
default HttpRouteMatch.Builder path(Consumer<HttpPathMatch.Builder> 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:
path(HttpPathMatch)
-
port
HttpRouteMatch.Builder port(Integer 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
HttpRouteMatch.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 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
HttpRouteMatch.Builder queryParameters(Collection<HttpQueryParameter> 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
HttpRouteMatch.Builder queryParameters(HttpQueryParameter... 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
HttpRouteMatch.Builder queryParameters(Consumer<HttpQueryParameter.Builder>... 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 to#queryParameters(List.) - 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:
#queryParameters(java.util.Collection)
-
scheme
HttpRouteMatch.Builder scheme(String 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:
HttpScheme,HttpScheme
-
scheme
HttpRouteMatch.Builder scheme(HttpScheme 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:
HttpScheme,HttpScheme
-
-