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