Class CfnRoutePropsMixin.GrpcRouteMatchProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appmesh.CfnRoutePropsMixin.GrpcRouteMatchProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoutePropsMixin.GrpcRouteMatchProperty>
- Enclosing interface:
CfnRoutePropsMixin.GrpcRouteMatchProperty
@Stability(Stable)
public static final class CfnRoutePropsMixin.GrpcRouteMatchProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoutePropsMixin.GrpcRouteMatchProperty>
A builder for
CfnRoutePropsMixin.GrpcRouteMatchProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRoutePropsMixin.GrpcRouteMatchProperty.getMetadata()metadata(IResolvable metadata) Sets the value ofCfnRoutePropsMixin.GrpcRouteMatchProperty.getMetadata()methodName(String methodName) Sets the value ofCfnRoutePropsMixin.GrpcRouteMatchProperty.getMethodName()Sets the value ofCfnRoutePropsMixin.GrpcRouteMatchProperty.getPort()serviceName(String serviceName) Sets the value ofCfnRoutePropsMixin.GrpcRouteMatchProperty.getServiceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metadata
@Stability(Stable) public CfnRoutePropsMixin.GrpcRouteMatchProperty.Builder metadata(IResolvable metadata) Sets the value ofCfnRoutePropsMixin.GrpcRouteMatchProperty.getMetadata()- Parameters:
metadata- An object that represents the data to match from the request.- Returns:
this
-
metadata
@Stability(Stable) public CfnRoutePropsMixin.GrpcRouteMatchProperty.Builder metadata(List<? extends Object> metadata) Sets the value ofCfnRoutePropsMixin.GrpcRouteMatchProperty.getMetadata()- Parameters:
metadata- An object that represents the data to match from the request.- Returns:
this
-
methodName
@Stability(Stable) public CfnRoutePropsMixin.GrpcRouteMatchProperty.Builder methodName(String methodName) Sets the value ofCfnRoutePropsMixin.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 ofCfnRoutePropsMixin.GrpcRouteMatchProperty.getPort()- Parameters:
port- The port number to match on.- Returns:
this
-
serviceName
@Stability(Stable) public CfnRoutePropsMixin.GrpcRouteMatchProperty.Builder serviceName(String serviceName) Sets the value ofCfnRoutePropsMixin.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<CfnRoutePropsMixin.GrpcRouteMatchProperty>- Returns:
- a new instance of
CfnRoutePropsMixin.GrpcRouteMatchProperty - Throws:
NullPointerException- if any required attribute was not provided
-