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