Share via


NicIpSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.connectedvmware.models.NicIpSettings

Implements

public final class NicIpSettings
implements JsonSerializable<NicIpSettings>

Defines the network interface ip settings.

Constructor Summary

Constructor Description
NicIpSettings()

Creates an instance of NicIpSettings class.

Method Summary

Modifier and Type Method and Description
IpAddressAllocationMethod allocationMethod()

Get the allocationMethod property: Gets or sets the nic allocation method.

List<String> dnsServers()

Get the dnsServers property: Gets or sets the dns servers.

static NicIpSettings fromJson(JsonReader jsonReader)

Reads an instance of NicIpSettings from the JsonReader.

List<String> gateway()

Get the gateway property: Gets or sets the gateway.

String ipAddress()

Get the ipAddress property: Gets or sets the ip address for the nic.

List<NicIpAddressSettings> ipAddressInfo()

Get the ipAddressInfo property: Gets or sets the IP address information being reported for this NIC.

String primaryWinsServer()

Get the primaryWinsServer property: Gets or sets the primary server.

String secondaryWinsServer()

Get the secondaryWinsServer property: Gets or sets the secondary server.

String subnetMask()

Get the subnetMask property: Gets or sets the mask.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NicIpSettings withAllocationMethod(IpAddressAllocationMethod allocationMethod)

Set the allocationMethod property: Gets or sets the nic allocation method.

NicIpSettings withDnsServers(List<String> dnsServers)

Set the dnsServers property: Gets or sets the dns servers.

NicIpSettings withGateway(List<String> gateway)

Set the gateway property: Gets or sets the gateway.

NicIpSettings withIpAddress(String ipAddress)

Set the ipAddress property: Gets or sets the ip address for the nic.

NicIpSettings withSubnetMask(String subnetMask)

Set the subnetMask property: Gets or sets the mask.

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:

the allocationMethod value.

dnsServers

public List<String> dnsServers()

Get the dnsServers property: Gets or sets the dns servers.

Returns:

the dnsServers value.

fromJson

public static NicIpSettings fromJson(JsonReader jsonReader)

Reads an instance of NicIpSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NicIpSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the NicIpSettings.

gateway

public List<String> gateway()

Get the gateway property: Gets or sets the gateway.

Returns:

the gateway value.

ipAddress

public String ipAddress()

Get the ipAddress property: Gets or sets the ip address for the nic.

Returns:

the ipAddress value.

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:

the ipAddressInfo value.

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.

subnetMask

public String subnetMask()

Get the subnetMask property: Gets or sets the mask.

Returns:

the subnetMask value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

allocationMethod - the allocationMethod value to set.

Returns:

the NicIpSettings object itself.

withDnsServers

public NicIpSettings withDnsServers(List<String> dnsServers)

Set the dnsServers property: Gets or sets the dns servers.

Parameters:

dnsServers - the dnsServers value to set.

Returns:

the NicIpSettings object itself.

withGateway

public NicIpSettings withGateway(List<String> gateway)

Set the gateway property: Gets or sets the gateway.

Parameters:

gateway - the gateway value to set.

Returns:

the NicIpSettings object itself.

withIpAddress

public NicIpSettings withIpAddress(String ipAddress)

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.

withSubnetMask

public NicIpSettings withSubnetMask(String subnetMask)

Set the subnetMask property: Gets or sets the mask.

Parameters:

subnetMask - the subnetMask value to set.

Returns:

the NicIpSettings object itself.

Applies to