/**
 * Nudr_DataRepository API OpenAPI file
 * Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
 * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
 *
 * The version of the OpenAPI document: 2.1.2
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator
 * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
 * the class manually.
 */
/*
 * ChangeItem.h
 *
 *
 */

#ifndef ChangeItem_H_
#define ChangeItem_H_

#include "ChangeType.h"
#include <string>
//#include "AnyType.h"
#include <nlohmann/json.hpp>

namespace org {
namespace openapitools {
namespace server {
namespace model {

/// <summary>
///
/// </summary>
class ChangeItem {
public:
  ChangeItem();
  virtual ~ChangeItem();

  void validate();

  /////////////////////////////////////////////
  /// ChangeItem members

  /// <summary>
  ///
  /// </summary>
  ChangeType getOp() const;
  void setOp(ChangeType const &value);
  /// <summary>
  ///
  /// </summary>
  std::string getPath() const;
  void setPath(std::string const &value);
  /// <summary>
  ///
  /// </summary>
  std::string getFrom() const;
  void setFrom(std::string const &value);
  bool fromIsSet() const;
  void unsetFrom();
  /// <summary>
  ///
  /// </summary>
  //    AnyType getOrigValue() const;
  //    void setOrigValue(AnyType const& value);
  bool origValueIsSet() const;
  void unsetOrigValue();
  /// <summary>
  ///
  /// </summary>
  //    AnyType getNewValue() const;
  //    void setNewValue(AnyType const& value);
  bool newValueIsSet() const;
  void unsetNewValue();

  friend void to_json(nlohmann::json &j, const ChangeItem &o);
  friend void from_json(const nlohmann::json &j, ChangeItem &o);

protected:
  ChangeType m_Op;

  std::string m_Path;

  std::string m_From;
  bool m_FromIsSet;
  //    AnyType m_OrigValue;
  bool m_OrigValueIsSet;
  //    AnyType m_NewValue;
  bool m_NewValueIsSet;
};

} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org

#endif /* ChangeItem_H_ */
