Class HubPublicIpAddresses

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

public final class HubPublicIpAddresses extends Object implements com.azure.json.JsonSerializable<HubPublicIpAddresses>
Public IP addresses associated with azure firewall.
  • Constructor Details

    • HubPublicIpAddresses

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

    • addresses

      public List<AzureFirewallPublicIpAddress> addresses()
      Get the addresses property: The list of Public IP addresses associated with azure firewall or IP addresses to be retained.
      Returns:
      the addresses value.
    • withAddresses

      public HubPublicIpAddresses withAddresses(List<AzureFirewallPublicIpAddress> addresses)
      Set the addresses property: The list of Public IP addresses associated with azure firewall or IP addresses to be retained.
      Parameters:
      addresses - the addresses value to set.
      Returns:
      the HubPublicIpAddresses object itself.
    • count

      public Integer count()
      Get the count property: The number of Public IP addresses associated with azure firewall.
      Returns:
      the count value.
    • withCount

      public HubPublicIpAddresses withCount(Integer count)
      Set the count property: The number of Public IP addresses associated with azure firewall.
      Parameters:
      count - the count value to set.
      Returns:
      the HubPublicIpAddresses 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<HubPublicIpAddresses>
      Throws:
      IOException
    • fromJson

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