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