Class Route.Builder

java.lang.Object
software.amazon.awscdk.services.appmesh.Route.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Route>
Enclosing class:
Route

@Stability(Stable) public static final class Route.Builder extends Object implements software.amazon.jsii.Builder<Route>
A fluent builder for Route.
  • Method Details

    • create

      @Stability(Stable) public static Route.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of Route.Builder.
    • routeSpec

      @Stability(Stable) public Route.Builder routeSpec(RouteSpec routeSpec)
      Protocol specific spec.

      Parameters:
      routeSpec - Protocol specific spec. This parameter is required.
      Returns:
      this
    • routeName

      @Stability(Stable) public Route.Builder routeName(String routeName)
      The name of the route.

      Default: - An automatically generated name

      Parameters:
      routeName - The name of the route. This parameter is required.
      Returns:
      this
    • mesh

      @Stability(Stable) public Route.Builder mesh(IMesh mesh)
      The service mesh to define the route in.

      Parameters:
      mesh - The service mesh to define the route in. This parameter is required.
      Returns:
      this
    • virtualRouter

      @Stability(Stable) public Route.Builder virtualRouter(IVirtualRouter virtualRouter)
      The VirtualRouter the Route belongs to.

      Parameters:
      virtualRouter - The VirtualRouter the Route belongs to. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public Route build()
      Specified by:
      build in interface software.amazon.jsii.Builder<Route>
      Returns:
      a newly built instance of Route.