Class HttpRouteMatch.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.HttpRouteMatch.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpRouteMatch>
- Enclosing interface:
HttpRouteMatch
@Stability(Stable)
public static final class HttpRouteMatch.Builder
extends Object
implements software.amazon.jsii.Builder<HttpRouteMatch>
A builder for
HttpRouteMatch-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.headers(List<? extends HeaderMatch> headers) Sets the value ofHttpRouteMatch.getHeaders()method(HttpRouteMethod method) Sets the value ofHttpRouteMatch.getMethod()path(HttpRoutePathMatch path) Sets the value ofHttpRouteMatch.getPath()Sets the value ofHttpRouteMatch.getPort()protocol(HttpRouteProtocol protocol) Sets the value ofHttpRouteMatch.getProtocol()queryParameters(List<? extends QueryParameterMatch> queryParameters) Sets the value ofHttpRouteMatch.getQueryParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headers
Sets the value ofHttpRouteMatch.getHeaders()- Parameters:
headers- Specifies the client request headers to match on. All specified headers must match for the route to match.- Returns:
this
-
method
Sets the value ofHttpRouteMatch.getMethod()- Parameters:
method- The HTTP client request method to match on.- Returns:
this
-
path
Sets the value ofHttpRouteMatch.getPath()- Parameters:
path- Specifies how is the request matched based on the path part of its URL.- Returns:
this
-
port
Sets the value ofHttpRouteMatch.getPort()- Parameters:
port- The port to match from the request.- Returns:
this
-
protocol
Sets the value ofHttpRouteMatch.getProtocol()- Parameters:
protocol- The client request protocol to match on. Applicable only for HTTP2 routes.- Returns:
this
-
queryParameters
@Stability(Stable) public HttpRouteMatch.Builder queryParameters(List<? extends QueryParameterMatch> queryParameters) Sets the value ofHttpRouteMatch.getQueryParameters()- Parameters:
queryParameters- The query parameters to match on. All specified query parameters must match for the route to match.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpRouteMatch>- Returns:
- a new instance of
HttpRouteMatch - Throws:
NullPointerException- if any required attribute was not provided
-