Class CfnRoute.GrpcRouteMatchProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnRoute.GrpcRouteMatchProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoute.GrpcRouteMatchProperty>
- Enclosing interface:
- CfnRoute.GrpcRouteMatchProperty
@Stability(Stable)
public static final class CfnRoute.GrpcRouteMatchProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoute.GrpcRouteMatchProperty>
A builder for
CfnRoute.GrpcRouteMatchProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRoute.GrpcRouteMatchProperty.getMetadata()metadata(IResolvable metadata) Sets the value ofCfnRoute.GrpcRouteMatchProperty.getMetadata()methodName(String methodName) Sets the value ofCfnRoute.GrpcRouteMatchProperty.getMethodName()Sets the value ofCfnRoute.GrpcRouteMatchProperty.getPort()serviceName(String serviceName) Sets the value ofCfnRoute.GrpcRouteMatchProperty.getServiceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metadata
Sets the value ofCfnRoute.GrpcRouteMatchProperty.getMetadata()- Parameters:
metadata- An object that represents the data to match from the request.- Returns:
this
-
metadata
@Stability(Stable) public CfnRoute.GrpcRouteMatchProperty.Builder metadata(List<? extends Object> metadata) Sets the value ofCfnRoute.GrpcRouteMatchProperty.getMetadata()- Parameters:
metadata- An object that represents the data to match from the request.- Returns:
this
-
methodName
Sets the value ofCfnRoute.GrpcRouteMatchProperty.getMethodName()- Parameters:
methodName- The method name to match from the request. If you specify a name, you must also specify aserviceName.- Returns:
this
-
port
Sets the value ofCfnRoute.GrpcRouteMatchProperty.getPort()- Parameters:
port- The port number to match on.- Returns:
this
-
serviceName
Sets the value ofCfnRoute.GrpcRouteMatchProperty.getServiceName()- Parameters:
serviceName- The fully qualified domain name for the service to match from the request.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRoute.GrpcRouteMatchProperty>- Returns:
- a new instance of
CfnRoute.GrpcRouteMatchProperty - Throws:
NullPointerException- if any required attribute was not provided
-