Class CfnRouteProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • meshName

      @Stability(Stable) public CfnRouteProps.Builder meshName(String meshName)
      Sets the value of CfnRouteProps.getMeshName()
      Parameters:
      meshName - The name of the service mesh to create the route in. This parameter is required.
      Returns:
      this
    • spec

      @Stability(Stable) public CfnRouteProps.Builder spec(IResolvable spec)
      Sets the value of CfnRouteProps.getSpec()
      Parameters:
      spec - The route specification to apply. This parameter is required.
      Returns:
      this
    • spec

      @Stability(Stable) public CfnRouteProps.Builder spec(CfnRoute.RouteSpecProperty spec)
      Sets the value of CfnRouteProps.getSpec()
      Parameters:
      spec - The route specification to apply. This parameter is required.
      Returns:
      this
    • virtualRouterName

      @Stability(Stable) public CfnRouteProps.Builder virtualRouterName(String virtualRouterName)
      Parameters:
      virtualRouterName - The name of the virtual router in which to create the route. This parameter is required. If the virtual router is in a shared mesh, then you must be the owner of the virtual router resource.
      Returns:
      this
    • meshOwner

      @Stability(Stable) public CfnRouteProps.Builder meshOwner(String meshOwner)
      Parameters:
      meshOwner - The AWS IAM account ID of the service mesh owner. If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes .
      Returns:
      this
    • routeName

      @Stability(Stable) public CfnRouteProps.Builder routeName(String routeName)
      Parameters:
      routeName - The name to use for the route.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnRouteProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnRouteProps.getTags()
      Parameters:
      tags - Optional metadata that you can apply to the route to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
      Returns:
      this
    • build

      @Stability(Stable) public CfnRouteProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnRouteProps>
      Returns:
      a new instance of CfnRouteProps
      Throws:
      NullPointerException - if any required attribute was not provided