Class CfnRoutingRule.MatchHeaderValueProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnRoutingRule.MatchHeaderValueProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoutingRule.MatchHeaderValueProperty>
- Enclosing interface:
CfnRoutingRule.MatchHeaderValueProperty
@Stability(Stable)
public static final class CfnRoutingRule.MatchHeaderValueProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoutingRule.MatchHeaderValueProperty>
A builder for
CfnRoutingRule.MatchHeaderValueProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnRoutingRule.MatchHeaderValueProperty.getHeader()
Sets the value ofCfnRoutingRule.MatchHeaderValueProperty.getValueGlob()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
header
Sets the value ofCfnRoutingRule.MatchHeaderValueProperty.getHeader()
- Parameters:
header
- The case insensitive header name to be matched. This parameter is required. The header name must be less than 40 characters and the only allowed characters area-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~.` .- Returns:
this
-
valueGlob
@Stability(Stable) public CfnRoutingRule.MatchHeaderValueProperty.Builder valueGlob(String valueGlob) Sets the value ofCfnRoutingRule.MatchHeaderValueProperty.getValueGlob()
- Parameters:
valueGlob
- The case sensitive header glob value to be matched against entire header value. This parameter is required. The header glob value must be less than 128 characters and the only allowed characters area-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~. Wildcard matching is supported for header glob values but must be for
prefix-match,
suffix-match, or
infix-match` .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRoutingRule.MatchHeaderValueProperty>
- Returns:
- a new instance of
CfnRoutingRule.MatchHeaderValueProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-