Class PrivateDnsNamespace.Builder

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

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

    • create

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

      @Stability(Stable) public PrivateDnsNamespace.Builder name(String name)
      A name for the Namespace.

      Parameters:
      name - A name for the Namespace. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public PrivateDnsNamespace.Builder description(String description)
      A description of the Namespace.

      Default: none

      Parameters:
      description - A description of the Namespace. This parameter is required.
      Returns:
      this
    • vpc

      @Stability(Stable) public PrivateDnsNamespace.Builder vpc(IVpc vpc)
      The Amazon VPC that you want to associate the namespace with.

      Parameters:
      vpc - The Amazon VPC that you want to associate the namespace with. This parameter is required.
      Returns:
      this
    • build

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