Class IpAddressGroup

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

public final class IpAddressGroup extends Object implements com.azure.json.JsonSerializable<IpAddressGroup>
CDN Ip address group.
  • Constructor Details

    • IpAddressGroup

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

    • deliveryRegion

      public String deliveryRegion()
      Get the deliveryRegion property: The delivery region of the ip address group.
      Returns:
      the deliveryRegion value.
    • withDeliveryRegion

      public IpAddressGroup withDeliveryRegion(String deliveryRegion)
      Set the deliveryRegion property: The delivery region of the ip address group.
      Parameters:
      deliveryRegion - the deliveryRegion value to set.
      Returns:
      the IpAddressGroup object itself.
    • ipv4Addresses

      public List<CidrIpAddress> ipv4Addresses()
      Get the ipv4Addresses property: The list of ip v4 addresses.
      Returns:
      the ipv4Addresses value.
    • withIpv4Addresses

      public IpAddressGroup withIpv4Addresses(List<CidrIpAddress> ipv4Addresses)
      Set the ipv4Addresses property: The list of ip v4 addresses.
      Parameters:
      ipv4Addresses - the ipv4Addresses value to set.
      Returns:
      the IpAddressGroup object itself.
    • ipv6Addresses

      public List<CidrIpAddress> ipv6Addresses()
      Get the ipv6Addresses property: The list of ip v6 addresses.
      Returns:
      the ipv6Addresses value.
    • withIpv6Addresses

      public IpAddressGroup withIpv6Addresses(List<CidrIpAddress> ipv6Addresses)
      Set the ipv6Addresses property: The list of ip v6 addresses.
      Parameters:
      ipv6Addresses - the ipv6Addresses value to set.
      Returns:
      the IpAddressGroup 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<IpAddressGroup>
      Throws:
      IOException
    • fromJson

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