Class GrpcGatewayRouteMatch.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.GrpcGatewayRouteMatch.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GrpcGatewayRouteMatch>
- Enclosing interface:
GrpcGatewayRouteMatch
@Stability(Stable)
public static final class GrpcGatewayRouteMatch.Builder
extends Object
implements software.amazon.jsii.Builder<GrpcGatewayRouteMatch>
A builder for
GrpcGatewayRouteMatch-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.hostname(GatewayRouteHostnameMatch hostname) Sets the value ofGrpcGatewayRouteMatch.getHostname()metadata(List<? extends HeaderMatch> metadata) Sets the value ofGrpcGatewayRouteMatch.getMetadata()Sets the value ofGrpcGatewayRouteMatch.getPort()rewriteRequestHostname(Boolean rewriteRequestHostname) Sets the value ofGrpcGatewayRouteMatch.getRewriteRequestHostname()serviceName(String serviceName) Sets the value ofGrpcGatewayRouteMatch.getServiceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostname
@Stability(Stable) public GrpcGatewayRouteMatch.Builder hostname(GatewayRouteHostnameMatch hostname) Sets the value ofGrpcGatewayRouteMatch.getHostname()- Parameters:
hostname- Create host name based gRPC gateway route match.- Returns:
this
-
metadata
@Stability(Stable) public GrpcGatewayRouteMatch.Builder metadata(List<? extends HeaderMatch> metadata) Sets the value ofGrpcGatewayRouteMatch.getMetadata()- Parameters:
metadata- Create metadata based gRPC gateway route match. All specified metadata must match for the route to match.- Returns:
this
-
port
Sets the value ofGrpcGatewayRouteMatch.getPort()- Parameters:
port- The port to match from the request.- Returns:
this
-
rewriteRequestHostname
@Stability(Stable) public GrpcGatewayRouteMatch.Builder rewriteRequestHostname(Boolean rewriteRequestHostname) Sets the value ofGrpcGatewayRouteMatch.getRewriteRequestHostname()- Parameters:
rewriteRequestHostname- Whentrue, rewrites the original request received at the Virtual Gateway to the destination Virtual Service name. Whenfalse, retains the original hostname from the request.- Returns:
this
-
serviceName
Sets the value ofGrpcGatewayRouteMatch.getServiceName()- Parameters:
serviceName- Create service name based gRPC gateway route match.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GrpcGatewayRouteMatch>- Returns:
- a new instance of
GrpcGatewayRouteMatch - Throws:
NullPointerException- if any required attribute was not provided
-