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

public final class IpRule extends Object
Rule to filter client IP address.
  • Constructor Details

    • IpRule

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

    • action

      public String action()
      Get the action property: Action when client IP address is matched.
      Returns:
      the action value.
    • withAction

      public IpRule withAction(String action)
      Set the action property: Action when client IP address is matched.
      Parameters:
      action - the action value to set.
      Returns:
      the IpRule object itself.
    • value

      public String value()
      Get the value property: The IP address or IP address range to filter

      IPv4 address, or IPv4 address range in CIDR format.

      Returns:
      the value value.
    • withValue

      public IpRule withValue(String value)
      Set the value property: The IP address or IP address range to filter

      IPv4 address, or IPv4 address range in CIDR format.

      Parameters:
      value - the value value to set.
      Returns:
      the IpRule object itself.
    • validate

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