java.lang.Object
com.azure.resourcemanager.network.models.IpRule

public final class IpRule extends Object
The IpRule model.
  • Constructor Details

    • IpRule

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

    • addressPrefix

      public String addressPrefix()
      Get the addressPrefix property: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
      Returns:
      the addressPrefix value.
    • withAddressPrefix

      public IpRule withAddressPrefix(String addressPrefix)
      Set the addressPrefix property: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
      Parameters:
      addressPrefix - the addressPrefix value to set.
      Returns:
      the IpRule object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.