public static final class IPManagement.Builder
extends java.lang.Object
IPManagement
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
IPManagement . |
Modifier and Type | Method and Description |
---|---|
IPManagement |
build() |
IPManagement.Builder |
setDhcpEnabled(java.lang.Boolean dhcpEnabled)
IPManagement.getDhcpEnabled() If
set true, configures IP address using the DHCP server on the broadcast domain
unless the corresponding IPManagement.getIpAssignments()
are set. |
IPManagement.Builder |
setGatewayAddress(java.lang.String gatewayAddress)
IPManagement.getGatewayAddress()
is the IP address combined with the subnet prefix length (e.g. |
IPManagement.Builder |
setIpAssignments(java.util.List<IPAssignment> ipAssignments)
IPManagement.getIpAssignments()
are a list of roles that can be allocated to IP addresses. |
public Builder()
IPManagement
.public IPManagement.Builder setDhcpEnabled(java.lang.Boolean dhcpEnabled)
IPManagement.getDhcpEnabled()
If
set true, configures IP address using the DHCP server on the broadcast domain
unless the corresponding IPManagement.getIpAssignments()
are set. This property was added in vSphere API 8.0.0.1.
If null
this field defaults to true.dhcpEnabled
- New value for the property.public IPManagement.Builder setGatewayAddress(java.lang.String gatewayAddress)
IPManagement.getGatewayAddress()
is the IP address combined with the subnet prefix length (e.g. 192.168.1.1/24)
of the default gateway of this network. This property was added in vSphere API
8.0.0.1.
If IPManagement.getDhcpEnabled()
is
not set, or this is an NSX network, this address must be set.gatewayAddress
- New value for the property.public IPManagement.Builder setIpAssignments(java.util.List<IPAssignment> ipAssignments)
IPManagement.getIpAssignments()
are a list of roles that can be allocated to IP addresses. If IPManagement.getGatewayAddress()
is specified, these assignments must be on the same subnet. This property was
added in vSphere API 8.0.0.1.
These assignments are optional when using DHCP.ipAssignments
- New value for the property.public IPManagement build()