public static final class CfnGatewayRoute.HttpGatewayRouteHeaderProperty.Builder
extends java.lang.Object
CfnGatewayRoute.HttpGatewayRouteHeaderProperty
Constructor and Description |
---|
Builder() |
public CfnGatewayRoute.HttpGatewayRouteHeaderProperty.Builder name(java.lang.String name)
CfnGatewayRoute.HttpGatewayRouteHeaderProperty.getName()
name
- A name for the HTTP header in the gateway route that will be matched on. This parameter is required.this
public CfnGatewayRoute.HttpGatewayRouteHeaderProperty.Builder invert(java.lang.Boolean invert)
CfnGatewayRoute.HttpGatewayRouteHeaderProperty.getInvert()
invert
- Specify `True` to match anything except the match criteria.
The default value is False
.this
public CfnGatewayRoute.HttpGatewayRouteHeaderProperty.Builder invert(IResolvable invert)
CfnGatewayRoute.HttpGatewayRouteHeaderProperty.getInvert()
invert
- Specify `True` to match anything except the match criteria.
The default value is False
.this
public CfnGatewayRoute.HttpGatewayRouteHeaderProperty.Builder match(IResolvable match)
CfnGatewayRoute.HttpGatewayRouteHeaderProperty.getMatch()
match
- An object that represents the method and value to match with the header value sent in a request.
Specify one match method.this
public CfnGatewayRoute.HttpGatewayRouteHeaderProperty.Builder match(CfnGatewayRoute.HttpGatewayRouteHeaderMatchProperty match)
CfnGatewayRoute.HttpGatewayRouteHeaderProperty.getMatch()
match
- An object that represents the method and value to match with the header value sent in a request.
Specify one match method.this
public CfnGatewayRoute.HttpGatewayRouteHeaderProperty build()
CfnGatewayRoute.HttpGatewayRouteHeaderProperty
java.lang.NullPointerException
- if any required attribute was not provided