/**
 * Nsmf_PDUSession
 * SMF PDU Session Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
 * CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
 *
 * The version of the OpenAPI document: 1.1.0.alpha-1
 *
 *
 * 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 {
namespace smf_server {
namespace 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 model
}  // namespace smf_server
}  // namespace oai
