code: public static base_response update(nitro_service client, snmpalarm resource) throws Exception {
  		snmpalarm updateresource = new snmpalarm();
  		updateresource.trapname = resource.trapname;
  		updateresource.thresholdvalue = resource.thresholdvalue;
  		updateresource.normalvalue = resource.normalvalue;
  		updateresource.time = resource.time;
  		updateresource.state = resource.state;
  		updateresource.severity = resource.severity;
  		updateresource.logging = resource.logging;
  		return updateresource.update_resource(client);
  	}
docs: Use this API to update snmpalarm.