Interface HttpRoute.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<HttpRoute.Builder,
,HttpRoute> SdkBuilder<HttpRoute.Builder,
,HttpRoute> SdkPojo
- Enclosing class:
HttpRoute
-
Method Summary
Modifier and TypeMethodDescriptiondefault HttpRoute.Builder
action
(Consumer<HttpRouteAction.Builder> action) An object that represents the action to take if a match is determined.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.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.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.timeout
(HttpTimeout timeout) An object that represents types of timeouts.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
action
An object that represents the action to take if a match is determined.
- Parameters:
action
- An object that represents the action to take if a match is determined.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
An object that represents the action to take if a match is determined.
This is a convenience method that creates an instance of theHttpRouteAction.Builder
avoiding the need to create one manually viaHttpRouteAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaction(HttpRouteAction)
.- Parameters:
action
- a consumer that will call methods onHttpRouteAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
match
An object that represents the criteria for determining a request match.
- Parameters:
match
- An object that represents the criteria for determining a request match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
match
An object that represents the criteria for determining a request match.
This is a convenience method that creates an instance of theHttpRouteMatch.Builder
avoiding the need to create one manually viaHttpRouteMatch.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomatch(HttpRouteMatch)
.- Parameters:
match
- a consumer that will call methods onHttpRouteMatch.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
retryPolicy
An object that represents a retry policy.
- Parameters:
retryPolicy
- An object that represents a retry policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retryPolicy
An object that represents a retry policy.
This is a convenience method that creates an instance of theHttpRetryPolicy.Builder
avoiding the need to create one manually viaHttpRetryPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toretryPolicy(HttpRetryPolicy)
.- Parameters:
retryPolicy
- a consumer that will call methods onHttpRetryPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeout
An object that represents types of timeouts.
- Parameters:
timeout
- An object that represents types of timeouts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeout
An object that represents types of timeouts.
This is a convenience method that creates an instance of theHttpTimeout.Builder
avoiding the need to create one manually viaHttpTimeout.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeout(HttpTimeout)
.- Parameters:
timeout
- a consumer that will call methods onHttpTimeout.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-