/**
 * 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.
 */

#include "Ncgi.h"

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

Ncgi::Ncgi() {
  m_NrCellId = "";
  m_Nid = "";
  m_NidIsSet = false;
}

Ncgi::~Ncgi() {}

void Ncgi::validate() {
  // TODO: implement validation
}

void to_json(nlohmann::json &j, const Ncgi &o) {
  j = nlohmann::json();
  j["plmnId"] = o.m_PlmnId;
  j["nrCellId"] = o.m_NrCellId;
  if (o.nidIsSet())
    j["nid"] = o.m_Nid;
}

void from_json(const nlohmann::json &j, Ncgi &o) {
  j.at("plmnId").get_to(o.m_PlmnId);
  j.at("nrCellId").get_to(o.m_NrCellId);
  if (j.find("nid") != j.end()) {
    j.at("nid").get_to(o.m_Nid);
    o.m_NidIsSet = true;
  }
}

PlmnId Ncgi::getPlmnId() const { return m_PlmnId; }
void Ncgi::setPlmnId(PlmnId const &value) { m_PlmnId = value; }
std::string Ncgi::getNrCellId() const { return m_NrCellId; }
void Ncgi::setNrCellId(std::string const &value) { m_NrCellId = value; }
std::string Ncgi::getNid() const { return m_Nid; }
void Ncgi::setNid(std::string const &value) {
  m_Nid = value;
  m_NidIsSet = true;
}
bool Ncgi::nidIsSet() const { return m_NidIsSet; }
void Ncgi::unsetNid() { m_NidIsSet = false; }

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