/**
 * 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 "Ecgi.h"

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

Ecgi::Ecgi() {
  m_EutraCellId = "";
  m_Nid = "";
  m_NidIsSet = false;
}

Ecgi::~Ecgi() {}

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

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

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

PlmnId Ecgi::getPlmnId() const { return m_PlmnId; }
void Ecgi::setPlmnId(PlmnId const &value) { m_PlmnId = value; }
std::string Ecgi::getEutraCellId() const { return m_EutraCellId; }
void Ecgi::setEutraCellId(std::string const &value) { m_EutraCellId = value; }
std::string Ecgi::getNid() const { return m_Nid; }
void Ecgi::setNid(std::string const &value) {
  m_Nid = value;
  m_NidIsSet = true;
}
bool Ecgi::nidIsSet() const { return m_NidIsSet; }
void Ecgi::unsetNid() { m_NidIsSet = false; }

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