Class CfnRoute.HeaderMatchMethodProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnRoute.HeaderMatchMethodProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoute.HeaderMatchMethodProperty>
- Enclosing interface:
- CfnRoute.HeaderMatchMethodProperty
@Stability(Stable)
public static final class CfnRoute.HeaderMatchMethodProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoute.HeaderMatchMethodProperty>
A builder for
CfnRoute.HeaderMatchMethodProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRoute.HeaderMatchMethodProperty.getExact()Sets the value ofCfnRoute.HeaderMatchMethodProperty.getPrefix()range(IResolvable range) Sets the value ofCfnRoute.HeaderMatchMethodProperty.getRange()range(CfnRoute.MatchRangeProperty range) Sets the value ofCfnRoute.HeaderMatchMethodProperty.getRange()Sets the value ofCfnRoute.HeaderMatchMethodProperty.getRegex()Sets the value ofCfnRoute.HeaderMatchMethodProperty.getSuffix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
exact
Sets the value ofCfnRoute.HeaderMatchMethodProperty.getExact()- Parameters:
exact- The value sent by the client must match the specified value exactly.- Returns:
this
-
prefix
Sets the value ofCfnRoute.HeaderMatchMethodProperty.getPrefix()- Parameters:
prefix- The value sent by the client must begin with the specified characters.- Returns:
this
-
range
Sets the value ofCfnRoute.HeaderMatchMethodProperty.getRange()- Parameters:
range- An object that represents the range of values to match on.- Returns:
this
-
range
@Stability(Stable) public CfnRoute.HeaderMatchMethodProperty.Builder range(CfnRoute.MatchRangeProperty range) Sets the value ofCfnRoute.HeaderMatchMethodProperty.getRange()- Parameters:
range- An object that represents the range of values to match on.- Returns:
this
-
regex
Sets the value ofCfnRoute.HeaderMatchMethodProperty.getRegex()- Parameters:
regex- The value sent by the client must include the specified characters.- Returns:
this
-
suffix
Sets the value ofCfnRoute.HeaderMatchMethodProperty.getSuffix()- Parameters:
suffix- The value sent by the client must end with the specified characters.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRoute.HeaderMatchMethodProperty>- Returns:
- a new instance of
CfnRoute.HeaderMatchMethodProperty - Throws:
NullPointerException- if any required attribute was not provided
-