java.lang.Object
com.azure.resourcemanager.netapp.models.NicInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<NicInfo>

public final class NicInfo extends Object implements com.azure.json.JsonSerializable<NicInfo>
NIC information NIC information and list of volumes for which the NIC has the primary mount ip address.
  • Constructor Details

    • NicInfo

      public NicInfo()
      Creates an instance of NicInfo class.
  • Method Details

    • ipAddress

      public String ipAddress()
      Get the ipAddress property: ipAddress.
      Returns:
      the ipAddress value.
    • volumeResourceIds

      public List<String> volumeResourceIds()
      Get the volumeResourceIds property: Volume resource Ids.
      Returns:
      the volumeResourceIds value.
    • withVolumeResourceIds

      public NicInfo withVolumeResourceIds(List<String> volumeResourceIds)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<NicInfo>
      Throws:
      IOException
    • fromJson

      public static NicInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.