Class NicInfo
java.lang.Object
com.azure.resourcemanager.netapp.models.NicInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NicInfo>
NIC information
NIC information and list of volumes for which the NIC has the primary mount ip address.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NicInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NicInfo from the JsonReader.Get the ipAddress property: ipAddress.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the volumeResourceIds property: Volume resource Ids.withVolumeResourceIds(List<String> volumeResourceIds) Set the volumeResourceIds property: Volume resource Ids.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NicInfo
public NicInfo()Creates an instance of NicInfo class.
-
-
Method Details
-
ipAddress
Get the ipAddress property: ipAddress.- Returns:
- the ipAddress value.
-
volumeResourceIds
Get the volumeResourceIds property: Volume resource Ids.- Returns:
- the volumeResourceIds value.
-
withVolumeResourceIds
Set the volumeResourceIds property: Volume resource Ids.- Parameters:
volumeResourceIds- the volumeResourceIds value to set.- Returns:
- the NicInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NicInfo>- Throws:
IOException
-
fromJson
Reads an instance of NicInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NicInfo 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 NicInfo.
-