Package com.vmware.nsx_policy.model
Class DhcpConfig.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.DhcpConfig.Builder
-
- Enclosing class:
- DhcpConfig
public static final class DhcpConfig.Builder extends java.lang.ObjectBuilder class forDhcpConfig.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofDhcpConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DhcpConfigbuild()DhcpConfig.BuildersetDhcpRelayConfigPath(java.lang.String dhcpRelayConfigPath)Policy path of DHCP-relay-config.DhcpConfig.BuildersetDnsClientConfig(DnsClientConfig dnsClientConfig)DhcpConfig.BuildersetEnableDhcp(java.lang.Boolean enableDhcp)If activated, the DHCP server will be configured based on IP address type.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofDhcpConfig.
-
-
Method Detail
-
setDhcpRelayConfigPath
public DhcpConfig.Builder setDhcpRelayConfigPath(java.lang.String dhcpRelayConfigPath)
Policy path of DHCP-relay-config. If configured then all the subnets will be configured with the DHCP relay server. If not specified, then the local DHCP server will be configured for all connected subnets.- Parameters:
dhcpRelayConfigPath- New value for the property.
-
setDnsClientConfig
public DhcpConfig.Builder setDnsClientConfig(DnsClientConfig dnsClientConfig)
- Parameters:
dnsClientConfig- New value for the property.
-
setEnableDhcp
public DhcpConfig.Builder setEnableDhcp(java.lang.Boolean enableDhcp)
If activated, the DHCP server will be configured based on IP address type. If deactivated then neither DHCP server nor relay shall be configured.- Parameters:
enableDhcp- New value for the property.
-
build
public DhcpConfig build()
-
-