Class HttpRouteSpecOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.HttpRouteSpecOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpRouteSpecOptions>
- Enclosing interface:
HttpRouteSpecOptions
@Stability(Stable)
public static final class HttpRouteSpecOptions.Builder
extends Object
implements software.amazon.jsii.Builder<HttpRouteSpecOptions>
A builder for
HttpRouteSpecOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.match(HttpRouteMatch match) Sets the value ofHttpRouteSpecOptions.getMatch()Sets the value ofRouteSpecOptionsBase.getPriority()retryPolicy(HttpRetryPolicy retryPolicy) Sets the value ofHttpRouteSpecOptions.getRetryPolicy()timeout(HttpTimeout timeout) Sets the value ofHttpRouteSpecOptions.getTimeout()weightedTargets(List<? extends WeightedTarget> weightedTargets) Sets the value ofHttpRouteSpecOptions.getWeightedTargets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
weightedTargets
@Stability(Stable) public HttpRouteSpecOptions.Builder weightedTargets(List<? extends WeightedTarget> weightedTargets) Sets the value ofHttpRouteSpecOptions.getWeightedTargets()- Parameters:
weightedTargets- List of targets that traffic is routed to when a request matches the route. This parameter is required.- Returns:
this
-
match
Sets the value ofHttpRouteSpecOptions.getMatch()- Parameters:
match- The criterion for determining a request match for this Route.- Returns:
this
-
retryPolicy
Sets the value ofHttpRouteSpecOptions.getRetryPolicy()- Parameters:
retryPolicy- The retry policy.- Returns:
this
-
timeout
Sets the value ofHttpRouteSpecOptions.getTimeout()- Parameters:
timeout- An object that represents a http timeout.- Returns:
this
-
priority
Sets the value ofRouteSpecOptionsBase.getPriority()- Parameters:
priority- The priority for the route. When a Virtual Router has multiple routes, route match is performed in the order of specified value, where 0 is the highest priority, and first matched route is selected.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpRouteSpecOptions>- Returns:
- a new instance of
HttpRouteSpecOptions - Throws:
NullPointerException- if any required attribute was not provided
-