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 Summary

    Constructors
    Constructor
    Description
    Creates an instance of VirtualApplianceNicProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of VirtualApplianceNicProperties from the JsonReader.
    Get the instanceName property: Instance on which nic is attached.
    Get the name property: NIC name.
    Get the nicType property: NIC type - PublicNic, PrivateNic, or AdditionalNic; AdditionalPrivateNic and AdditionalPublicNic are only supported for NVAs deployed in VNets.
    Get the privateIpAddress property: Private IP address.
    Get the publicIpAddress property: Public IP address.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • 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; AdditionalPrivateNic and AdditionalPublicNic are only supported for NVAs deployed in VNets.
      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.