Package com.vmware.nsx_policy.model
Class SegmentDhcpV6Config.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.SegmentDhcpV6Config.Builder
-
- Enclosing class:
- SegmentDhcpV6Config
public static final class SegmentDhcpV6Config.Builder extends java.lang.Object
Builder class forSegmentDhcpV6Config
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofSegmentDhcpV6Config
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentDhcpV6Config
build()
SegmentDhcpV6Config.Builder
setDnsServers(java.util.List<java.lang.String> dnsServers)
IP address of DNS servers for subnet.SegmentDhcpV6Config.Builder
setDomainNames(java.util.List<java.lang.String> domainNames)
Domain names for subnet.SegmentDhcpV6Config.Builder
setExcludedRanges(java.util.List<java.lang.String> excludedRanges)
Excluded addresses to define dynamic ip allocation ranges.SegmentDhcpV6Config.Builder
setLeaseTime(java.lang.Long leaseTime)
DHCP lease time in seconds.SegmentDhcpV6Config.Builder
setPreferredTime(java.lang.Long preferredTime)
The length of time that a valid address is preferred.SegmentDhcpV6Config.Builder
setServerAddress(java.lang.String serverAddress)
IP address of the DHCP server in CIDR format.SegmentDhcpV6Config.Builder
setSntpServers(java.util.List<java.lang.String> sntpServers)
IPv6 address of SNTP servers for subnet.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofSegmentDhcpV6Config
.
-
-
Method Detail
-
setDomainNames
public SegmentDhcpV6Config.Builder setDomainNames(java.util.List<java.lang.String> domainNames)
Domain names for subnet.- Parameters:
domainNames
- New value for the property.
-
setExcludedRanges
public SegmentDhcpV6Config.Builder setExcludedRanges(java.util.List<java.lang.String> excludedRanges)
Excluded addresses to define dynamic ip allocation ranges. format: address-or-block-or-range- Parameters:
excludedRanges
- New value for the property.
-
setPreferredTime
public SegmentDhcpV6Config.Builder setPreferredTime(java.lang.Long preferredTime)
The length of time that a valid address is preferred. When the preferred lifetime expires, the address becomes deprecated. format: int64- Parameters:
preferredTime
- New value for the property.
-
setSntpServers
public SegmentDhcpV6Config.Builder setSntpServers(java.util.List<java.lang.String> sntpServers)
IPv6 address of SNTP servers for subnet. format: ipv6- Parameters:
sntpServers
- New value for the property.
-
setDnsServers
public SegmentDhcpV6Config.Builder setDnsServers(java.util.List<java.lang.String> dnsServers)
IP address of DNS servers for subnet. DNS server IP address must belong to the same address family as segment gateway_address property. format: ip- Parameters:
dnsServers
- New value for the property.
-
setLeaseTime
public SegmentDhcpV6Config.Builder setLeaseTime(java.lang.Long leaseTime)
DHCP lease time in seconds. When specified, this property overwrites lease time configured DHCP server config. format: int64- Parameters:
leaseTime
- New value for the property.
-
setServerAddress
public SegmentDhcpV6Config.Builder setServerAddress(java.lang.String serverAddress)
IP address of the DHCP server in CIDR format. The server_address is mandatory in case this segment has provided a dhcp_config_path and it represents a DHCP server config. If this SegmentDhcpConfig is a SegmentDhcpV4Config, the address must be an IPv4 address. If this is a SegmentDhcpV6Config, the address must be an IPv6 address. This address must not overlap the ip-ranges of the subnet, or the gateway address of the subnet, or the DHCP static-binding addresses of this segment. format: ip-cidr-block- Parameters:
serverAddress
- New value for the property.
-
build
public SegmentDhcpV6Config build()
-
-