Interface RouteSpec.Builder

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

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

    • grpcRoute

      RouteSpec.Builder grpcRoute(GrpcRoute grpcRoute)

      An object that represents the specification of a gRPC route.

      Parameters:
      grpcRoute - An object that represents the specification of a gRPC route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • grpcRoute

      default RouteSpec.Builder grpcRoute(Consumer<GrpcRoute.Builder> grpcRoute)

      An object that represents the specification of a gRPC route.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to grpcRoute(GrpcRoute).

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

      RouteSpec.Builder http2Route(HttpRoute http2Route)

      An object that represents the specification of an HTTP/2 route.

      Parameters:
      http2Route - An object that represents the specification of an HTTP/2 route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • http2Route

      default RouteSpec.Builder http2Route(Consumer<HttpRoute.Builder> http2Route)

      An object that represents the specification of an HTTP/2 route.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to http2Route(HttpRoute).

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

      RouteSpec.Builder httpRoute(HttpRoute httpRoute)

      An object that represents the specification of an HTTP route.

      Parameters:
      httpRoute - An object that represents the specification of an HTTP route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • httpRoute

      default RouteSpec.Builder httpRoute(Consumer<HttpRoute.Builder> httpRoute)

      An object that represents the specification of an HTTP route.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to httpRoute(HttpRoute).

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

      RouteSpec.Builder priority(Integer priority)

      The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.

      Parameters:
      priority - The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tcpRoute

      RouteSpec.Builder tcpRoute(TcpRoute tcpRoute)

      An object that represents the specification of a TCP route.

      Parameters:
      tcpRoute - An object that represents the specification of a TCP route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tcpRoute

      default RouteSpec.Builder tcpRoute(Consumer<TcpRoute.Builder> tcpRoute)

      An object that represents the specification of a TCP route.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tcpRoute(TcpRoute).

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