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 Summary
Modifier and TypeMethodDescriptionbuild()
static CfnDHCPOptions.Builder
domainName
(String domainName) This value is used to complete unqualified DNS hostnames.domainNameServers
(List<String> domainNameServers) The IPv4 addresses of up to four domain name servers, orAmazonProvidedDNS
.netbiosNameServers
(List<String> netbiosNameServers) The IPv4 addresses of up to four NetBIOS name servers.netbiosNodeType
(Number netbiosNodeType) The NetBIOS node type (1, 2, 4, or 8).ntpServers
(List<String> ntpServers) The IPv4 addresses of up to four Network Time Protocol (NTP) servers.Any tags assigned to the DHCP options set.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnDHCPOptions.Builder
.
-
domainName
This value is used to complete unqualified DNS hostnames.If you're using AmazonProvidedDNS in
us-east-1
, specifyec2.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
The IPv4 addresses of up to four domain name servers, orAmazonProvidedDNS
.The default is
AmazonProvidedDNS
. To have your instance receive a custom DNS hostname as specified inDomainName
, you must set this property to a custom DNS server.- Parameters:
domainNameServers
- The IPv4 addresses of up to four domain name servers, orAmazonProvidedDNS
. 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
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
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
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDHCPOptions>
- Returns:
- a newly built instance of
CfnDHCPOptions
.
-