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