Class CfnRoute.HttpRouteMatchProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnRoute.HttpRouteMatchProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoute.HttpRouteMatchProperty>
- Enclosing interface:
CfnRoute.HttpRouteMatchProperty
@Stability(Stable)
public static final class CfnRoute.HttpRouteMatchProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoute.HttpRouteMatchProperty>
A builder for
CfnRoute.HttpRouteMatchProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRoute.HttpRouteMatchProperty.getHeaders()headers(IResolvable headers) Sets the value ofCfnRoute.HttpRouteMatchProperty.getHeaders()Sets the value ofCfnRoute.HttpRouteMatchProperty.getMethod()path(IResolvable path) Sets the value ofCfnRoute.HttpRouteMatchProperty.getPath()Sets the value ofCfnRoute.HttpRouteMatchProperty.getPath()Sets the value ofCfnRoute.HttpRouteMatchProperty.getPort()Sets the value ofCfnRoute.HttpRouteMatchProperty.getPrefix()queryParameters(List<? extends Object> queryParameters) Sets the value ofCfnRoute.HttpRouteMatchProperty.getQueryParameters()queryParameters(IResolvable queryParameters) Sets the value ofCfnRoute.HttpRouteMatchProperty.getQueryParameters()Sets the value ofCfnRoute.HttpRouteMatchProperty.getScheme()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headers
Sets the value ofCfnRoute.HttpRouteMatchProperty.getHeaders()- Parameters:
headers- The client request headers to match on.- Returns:
this
-
headers
@Stability(Stable) public CfnRoute.HttpRouteMatchProperty.Builder headers(List<? extends Object> headers) Sets the value ofCfnRoute.HttpRouteMatchProperty.getHeaders()- Parameters:
headers- The client request headers to match on.- Returns:
this
-
method
Sets the value ofCfnRoute.HttpRouteMatchProperty.getMethod()- Parameters:
method- The client request method to match on. Specify only one.- Returns:
this
-
path
Sets the value ofCfnRoute.HttpRouteMatchProperty.getPath()- Parameters:
path- The client request path to match on.- Returns:
this
-
path
@Stability(Stable) public CfnRoute.HttpRouteMatchProperty.Builder path(CfnRoute.HttpPathMatchProperty path) Sets the value ofCfnRoute.HttpRouteMatchProperty.getPath()- Parameters:
path- The client request path to match on.- Returns:
this
-
port
Sets the value ofCfnRoute.HttpRouteMatchProperty.getPort()- Parameters:
port- The port number to match on.- Returns:
this
-
prefix
Sets the value ofCfnRoute.HttpRouteMatchProperty.getPrefix()- 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:
this
-
queryParameters
@Stability(Stable) public CfnRoute.HttpRouteMatchProperty.Builder queryParameters(IResolvable queryParameters) Sets the value ofCfnRoute.HttpRouteMatchProperty.getQueryParameters()- Parameters:
queryParameters- The client request query parameters to match on.- Returns:
this
-
queryParameters
@Stability(Stable) public CfnRoute.HttpRouteMatchProperty.Builder queryParameters(List<? extends Object> queryParameters) Sets the value ofCfnRoute.HttpRouteMatchProperty.getQueryParameters()- Parameters:
queryParameters- The client request query parameters to match on.- Returns:
this
-
scheme
Sets the value ofCfnRoute.HttpRouteMatchProperty.getScheme()- Parameters:
scheme- The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRoute.HttpRouteMatchProperty>- Returns:
- a new instance of
CfnRoute.HttpRouteMatchProperty - Throws:
NullPointerException- if any required attribute was not provided
-