Interface GrpcRouteMatch.Builder

All Superinterfaces:
Buildable, CopyableBuilder<GrpcRouteMatch.Builder,GrpcRouteMatch>, SdkBuilder<GrpcRouteMatch.Builder,GrpcRouteMatch>, SdkPojo
Enclosing class:
GrpcRouteMatch

public static interface GrpcRouteMatch.Builder extends SdkPojo, CopyableBuilder<GrpcRouteMatch.Builder,GrpcRouteMatch>
  • Method Details

    • metadata

      An object that represents the data to match from the request.

      Parameters:
      metadata - An object that represents the data to match from the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      An object that represents the data to match from the request.

      Parameters:
      metadata - An object that represents the data to match from the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      An object that represents the data to match from the request.

      This is a convenience method that creates an instance of the GrpcRouteMetadata.Builder avoiding the need to create one manually via GrpcRouteMetadata.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metadata(List<GrpcRouteMetadata>).

      Parameters:
      metadata - a consumer that will call methods on GrpcRouteMetadata.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • methodName

      GrpcRouteMatch.Builder methodName(String methodName)

      The method name to match from the request. If you specify a name, you must also specify a serviceName.

      Parameters:
      methodName - The method name to match from the request. If you specify a name, you must also specify a serviceName.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • port

      The port number to match on.

      Parameters:
      port - The port number to match on.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serviceName

      GrpcRouteMatch.Builder serviceName(String serviceName)

      The fully qualified domain name for the service to match from the request.

      Parameters:
      serviceName - The fully qualified domain name for the service to match from the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.