Class VirtualService.Builder

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

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

    • create

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

      @Stability(Stable) public VirtualService.Builder virtualServiceProvider(VirtualServiceProvider virtualServiceProvider)
      The VirtualNode or VirtualRouter which the VirtualService uses as its provider.

      Parameters:
      virtualServiceProvider - The VirtualNode or VirtualRouter which the VirtualService uses as its provider. This parameter is required.
      Returns:
      this
    • virtualServiceName

      @Stability(Stable) public VirtualService.Builder virtualServiceName(String virtualServiceName)
      The name of the VirtualService.

      It is recommended this follows the fully-qualified domain name format, such as "my-service.default.svc.cluster.local".

      Example value: service.domain.local

      Default: - A name is automatically generated

      Parameters:
      virtualServiceName - The name of the VirtualService. This parameter is required.
      Returns:
      this
    • build

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