Class RouteSpecOptionsBase.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.RouteSpecOptionsBase.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RouteSpecOptionsBase>
- Enclosing interface:
RouteSpecOptionsBase
@Stability(Stable)
public static final class RouteSpecOptionsBase.Builder
extends Object
implements software.amazon.jsii.Builder<RouteSpecOptionsBase>
A builder for
RouteSpecOptionsBase
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofRouteSpecOptionsBase.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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:
build
in interfacesoftware.amazon.jsii.Builder<RouteSpecOptionsBase>
- Returns:
- a new instance of
RouteSpecOptionsBase
- Throws:
NullPointerException
- if any required attribute was not provided
-