Class CfnGatewayRoute.HttpGatewayRouteHeaderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpGatewayRouteHeaderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayRoute.HttpGatewayRouteHeaderProperty>
- Enclosing interface:
- CfnGatewayRoute.HttpGatewayRouteHeaderProperty
@Stability(Stable)
public static final class CfnGatewayRoute.HttpGatewayRouteHeaderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayRoute.HttpGatewayRouteHeaderProperty>
A builder for
CfnGatewayRoute.HttpGatewayRouteHeaderProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnGatewayRoute.HttpGatewayRouteHeaderProperty.getInvert()invert(IResolvable invert) Sets the value ofCfnGatewayRoute.HttpGatewayRouteHeaderProperty.getInvert()match(IResolvable match) Sets the value ofCfnGatewayRoute.HttpGatewayRouteHeaderProperty.getMatch()Sets the value ofCfnGatewayRoute.HttpGatewayRouteHeaderProperty.getMatch()Sets the value ofCfnGatewayRoute.HttpGatewayRouteHeaderProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnGatewayRoute.HttpGatewayRouteHeaderProperty.getName()- Parameters:
name- A name for the HTTP header in the gateway route that will be matched on. This parameter is required.- Returns:
this
-
invert
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteHeaderProperty.Builder invert(Boolean invert) Sets the value ofCfnGatewayRoute.HttpGatewayRouteHeaderProperty.getInvert()- Parameters:
invert- SpecifyTrueto match anything except the match criteria. The default value isFalse.- Returns:
this
-
invert
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteHeaderProperty.Builder invert(IResolvable invert) Sets the value ofCfnGatewayRoute.HttpGatewayRouteHeaderProperty.getInvert()- Parameters:
invert- SpecifyTrueto match anything except the match criteria. The default value isFalse.- Returns:
this
-
match
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteHeaderProperty.Builder match(IResolvable match) Sets the value ofCfnGatewayRoute.HttpGatewayRouteHeaderProperty.getMatch()- Parameters:
match- An object that represents the method and value to match with the header value sent in a request. Specify one match method.- Returns:
this
-
match
@Stability(Stable) public CfnGatewayRoute.HttpGatewayRouteHeaderProperty.Builder match(CfnGatewayRoute.HttpGatewayRouteHeaderMatchProperty match) Sets the value ofCfnGatewayRoute.HttpGatewayRouteHeaderProperty.getMatch()- Parameters:
match- An object that represents the method and value to match with the header value sent in a request. Specify one match method.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGatewayRoute.HttpGatewayRouteHeaderProperty>- Returns:
- a new instance of
CfnGatewayRoute.HttpGatewayRouteHeaderProperty - Throws:
NullPointerException- if any required attribute was not provided
-