Class CfnDHCPOptionsProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnDHCPOptionsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDHCPOptionsProps>
- Enclosing interface:
- CfnDHCPOptionsProps
@Stability(Stable)
public static final class CfnDHCPOptionsProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDHCPOptionsProps>
A builder for
CfnDHCPOptionsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.domainName(String domainName) Sets the value ofCfnDHCPOptionsProps.getDomainName()domainNameServers(List<String> domainNameServers) Sets the value ofCfnDHCPOptionsProps.getDomainNameServers()netbiosNameServers(List<String> netbiosNameServers) Sets the value ofCfnDHCPOptionsProps.getNetbiosNameServers()netbiosNodeType(Number netbiosNodeType) Sets the value ofCfnDHCPOptionsProps.getNetbiosNodeType()ntpServers(List<String> ntpServers) Sets the value ofCfnDHCPOptionsProps.getNtpServers()Sets the value ofCfnDHCPOptionsProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
Sets the value ofCfnDHCPOptionsProps.getDomainName()- Parameters:
domainName- This value is used to complete unqualified DNS hostnames. If you're using AmazonProvidedDNS inus-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 ).- Returns:
this
-
domainNameServers
@Stability(Stable) public CfnDHCPOptionsProps.Builder domainNameServers(List<String> domainNameServers) Sets the value ofCfnDHCPOptionsProps.getDomainNameServers()- Parameters:
domainNameServers- The IPv4 addresses of up to four domain name servers, orAmazonProvidedDNS. The default isAmazonProvidedDNS. To have your instance receive a custom DNS hostname as specified inDomainName, you must set this property to a custom DNS server.- Returns:
this
-
netbiosNameServers
@Stability(Stable) public CfnDHCPOptionsProps.Builder netbiosNameServers(List<String> netbiosNameServers) Sets the value ofCfnDHCPOptionsProps.getNetbiosNameServers()- Parameters:
netbiosNameServers- The IPv4 addresses of up to four NetBIOS name servers.- Returns:
this
-
netbiosNodeType
Sets the value ofCfnDHCPOptionsProps.getNetbiosNodeType()- Parameters:
netbiosNodeType- The NetBIOS node type (1, 2, 4, or 8). We recommend that you specify 2 (broadcast and multicast are not currently supported).- Returns:
this
-
ntpServers
Sets the value ofCfnDHCPOptionsProps.getNtpServers()- Parameters:
ntpServers- The IPv4 addresses of up to four Network Time Protocol (NTP) servers.- Returns:
this
-
tags
Sets the value ofCfnDHCPOptionsProps.getTags()- Parameters:
tags- Any tags assigned to the DHCP options set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDHCPOptionsProps>- Returns:
- a new instance of
CfnDHCPOptionsProps - Throws:
NullPointerException- if any required attribute was not provided
-