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

namespace oai::udr::model {

GNbId::GNbId() {
  m_BitLength = 0;
  m_GNBValue = "";
}

GNbId::~GNbId() {}

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

void to_json(nlohmann::json &j, const GNbId &o) {
  j = nlohmann::json();
  j["bitLength"] = o.m_BitLength;
  j["gNBValue"] = o.m_GNBValue;
}

void from_json(const nlohmann::json &j, GNbId &o) {
  j.at("bitLength").get_to(o.m_BitLength);
  j.at("gNBValue").get_to(o.m_GNBValue);
}

int32_t GNbId::getBitLength() const { return m_BitLength; }
void GNbId::setBitLength(int32_t const value) { m_BitLength = value; }
std::string GNbId::getGNBValue() const { return m_GNBValue; }
void GNbId::setGNBValue(std::string const &value) { m_GNBValue = value; }

} // namespace oai::udr::model