Class VirtualNode.Builder

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

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

    • create

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

      @Stability(Stable) public VirtualNode.Builder accessLog(AccessLog accessLog)
      Access Logging Configuration for the virtual node.

      Default: - No access logging

      Parameters:
      accessLog - Access Logging Configuration for the virtual node. This parameter is required.
      Returns:
      this
    • backendDefaults

      @Stability(Stable) public VirtualNode.Builder backendDefaults(BackendDefaults backendDefaults)
      Default Configuration Virtual Node uses to communicate with Virtual Service.

      Default: - No Config

      Parameters:
      backendDefaults - Default Configuration Virtual Node uses to communicate with Virtual Service. This parameter is required.
      Returns:
      this
    • backends

      @Stability(Stable) public VirtualNode.Builder backends(List<? extends Backend> backends)
      Virtual Services that this is node expected to send outbound traffic to.

      Default: - No backends

      Parameters:
      backends - Virtual Services that this is node expected to send outbound traffic to. This parameter is required.
      Returns:
      this
    • listeners

      @Stability(Stable) public VirtualNode.Builder listeners(List<? extends VirtualNodeListener> listeners)
      Initial listener for the virtual node.

      Default: - No listeners

      Parameters:
      listeners - Initial listener for the virtual node. This parameter is required.
      Returns:
      this
    • serviceDiscovery

      @Stability(Stable) public VirtualNode.Builder serviceDiscovery(ServiceDiscovery serviceDiscovery)
      Defines how upstream clients will discover this VirtualNode.

      Default: - No Service Discovery

      Parameters:
      serviceDiscovery - Defines how upstream clients will discover this VirtualNode. This parameter is required.
      Returns:
      this
    • virtualNodeName

      @Stability(Stable) public VirtualNode.Builder virtualNodeName(String virtualNodeName)
      The name of the VirtualNode.

      Default: - A name is automatically determined

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

      @Stability(Stable) public VirtualNode.Builder mesh(IMesh mesh)
      The Mesh which the VirtualNode belongs to.

      Parameters:
      mesh - The Mesh which the VirtualNode belongs to. This parameter is required.
      Returns:
      this
    • build

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