Class InboundIpRule


  • public final class InboundIpRule
    extends Object
    The InboundIpRule model.
    • Constructor Detail

      • InboundIpRule

        public InboundIpRule()
    • Method Detail

      • ipMask

        public String ipMask()
        Get the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.
        Returns:
        the ipMask value.
      • withIpMask

        public InboundIpRule withIpMask​(String ipMask)
        Set the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.
        Parameters:
        ipMask - the ipMask value to set.
        Returns:
        the InboundIpRule object itself.
      • action

        public IpActionType action()
        Get the action property: Action to perform based on the match or no match of the IpMask.
        Returns:
        the action value.
      • withAction

        public InboundIpRule withAction​(IpActionType action)
        Set the action property: Action to perform based on the match or no match of the IpMask.
        Parameters:
        action - the action value to set.
        Returns:
        the InboundIpRule object itself.
      • validate

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