code: public static base_response update(nitro_service client, dnsmxrec resource) throws Exception {
  		dnsmxrec updateresource = new dnsmxrec();
  		updateresource.domain = resource.domain;
  		updateresource.mx = resource.mx;
  		updateresource.pref = resource.pref;
  		updateresource.ttl = resource.ttl;
  		return updateresource.update_resource(client);
  	}
docs: Use this API to update dnsmxrec.