Package com.vmware.nsx_policy.model
Class SegmentDhcpV4Config.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.SegmentDhcpV4Config.Builder
-
- Enclosing class:
- SegmentDhcpV4Config
public static final class SegmentDhcpV4Config.Builder extends java.lang.ObjectBuilder class forSegmentDhcpV4Config.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofSegmentDhcpV4Config.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentDhcpV4Configbuild()SegmentDhcpV4Config.BuildersetDnsServers(java.util.List<java.lang.String> dnsServers)IP address of DNS servers for subnet.SegmentDhcpV4Config.BuildersetLeaseTime(java.lang.Long leaseTime)DHCP lease time in seconds.SegmentDhcpV4Config.BuildersetOptions(DhcpV4Options options)SegmentDhcpV4Config.BuildersetServerAddress(java.lang.String serverAddress)IP address of the DHCP server in CIDR format.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofSegmentDhcpV4Config.
-
-
Method Detail
-
setOptions
public SegmentDhcpV4Config.Builder setOptions(DhcpV4Options options)
- Parameters:
options- New value for the property.
-
setDnsServers
public SegmentDhcpV4Config.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 SegmentDhcpV4Config.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 SegmentDhcpV4Config.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 SegmentDhcpV4Config build()
-
-