Class VirtualApplianceNicProperties

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

public final class VirtualApplianceNicProperties extends Object implements com.azure.json.JsonSerializable<VirtualApplianceNicProperties>
Network Virtual Appliance NIC properties.
  • Constructor Details

    • VirtualApplianceNicProperties

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

    • nicType

      public NicTypeInResponse nicType()
      Get the nicType property: NIC type - PublicNic, PrivateNic, or AdditionalNic.
      Returns:
      the nicType value.
    • name

      public String name()
      Get the name property: NIC name.
      Returns:
      the name value.
    • publicIpAddress

      public String publicIpAddress()
      Get the publicIpAddress property: Public IP address.
      Returns:
      the publicIpAddress value.
    • privateIpAddress

      public String privateIpAddress()
      Get the privateIpAddress property: Private IP address.
      Returns:
      the privateIpAddress value.
    • instanceName

      public String instanceName()
      Get the instanceName property: Instance on which nic is attached.
      Returns:
      the instanceName value.
    • 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<VirtualApplianceNicProperties>
      Throws:
      IOException
    • fromJson

      public static VirtualApplianceNicProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VirtualApplianceNicProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VirtualApplianceNicProperties 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 VirtualApplianceNicProperties.