Class VirtualApplianceIpConfigurationProperties

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

public final class VirtualApplianceIpConfigurationProperties extends Object implements com.azure.json.JsonSerializable<VirtualApplianceIpConfigurationProperties>
Represents a single IP configuration properties.
  • Constructor Details

    • VirtualApplianceIpConfigurationProperties

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

    • primary

      public Boolean primary()
      Get the primary property: Whether or not this is primary IP configuration of the NIC.
      Returns:
      the primary value.
    • withPrimary

      public VirtualApplianceIpConfigurationProperties withPrimary(Boolean primary)
      Set the primary property: Whether or not this is primary IP configuration of the NIC.
      Parameters:
      primary - the primary value to set.
      Returns:
      the VirtualApplianceIpConfigurationProperties 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<VirtualApplianceIpConfigurationProperties>
      Throws:
      IOException
    • fromJson

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