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

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

NetworkNodeDiameterAddress::NetworkNodeDiameterAddress() {
  m_Name = "";
  m_Realm = "";
}

NetworkNodeDiameterAddress::~NetworkNodeDiameterAddress() {}

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

void to_json(nlohmann::json &j, const NetworkNodeDiameterAddress &o) {
  j = nlohmann::json();
  j["name"] = o.m_Name;
  j["realm"] = o.m_Realm;
}

void from_json(const nlohmann::json &j, NetworkNodeDiameterAddress &o) {
  j.at("name").get_to(o.m_Name);
  j.at("realm").get_to(o.m_Realm);
}

std::string NetworkNodeDiameterAddress::getName() const { return m_Name; }
void NetworkNodeDiameterAddress::setName(std::string const &value) {
  m_Name = value;
}
std::string NetworkNodeDiameterAddress::getRealm() const { return m_Realm; }
void NetworkNodeDiameterAddress::setRealm(std::string const &value) {
  m_Realm = value;
}

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