Class CfnRoutingRule.MatchHeadersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnRoutingRule.MatchHeadersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoutingRule.MatchHeadersProperty>
- Enclosing interface:
CfnRoutingRule.MatchHeadersProperty
@Stability(Stable)
public static final class CfnRoutingRule.MatchHeadersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoutingRule.MatchHeadersProperty>
A builder for
CfnRoutingRule.MatchHeadersProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRoutingRule.MatchHeadersProperty.getAnyOf()
anyOf
(IResolvable anyOf) Sets the value ofCfnRoutingRule.MatchHeadersProperty.getAnyOf()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
anyOf
Sets the value ofCfnRoutingRule.MatchHeadersProperty.getAnyOf()
- Parameters:
anyOf
- The header name and header value glob to be matched. This parameter is required. The matchHeaders condition is matched if any of the header name and header value globs are matched.- Returns:
this
-
anyOf
@Stability(Stable) public CfnRoutingRule.MatchHeadersProperty.Builder anyOf(List<? extends Object> anyOf) Sets the value ofCfnRoutingRule.MatchHeadersProperty.getAnyOf()
- Parameters:
anyOf
- The header name and header value glob to be matched. This parameter is required. The matchHeaders condition is matched if any of the header name and header value globs are matched.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRoutingRule.MatchHeadersProperty>
- Returns:
- a new instance of
CfnRoutingRule.MatchHeadersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-