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

public final class IpRule extends Object
IP rule with specific IP or IP range in CIDR format.
  • Constructor Details

    • IpRule

      public IpRule()
  • Method Details

    • ipAddressOrRange

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

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

      public Action action()
      Get the action property: The action of IP ACL rule.
      Returns:
      the action value.
    • withAction

      public IpRule withAction(Action action)
      Set the action property: The action of IP ACL rule.
      Parameters:
      action - the action value to set.
      Returns:
      the IpRule object itself.
    • validate

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