Class CfnDHCPOptions.Builder

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

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

    • create

      @Stability(Stable) public static CfnDHCPOptions.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnDHCPOptions.Builder.
    • domainName

      @Stability(Stable) public CfnDHCPOptions.Builder domainName(String domainName)
      This value is used to complete unqualified DNS hostnames.

      If you're using AmazonProvidedDNS in us-east-1 , specify ec2.internal . If you're using AmazonProvidedDNS in another Region, specify region . compute.internal (for example, ap-northeast-1.compute.internal ). Otherwise, specify a domain name (for example, MyCompany.com ).

      Parameters:
      domainName - This value is used to complete unqualified DNS hostnames. This parameter is required.
      Returns:
      this
    • domainNameServers

      @Stability(Stable) public CfnDHCPOptions.Builder domainNameServers(List<String> domainNameServers)
      The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS .

      The default is AmazonProvidedDNS . To have your instance receive a custom DNS hostname as specified in DomainName , you must set this property to a custom DNS server.

      Parameters:
      domainNameServers - The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS . This parameter is required.
      Returns:
      this
    • netbiosNameServers

      @Stability(Stable) public CfnDHCPOptions.Builder netbiosNameServers(List<String> netbiosNameServers)
      The IPv4 addresses of up to four NetBIOS name servers.

      Parameters:
      netbiosNameServers - The IPv4 addresses of up to four NetBIOS name servers. This parameter is required.
      Returns:
      this
    • netbiosNodeType

      @Stability(Stable) public CfnDHCPOptions.Builder netbiosNodeType(Number netbiosNodeType)
      The NetBIOS node type (1, 2, 4, or 8).

      We recommend that you specify 2 (broadcast and multicast are not currently supported).

      Parameters:
      netbiosNodeType - The NetBIOS node type (1, 2, 4, or 8). This parameter is required.
      Returns:
      this
    • ntpServers

      @Stability(Stable) public CfnDHCPOptions.Builder ntpServers(List<String> ntpServers)
      The IPv4 addresses of up to four Network Time Protocol (NTP) servers.

      Parameters:
      ntpServers - The IPv4 addresses of up to four Network Time Protocol (NTP) servers. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnDHCPOptions.Builder tags(List<? extends CfnTag> tags)
      Any tags assigned to the DHCP options set.

      Parameters:
      tags - Any tags assigned to the DHCP options set. This parameter is required.
      Returns:
      this
    • build

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