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