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

namespace oai {
namespace smf_server {
namespace model {

Ambr::Ambr() {
  m_Uplink   = "";
  m_Downlink = "";
}

Ambr::~Ambr() {}

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

void to_json(nlohmann::json& j, const Ambr& o) {
  j             = nlohmann::json();
  j["uplink"]   = o.m_Uplink;
  j["downlink"] = o.m_Downlink;
}

void from_json(const nlohmann::json& j, Ambr& o) {
  j.at("uplink").get_to(o.m_Uplink);
  j.at("downlink").get_to(o.m_Downlink);
}

std::string Ambr::getUplink() const {
  return m_Uplink;
}
void Ambr::setUplink(std::string const& value) {
  m_Uplink = value;
}
std::string Ambr::getDownlink() const {
  return m_Downlink;
}
void Ambr::setDownlink(std::string const& value) {
  m_Downlink = value;
}

}  // namespace model
}  // namespace smf_server
}  // namespace oai
