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