Class CfnRule.HttpMatchProperty.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnRule.HttpMatchProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.HttpMatchProperty>
- Enclosing interface:
CfnRule.HttpMatchProperty
@Stability(Stable)
public static final class CfnRule.HttpMatchProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.HttpMatchProperty>
A builder for
CfnRule.HttpMatchProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.headerMatches
(List<? extends Object> headerMatches) Sets the value ofCfnRule.HttpMatchProperty.getHeaderMatches()
headerMatches
(IResolvable headerMatches) Sets the value ofCfnRule.HttpMatchProperty.getHeaderMatches()
Sets the value ofCfnRule.HttpMatchProperty.getMethod()
pathMatch
(IResolvable pathMatch) Sets the value ofCfnRule.HttpMatchProperty.getPathMatch()
pathMatch
(CfnRule.PathMatchProperty pathMatch) Sets the value ofCfnRule.HttpMatchProperty.getPathMatch()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headerMatches
@Stability(Stable) public CfnRule.HttpMatchProperty.Builder headerMatches(IResolvable headerMatches) Sets the value ofCfnRule.HttpMatchProperty.getHeaderMatches()
- Parameters:
headerMatches
- The header matches. Matches incoming requests with rule based on request header value before applying rule action.- Returns:
this
-
headerMatches
@Stability(Stable) public CfnRule.HttpMatchProperty.Builder headerMatches(List<? extends Object> headerMatches) Sets the value ofCfnRule.HttpMatchProperty.getHeaderMatches()
- Parameters:
headerMatches
- The header matches. Matches incoming requests with rule based on request header value before applying rule action.- Returns:
this
-
method
Sets the value ofCfnRule.HttpMatchProperty.getMethod()
- Parameters:
method
- The HTTP method type.- Returns:
this
-
pathMatch
Sets the value ofCfnRule.HttpMatchProperty.getPathMatch()
- Parameters:
pathMatch
- The path match.- Returns:
this
-
pathMatch
@Stability(Stable) public CfnRule.HttpMatchProperty.Builder pathMatch(CfnRule.PathMatchProperty pathMatch) Sets the value ofCfnRule.HttpMatchProperty.getPathMatch()
- Parameters:
pathMatch
- The path match.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRule.HttpMatchProperty>
- Returns:
- a new instance of
CfnRule.HttpMatchProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-