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