Class HttpRoutePathMatchConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.HttpRoutePathMatchConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpRoutePathMatchConfig>
- Enclosing interface:
HttpRoutePathMatchConfig
@Stability(Stable)
public static final class HttpRoutePathMatchConfig.Builder
extends Object
implements software.amazon.jsii.Builder<HttpRoutePathMatchConfig>
A builder for
HttpRoutePathMatchConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.prefixPathMatch(String prefixPathMatch) Sets the value ofHttpRoutePathMatchConfig.getPrefixPathMatch()wholePathMatch(CfnRoute.HttpPathMatchProperty wholePathMatch) Sets the value ofHttpRoutePathMatchConfig.getWholePathMatch()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prefixPathMatch
Sets the value ofHttpRoutePathMatchConfig.getPrefixPathMatch()- Parameters:
prefixPathMatch- Route configuration for matching on the prefix of the URL path of the request.- Returns:
this
-
wholePathMatch
@Stability(Stable) public HttpRoutePathMatchConfig.Builder wholePathMatch(CfnRoute.HttpPathMatchProperty wholePathMatch) Sets the value ofHttpRoutePathMatchConfig.getWholePathMatch()- Parameters:
wholePathMatch- Route configuration for matching on the complete URL path of the request.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpRoutePathMatchConfig>- Returns:
- a new instance of
HttpRoutePathMatchConfig - Throws:
NullPointerException- if any required attribute was not provided
-