/** Use this API to fetch aaauser_vpntrafficpolicy_binding resources of given name . */
 public static aaauser_vpntrafficpolicy_binding[] get(nitro_service service, String username)
     throws Exception {
   aaauser_vpntrafficpolicy_binding obj = new aaauser_vpntrafficpolicy_binding();
   obj.set_username(username);
   aaauser_vpntrafficpolicy_binding response[] =
       (aaauser_vpntrafficpolicy_binding[]) obj.get_resources(service);
   return response;
 }
 /**
  * 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 aaauser_vpntrafficpolicy_binding resources configued on NetScaler. */
 public static long count(nitro_service service, String username) throws Exception {
   aaauser_vpntrafficpolicy_binding obj = new aaauser_vpntrafficpolicy_binding();
   obj.set_username(username);
   options option = new options();
   option.set_count(true);
   aaauser_vpntrafficpolicy_binding response[] =
       (aaauser_vpntrafficpolicy_binding[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
 /**
  * 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;
 }
 public static base_response add(nitro_service client, aaauser_vpntrafficpolicy_binding resource)
     throws Exception {
   aaauser_vpntrafficpolicy_binding updateresource = new aaauser_vpntrafficpolicy_binding();
   updateresource.username = resource.username;
   updateresource.policy = resource.policy;
   updateresource.priority = resource.priority;
   updateresource.intranetapplication = resource.intranetapplication;
   updateresource.urlname = resource.urlname;
   return updateresource.update_resource(client);
 }
 public static base_response delete(
     nitro_service client, aaauser_vpntrafficpolicy_binding resource) throws Exception {
   aaauser_vpntrafficpolicy_binding deleteresource = new aaauser_vpntrafficpolicy_binding();
   deleteresource.username = resource.username;
   deleteresource.policy = resource.policy;
   deleteresource.intranetapplication = resource.intranetapplication;
   deleteresource.urlname = resource.urlname;
   return deleteresource.delete_resource(client);
 }