code: public static base_response add(nitro_service client, nsappflowcollector resource) throws Exception {
  		nsappflowcollector addresource = new nsappflowcollector();
  		addresource.name = resource.name;
  		addresource.ipaddress = resource.ipaddress;
  		addresource.port = resource.port;
  		return addresource.add_resource(client);
  	}
docs: Use this API to add nsappflowcollector.