Class VirtualApplianceAdditionalNicProperties

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

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

    • VirtualApplianceAdditionalNicProperties

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

    • name

      public String name()
      Get the name property: Name of additional nic.
      Returns:
      the name value.
    • withName

      Set the name property: Name of additional nic.
      Parameters:
      name - the name value to set.
      Returns:
      the VirtualApplianceAdditionalNicProperties object itself.
    • hasPublicIp

      public Boolean hasPublicIp()
      Get the hasPublicIp property: Flag (true or false) for Intent for Public Ip on additional nic.
      Returns:
      the hasPublicIp value.
    • withHasPublicIp

      public VirtualApplianceAdditionalNicProperties withHasPublicIp(Boolean hasPublicIp)
      Set the hasPublicIp property: Flag (true or false) for Intent for Public Ip on additional nic.
      Parameters:
      hasPublicIp - the hasPublicIp value to set.
      Returns:
      the VirtualApplianceAdditionalNicProperties 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<VirtualApplianceAdditionalNicProperties>
      Throws:
      IOException
    • fromJson

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