/** * Use this API to fetch filtered set of aaauser_vpntrafficpolicy_binding resources. set the * filter parameter values in filtervalue object. */ public static aaauser_vpntrafficpolicy_binding[] get_filtered( nitro_service service, String username, filtervalue[] filter) throws Exception { aaauser_vpntrafficpolicy_binding obj = new aaauser_vpntrafficpolicy_binding(); obj.set_username(username); options option = new options(); option.set_filter(filter); aaauser_vpntrafficpolicy_binding[] response = (aaauser_vpntrafficpolicy_binding[]) obj.getfiltered(service, option); return response; }
/** * Use this API to count the filtered set of aaauser_vpntrafficpolicy_binding resources. set the * filter parameter values in filtervalue object. */ public static long count_filtered(nitro_service service, String username, filtervalue[] filter) throws Exception { aaauser_vpntrafficpolicy_binding obj = new aaauser_vpntrafficpolicy_binding(); obj.set_username(username); options option = new options(); option.set_count(true); option.set_filter(filter); aaauser_vpntrafficpolicy_binding[] response = (aaauser_vpntrafficpolicy_binding[]) obj.getfiltered(service, option); if (response != null) { return response[0].__count; } return 0; }