Class CfnRule.HeaderMatchTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnRule.HeaderMatchTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.HeaderMatchTypeProperty>
- Enclosing interface:
CfnRule.HeaderMatchTypeProperty
@Stability(Stable)
public static final class CfnRule.HeaderMatchTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.HeaderMatchTypeProperty>
A builder for
CfnRule.HeaderMatchTypeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnRule.HeaderMatchTypeProperty.getContains()
Sets the value ofCfnRule.HeaderMatchTypeProperty.getExact()
Sets the value ofCfnRule.HeaderMatchTypeProperty.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contains
Sets the value ofCfnRule.HeaderMatchTypeProperty.getContains()
- Parameters:
contains
- A contains type match.- Returns:
this
-
exact
Sets the value ofCfnRule.HeaderMatchTypeProperty.getExact()
- Parameters:
exact
- An exact type match.- Returns:
this
-
prefix
Sets the value ofCfnRule.HeaderMatchTypeProperty.getPrefix()
- Parameters:
prefix
- A prefix type match. Matches the value with the prefix.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRule.HeaderMatchTypeProperty>
- Returns:
- a new instance of
CfnRule.HeaderMatchTypeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-