public final class NicIpSettings
extends Object
Defines the network interface ip settings.
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
Get the allocationMethod property: Gets or sets the nic allocation method.
Get the dnsServers property: Gets or sets the dns servers.
Get the gateway property: Gets or sets the gateway.
Get the ipAddress property: Gets or sets the ip address for the nic.
Get the ipAddressInfo property: Gets or sets the IP address information being reported for this NIC.
Get the primaryWinsServer property: Gets or sets the primary server.
Get the secondaryWinsServer property: Gets or sets the secondary server.
Get the subnetMask property: Gets or sets the mask.
void
Set the allocationMethod property: Gets or sets the nic allocation method.
Set the dnsServers property: Gets or sets the dns servers.
Set the gateway property: Gets or sets the gateway.
Set the ipAddress property: Gets or sets the ip address for the nic.
Set the subnetMask property: Gets or sets the mask.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
NicIpSettings
public NicIpSettings ()
Method Details
allocationMethod
Get the allocationMethod property: Gets or sets the nic allocation method.
Returns:
the allocationMethod value.
withAllocationMethod
Set the allocationMethod property: Gets or sets the nic allocation method.
Parameters:
allocationMethod
- the allocationMethod value to set.
Returns:
the NicIpSettings object itself.
dnsServers
Get the dnsServers property: Gets or sets the dns servers.
Returns:
the dnsServers value.
withDnsServers
Set the dnsServers property: Gets or sets the dns servers.
Parameters:
dnsServers
- the dnsServers value to set.
Returns:
the NicIpSettings object itself.
gateway
Get the gateway property: Gets or sets the gateway.
Returns:
the gateway value.
withGateway
Set the gateway property: Gets or sets the gateway.
Parameters:
gateway
- the gateway value to set.
Returns:
the NicIpSettings object itself.
ipAddress
Get the ipAddress property: Gets or sets the ip address for the nic.
Returns:
the ipAddress value.
withIpAddress
Set the ipAddress property: Gets or sets the ip address for the nic.
Parameters:
ipAddress
- the ipAddress value to set.
Returns:
the NicIpSettings object itself.
subnetMask
Get the subnetMask property: Gets or sets the mask.
Returns:
the subnetMask value.
withSubnetMask
Set the subnetMask property: Gets or sets the mask.
Parameters:
subnetMask
- the subnetMask value to set.
Returns:
the NicIpSettings object itself.
primaryWinsServer
public String primaryWinsServer ()
Get the primaryWinsServer property: Gets or sets the primary server.
Returns:
the primaryWinsServer value.
secondaryWinsServer
public String secondaryWinsServer ()
Get the secondaryWinsServer property: Gets or sets the secondary server.
Returns:
the secondaryWinsServer value.
ipAddressInfo
Get the ipAddressInfo property: Gets or sets the IP address information being reported for this NIC. This
contains the same IPv4 information above plus IPV6 information.
Returns:
the ipAddressInfo value.
validate
public void validate ()
Validates the instance.
Throws:
IllegalArgumentException
- thrown if the instance is not valid.