NicIpSettings Class
- java.
lang. Object - com.
azure. resourcemanager. connectedvmware. models. NicIpSettings
- com.
Implements
public final class NicIpSettings
implements JsonSerializable<NicIpSettings>
Defines the network interface ip settings.
Constructor Summary
| Constructor | Description |
|---|---|
| NicIpSettings() |
Creates an instance of Nic |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Ip |
allocationMethod()
Get the allocation |
| List<String> |
dnsServers()
Get the dns |
|
static
Nic |
fromJson(JsonReader jsonReader)
Reads an instance of Nic |
| List<String> |
gateway()
Get the gateway property: Gets or sets the gateway. |
| String |
ipAddress()
Get the ip |
|
List<Nic |
ipAddressInfo()
Get the ip |
| String |
primaryWinsServer()
Get the primary |
| String |
secondaryWinsServer()
Get the secondary |
| String |
subnetMask()
Get the subnet |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Nic |
withAllocationMethod(IpAddressAllocationMethod allocationMethod)
Set the allocation |
|
Nic |
withDnsServers(List<String> dnsServers)
Set the dns |
|
Nic |
withGateway(List<String> gateway)
Set the gateway property: Gets or sets the gateway. |
|
Nic |
withIpAddress(String ipAddress)
Set the ip |
|
Nic |
withSubnetMask(String subnetMask)
Set the subnet |
Methods inherited from java.lang.Object
Constructor Details
NicIpSettings
public NicIpSettings()
Creates an instance of NicIpSettings class.
Method Details
allocationMethod
public IpAddressAllocationMethod allocationMethod()
Get the allocationMethod property: Gets or sets the nic allocation method.
Returns:
dnsServers
public List<String> dnsServers()
Get the dnsServers property: Gets or sets the dns servers.
Returns:
fromJson
public static NicIpSettings fromJson(JsonReader jsonReader)
Reads an instance of NicIpSettings from the JsonReader.
Parameters:
Returns:
Throws:
gateway
public List<String> gateway()
Get the gateway property: Gets or sets the gateway.
Returns:
ipAddress
public String ipAddress()
Get the ipAddress property: Gets or sets the ip address for the nic.
Returns:
ipAddressInfo
public List<NicIpAddressSettings> 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:
primaryWinsServer
public String primaryWinsServer()
Get the primaryWinsServer property: Gets or sets the primary server.
Returns:
secondaryWinsServer
public String secondaryWinsServer()
Get the secondaryWinsServer property: Gets or sets the secondary server.
Returns:
subnetMask
public String subnetMask()
Get the subnetMask property: Gets or sets the mask.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAllocationMethod
public NicIpSettings withAllocationMethod(IpAddressAllocationMethod allocationMethod)
Set the allocationMethod property: Gets or sets the nic allocation method.
Parameters:
Returns:
withDnsServers
public NicIpSettings withDnsServers(List<String> dnsServers)
Set the dnsServers property: Gets or sets the dns servers.
Parameters:
Returns:
withGateway
public NicIpSettings withGateway(List<String> gateway)
Set the gateway property: Gets or sets the gateway.
Parameters:
Returns:
withIpAddress
public NicIpSettings withIpAddress(String ipAddress)
Set the ipAddress property: Gets or sets the ip address for the nic.
Parameters:
Returns:
withSubnetMask
public NicIpSettings withSubnetMask(String subnetMask)
Set the subnetMask property: Gets or sets the mask.
Parameters:
Returns: