public static interface HttpRoute.Builder extends SdkPojo, CopyableBuilder<HttpRoute.Builder,HttpRoute>
| Modifier and Type | Method and Description |
|---|---|
default HttpRoute.Builder |
action(Consumer<HttpRouteAction.Builder> action)
An object that represents the action to take if a match is determined.
|
HttpRoute.Builder |
action(HttpRouteAction action)
An object that represents the action to take if a match is determined.
|
default HttpRoute.Builder |
match(Consumer<HttpRouteMatch.Builder> match)
An object that represents the criteria for determining a request match.
|
HttpRoute.Builder |
match(HttpRouteMatch match)
An object that represents the criteria for determining a request match.
|
default HttpRoute.Builder |
retryPolicy(Consumer<HttpRetryPolicy.Builder> retryPolicy)
An object that represents a retry policy.
|
HttpRoute.Builder |
retryPolicy(HttpRetryPolicy retryPolicy)
An object that represents a retry policy.
|
default HttpRoute.Builder |
timeout(Consumer<HttpTimeout.Builder> timeout)
An object that represents types of timeouts.
|
HttpRoute.Builder |
timeout(HttpTimeout timeout)
An object that represents types of timeouts.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildHttpRoute.Builder action(HttpRouteAction action)
An object that represents the action to take if a match is determined.
action - An object that represents the action to take if a match is determined.default HttpRoute.Builder action(Consumer<HttpRouteAction.Builder> action)
An object that represents the action to take if a match is determined.
This is a convenience that creates an instance of theHttpRouteAction.Builder avoiding the need to
create one manually via HttpRouteAction.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to action(HttpRouteAction).action - a consumer that will call methods on HttpRouteAction.Builderaction(HttpRouteAction)HttpRoute.Builder match(HttpRouteMatch match)
An object that represents the criteria for determining a request match.
match - An object that represents the criteria for determining a request match.default HttpRoute.Builder match(Consumer<HttpRouteMatch.Builder> match)
An object that represents the criteria for determining a request match.
This is a convenience that creates an instance of theHttpRouteMatch.Builder avoiding the need to
create one manually via HttpRouteMatch.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to match(HttpRouteMatch).match - a consumer that will call methods on HttpRouteMatch.Buildermatch(HttpRouteMatch)HttpRoute.Builder retryPolicy(HttpRetryPolicy retryPolicy)
An object that represents a retry policy.
retryPolicy - An object that represents a retry policy.default HttpRoute.Builder retryPolicy(Consumer<HttpRetryPolicy.Builder> retryPolicy)
An object that represents a retry policy.
This is a convenience that creates an instance of theHttpRetryPolicy.Builder avoiding the need to
create one manually via HttpRetryPolicy.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to retryPolicy(HttpRetryPolicy).retryPolicy - a consumer that will call methods on HttpRetryPolicy.BuilderretryPolicy(HttpRetryPolicy)HttpRoute.Builder timeout(HttpTimeout timeout)
An object that represents types of timeouts.
timeout - An object that represents types of timeouts.default HttpRoute.Builder timeout(Consumer<HttpTimeout.Builder> timeout)
An object that represents types of timeouts.
This is a convenience that creates an instance of theHttpTimeout.Builder avoiding the need to create
one manually via HttpTimeout.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to timeout(HttpTimeout).timeout - a consumer that will call methods on HttpTimeout.Buildertimeout(HttpTimeout)Copyright © 2021. All rights reserved.