Class CfnDHCPOptionsMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnDHCPOptionsMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDHCPOptionsMixinProps>
- Enclosing interface:
CfnDHCPOptionsMixinProps
@Stability(Stable)
public static final class CfnDHCPOptionsMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDHCPOptionsMixinProps>
A builder for
CfnDHCPOptionsMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.domainName(String domainName) Sets the value ofCfnDHCPOptionsMixinProps.getDomainName()domainNameServers(List<String> domainNameServers) Sets the value ofCfnDHCPOptionsMixinProps.getDomainNameServers()ipv6AddressPreferredLeaseTime(Number ipv6AddressPreferredLeaseTime) Sets the value ofCfnDHCPOptionsMixinProps.getIpv6AddressPreferredLeaseTime()netbiosNameServers(List<String> netbiosNameServers) Sets the value ofCfnDHCPOptionsMixinProps.getNetbiosNameServers()netbiosNodeType(Number netbiosNodeType) Sets the value ofCfnDHCPOptionsMixinProps.getNetbiosNodeType()ntpServers(List<String> ntpServers) Sets the value ofCfnDHCPOptionsMixinProps.getNtpServers()Sets the value ofCfnDHCPOptionsMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
Sets the value ofCfnDHCPOptionsMixinProps.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 CfnDHCPOptionsMixinProps.Builder domainNameServers(List<String> domainNameServers) Sets the value ofCfnDHCPOptionsMixinProps.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
-
ipv6AddressPreferredLeaseTime
@Stability(Stable) public CfnDHCPOptionsMixinProps.Builder ipv6AddressPreferredLeaseTime(Number ipv6AddressPreferredLeaseTime) Sets the value ofCfnDHCPOptionsMixinProps.getIpv6AddressPreferredLeaseTime()- Parameters:
ipv6AddressPreferredLeaseTime- A value (in seconds, minutes, hours, or years) for how frequently a running instance with an IPv6 assigned to it goes through DHCPv6 lease renewal. Acceptable values are between 140 and 2147483647 seconds (approximately 68 years). If no value is entered, the default lease time is 140 seconds. If you use long-term addressing for EC2 instances, you can increase the lease time and avoid frequent lease renewal requests. Lease renewal typically occurs when half of the lease time has elapsed.- Returns:
this
-
netbiosNameServers
@Stability(Stable) public CfnDHCPOptionsMixinProps.Builder netbiosNameServers(List<String> netbiosNameServers) Sets the value ofCfnDHCPOptionsMixinProps.getNetbiosNameServers()- Parameters:
netbiosNameServers- The IPv4 addresses of up to four NetBIOS name servers.- Returns:
this
-
netbiosNodeType
Sets the value ofCfnDHCPOptionsMixinProps.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 ofCfnDHCPOptionsMixinProps.getNtpServers()- Parameters:
ntpServers- The IPv4 addresses of up to four Network Time Protocol (NTP) servers.- Returns:
this
-
tags
Sets the value ofCfnDHCPOptionsMixinProps.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<CfnDHCPOptionsMixinProps>- Returns:
- a new instance of
CfnDHCPOptionsMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-