Interface HttpRoute.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<HttpRoute.Builder,HttpRoute>,SdkBuilder<HttpRoute.Builder,HttpRoute>,SdkPojo
- Enclosing class:
- HttpRoute
public static interface HttpRoute.Builder extends SdkPojo, CopyableBuilder<HttpRoute.Builder,HttpRoute>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default HttpRoute.Builderaction(Consumer<HttpRouteAction.Builder> action)An object that represents the action to take if a match is determined.HttpRoute.Builderaction(HttpRouteAction action)An object that represents the action to take if a match is determined.default HttpRoute.Buildermatch(Consumer<HttpRouteMatch.Builder> match)An object that represents the criteria for determining a request match.HttpRoute.Buildermatch(HttpRouteMatch match)An object that represents the criteria for determining a request match.default HttpRoute.BuilderretryPolicy(Consumer<HttpRetryPolicy.Builder> retryPolicy)An object that represents a retry policy.HttpRoute.BuilderretryPolicy(HttpRetryPolicy retryPolicy)An object that represents a retry policy.default HttpRoute.Buildertimeout(Consumer<HttpTimeout.Builder> timeout)An object that represents types of timeouts.HttpRoute.Buildertimeout(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 Detail
-
action
HttpRoute.Builder action(HttpRouteAction 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
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 method that creates an instance of theHttpRouteAction.Builderavoiding the need to create one manually viaHttpRouteAction.builder().When the
Consumercompletes,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:
action(HttpRouteAction)
-
match
HttpRoute.Builder match(HttpRouteMatch 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
default HttpRoute.Builder match(Consumer<HttpRouteMatch.Builder> match)
An object that represents the criteria for determining a request match.
This is a convenience method that creates an instance of theHttpRouteMatch.Builderavoiding the need to create one manually viaHttpRouteMatch.builder().When the
Consumercompletes,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:
match(HttpRouteMatch)
-
retryPolicy
HttpRoute.Builder retryPolicy(HttpRetryPolicy 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
default HttpRoute.Builder retryPolicy(Consumer<HttpRetryPolicy.Builder> retryPolicy)
An object that represents a retry policy.
This is a convenience method that creates an instance of theHttpRetryPolicy.Builderavoiding the need to create one manually viaHttpRetryPolicy.builder().When the
Consumercompletes,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:
retryPolicy(HttpRetryPolicy)
-
timeout
HttpRoute.Builder timeout(HttpTimeout 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
default HttpRoute.Builder timeout(Consumer<HttpTimeout.Builder> timeout)
An object that represents types of timeouts.
This is a convenience method that creates an instance of theHttpTimeout.Builderavoiding the need to create one manually viaHttpTimeout.builder().When the
Consumercompletes,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:
timeout(HttpTimeout)
-
-