public static final class CfnGatewayRoute.HttpGatewayRouteMatchProperty.Builder
extends java.lang.Object
CfnGatewayRoute.HttpGatewayRouteMatchProperty
Constructor and Description |
---|
Builder() |
public CfnGatewayRoute.HttpGatewayRouteMatchProperty.Builder headers(IResolvable headers)
CfnGatewayRoute.HttpGatewayRouteMatchProperty.getHeaders()
headers
- The client request headers to match on.this
public CfnGatewayRoute.HttpGatewayRouteMatchProperty.Builder headers(java.util.List<? extends java.lang.Object> headers)
CfnGatewayRoute.HttpGatewayRouteMatchProperty.getHeaders()
headers
- The client request headers to match on.this
public CfnGatewayRoute.HttpGatewayRouteMatchProperty.Builder hostname(IResolvable hostname)
CfnGatewayRoute.HttpGatewayRouteMatchProperty.getHostname()
hostname
- The host name to match on.this
public CfnGatewayRoute.HttpGatewayRouteMatchProperty.Builder hostname(CfnGatewayRoute.GatewayRouteHostnameMatchProperty hostname)
CfnGatewayRoute.HttpGatewayRouteMatchProperty.getHostname()
hostname
- The host name to match on.this
public CfnGatewayRoute.HttpGatewayRouteMatchProperty.Builder method(java.lang.String method)
CfnGatewayRoute.HttpGatewayRouteMatchProperty.getMethod()
method
- The method to match on.this
public CfnGatewayRoute.HttpGatewayRouteMatchProperty.Builder path(IResolvable path)
CfnGatewayRoute.HttpGatewayRouteMatchProperty.getPath()
path
- The path to match on.this
public CfnGatewayRoute.HttpGatewayRouteMatchProperty.Builder path(CfnGatewayRoute.HttpPathMatchProperty path)
CfnGatewayRoute.HttpGatewayRouteMatchProperty.getPath()
path
- The path to match on.this
public CfnGatewayRoute.HttpGatewayRouteMatchProperty.Builder port(java.lang.Number port)
CfnGatewayRoute.HttpGatewayRouteMatchProperty.getPort()
port
- The port number to match on.this
public CfnGatewayRoute.HttpGatewayRouteMatchProperty.Builder prefix(java.lang.String prefix)
CfnGatewayRoute.HttpGatewayRouteMatchProperty.getPrefix()
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 is my-service.local
and you want the route to match requests to my-service.local/metrics
, your prefix should be /metrics
.this
public CfnGatewayRoute.HttpGatewayRouteMatchProperty.Builder queryParameters(IResolvable queryParameters)
CfnGatewayRoute.HttpGatewayRouteMatchProperty.getQueryParameters()
queryParameters
- The query parameter to match on.this
public CfnGatewayRoute.HttpGatewayRouteMatchProperty.Builder queryParameters(java.util.List<? extends java.lang.Object> queryParameters)
CfnGatewayRoute.HttpGatewayRouteMatchProperty.getQueryParameters()
queryParameters
- The query parameter to match on.this
public CfnGatewayRoute.HttpGatewayRouteMatchProperty build()
CfnGatewayRoute.HttpGatewayRouteMatchProperty
java.lang.NullPointerException
- if any required attribute was not provided