Constructor and Description |
---|
Builder(IpFamily ipFamily)
Constructor with parameters for the required properties of
IpSpec . |
Modifier and Type | Method and Description |
---|---|
IpSpec |
build() |
IpSpec.Builder |
setDefaultGateway(java.lang.String defaultGateway)
The IP address of the Gateway for this interface.
|
IpSpec.Builder |
setDnsServers(java.util.List<java.lang.String> dnsServers)
The list of IP addresses of the DNS servers for this interface.
|
IpSpec.Builder |
setIpv4(Ipv4Spec ipv4)
If the family of the ip is IPV4, then this will point to IPv4 address
specification.
|
IpSpec.Builder |
setIpv6(Ipv6Spec ipv6)
If the family of the ip is IPV6, then this will point to IPv6 address
specification.
|
public IpSpec.Builder setIpv4(Ipv4Spec ipv4)
getIpFamily()
is com.vmware.vcenter.vcha.IpFamily#IP_V4
.ipv4
- New value for the property.public IpSpec.Builder setIpv6(Ipv6Spec ipv6)
getIpFamily()
is com.vmware.vcenter.vcha.IpFamily#IP_V6
.ipv6
- New value for the property.public IpSpec.Builder setDefaultGateway(java.lang.String defaultGateway)
null
, gateway will not be used for the network interface.defaultGateway
- New value for the property.public IpSpec.Builder setDnsServers(java.util.List<java.lang.String> dnsServers)
null
, DNS servers will not be used for the network interface.dnsServers
- New value for the property.public IpSpec build()