Share via


NicIpAddressSettings Class

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

Implements

public final class NicIpAddressSettings
implements JsonSerializable<NicIpAddressSettings>

IP address information for a virtual network adapter reported by the fabric.

Constructor Summary

Constructor Description
NicIpAddressSettings()

Creates an instance of NicIpAddressSettings class.

Method Summary

Modifier and Type Method and Description
String allocationMethod()

Get the allocationMethod property: Gets the ip address allocation method.

static NicIpAddressSettings fromJson(JsonReader jsonReader)

Reads an instance of NicIpAddressSettings from the JsonReader.

String ipAddress()

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

String subnetMask()

Get the subnetMask property: Gets the mask.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

NicIpAddressSettings

public NicIpAddressSettings()

Creates an instance of NicIpAddressSettings class.

Method Details

allocationMethod

public String allocationMethod()

Get the allocationMethod property: Gets the ip address allocation method.

Returns:

the allocationMethod value.

fromJson

public static NicIpAddressSettings fromJson(JsonReader jsonReader)

Reads an instance of NicIpAddressSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NicIpAddressSettings 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 NicIpAddressSettings.

ipAddress

public String ipAddress()

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

Returns:

the ipAddress value.

subnetMask

public String subnetMask()

Get the subnetMask property: Gets the mask.

Returns:

the subnetMask value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to