code: public static base_response update(nitro_service client, l4param resource) throws Exception {
  		l4param updateresource = new l4param();
  		updateresource.l2connmethod = resource.l2connmethod;
  		updateresource.l4switch = resource.l4switch;
  		return updateresource.update_resource(client);
  	}
docs: Use this API to update l4param.