Class GrpcRouteMatch.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.GrpcRouteMatch.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GrpcRouteMatch>
- Enclosing interface:
GrpcRouteMatch
@Stability(Stable)
public static final class GrpcRouteMatch.Builder
extends Object
implements software.amazon.jsii.Builder<GrpcRouteMatch>
A builder for
GrpcRouteMatch-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metadata(List<? extends HeaderMatch> metadata) Sets the value ofGrpcRouteMatch.getMetadata()methodName(String methodName) Sets the value ofGrpcRouteMatch.getMethodName()Sets the value ofGrpcRouteMatch.getPort()serviceName(String serviceName) Sets the value ofGrpcRouteMatch.getServiceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metadata
Sets the value ofGrpcRouteMatch.getMetadata()- Parameters:
metadata- Create metadata based gRPC route match. All specified metadata must match for the route to match.- Returns:
this
-
methodName
Sets the value ofGrpcRouteMatch.getMethodName()- Parameters:
methodName- The method name to match from the request. If the method name is specified, service name must be also provided.- Returns:
this
-
port
Sets the value ofGrpcRouteMatch.getPort()- Parameters:
port- The port to match from the request.- Returns:
this
-
serviceName
Sets the value ofGrpcRouteMatch.getServiceName()- Parameters:
serviceName- Create service name based gRPC route match.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GrpcRouteMatch>- Returns:
- a new instance of
GrpcRouteMatch - Throws:
NullPointerException- if any required attribute was not provided
-