public static interface RouteSpec.Builder extends SdkPojo, CopyableBuilder<RouteSpec.Builder,RouteSpec>
Modifier and Type | Method and Description |
---|---|
default RouteSpec.Builder |
httpRoute(Consumer<HttpRoute.Builder> httpRoute)
The HTTP routing information for the route.
|
RouteSpec.Builder |
httpRoute(HttpRoute httpRoute)
The HTTP routing information for the route.
|
copy
applyMutation, build
RouteSpec.Builder httpRoute(HttpRoute httpRoute)
The HTTP routing information for the route.
httpRoute
- The HTTP routing information for the route.default RouteSpec.Builder httpRoute(Consumer<HttpRoute.Builder> httpRoute)
The HTTP routing information for the route.
This is a convenience that creates an instance of theHttpRoute.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)
.httpRoute
- a consumer that will call methods on HttpRoute.Builder
httpRoute(HttpRoute)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.