Class CidrIpAddress

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

public final class CidrIpAddress extends Object implements com.azure.json.JsonSerializable<CidrIpAddress>
CIDR Ip address.
  • Constructor Details

    • CidrIpAddress

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

    • baseIpAddress

      public String baseIpAddress()
      Get the baseIpAddress property: Ip address itself.
      Returns:
      the baseIpAddress value.
    • withBaseIpAddress

      public CidrIpAddress withBaseIpAddress(String baseIpAddress)
      Set the baseIpAddress property: Ip address itself.
      Parameters:
      baseIpAddress - the baseIpAddress value to set.
      Returns:
      the CidrIpAddress object itself.
    • prefixLength

      public Integer prefixLength()
      Get the prefixLength property: The length of the prefix of the ip address.
      Returns:
      the prefixLength value.
    • withPrefixLength

      public CidrIpAddress withPrefixLength(Integer prefixLength)
      Set the prefixLength property: The length of the prefix of the ip address.
      Parameters:
      prefixLength - the prefixLength value to set.
      Returns:
      the CidrIpAddress 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<CidrIpAddress>
      Throws:
      IOException
    • fromJson

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