Package com.vmware.nsx_policy.model
Class VpcSubnetDhcpConfig.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.VpcSubnetDhcpConfig.Builder
-
- Enclosing class:
- VpcSubnetDhcpConfig
public static final class VpcSubnetDhcpConfig.Builder extends java.lang.Object
Builder class forVpcSubnetDhcpConfig
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofVpcSubnetDhcpConfig
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VpcSubnetDhcpConfig
build()
VpcSubnetDhcpConfig.Builder
setDhcpRelayConfigPath(java.lang.String dhcpRelayConfigPath)
Policy path of DHCP-relay-config.VpcSubnetDhcpConfig.Builder
setDnsClientConfig(DnsClientConfig dnsClientConfig)
VpcSubnetDhcpConfig.Builder
setEnableDhcp(java.lang.Boolean enableDhcp)
If activated, the DHCP server will be configured based on IP address type.VpcSubnetDhcpConfig.Builder
setStaticPoolConfig(StaticPoolConfig staticPoolConfig)
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofVpcSubnetDhcpConfig
.
-
-
Method Detail
-
setDhcpRelayConfigPath
public VpcSubnetDhcpConfig.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 VpcSubnetDhcpConfig.Builder setDnsClientConfig(DnsClientConfig dnsClientConfig)
- Parameters:
dnsClientConfig
- New value for the property.
-
setEnableDhcp
public VpcSubnetDhcpConfig.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.
-
setStaticPoolConfig
public VpcSubnetDhcpConfig.Builder setStaticPoolConfig(StaticPoolConfig staticPoolConfig)
- Parameters:
staticPoolConfig
- New value for the property.
-
build
public VpcSubnetDhcpConfig build()
-
-