/**
 * Namf_Communication
 * AMF Communication 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 "SubscriptionData.h"

namespace oai {
namespace amf {
namespace model {

SubscriptionData::SubscriptionData() {
  m_AmfStatusUri   = "";
  m_GuamiListIsSet = false;
}

SubscriptionData::~SubscriptionData() {}

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

void to_json(nlohmann::json& j, const SubscriptionData& o) {
  j                 = nlohmann::json();
  j["amfStatusUri"] = o.m_AmfStatusUri;
  if (o.guamiListIsSet()) j["guamiList"] = o.m_GuamiList;
}

void from_json(const nlohmann::json& j, SubscriptionData& o) {
  j.at("amfStatusUri").get_to(o.m_AmfStatusUri);
  if (j.find("guamiList") != j.end()) {
    j.at("guamiList").get_to(o.m_GuamiList);
    o.m_GuamiListIsSet = true;
  }
}

std::string SubscriptionData::getAmfStatusUri() const {
  return m_AmfStatusUri;
}
void SubscriptionData::setAmfStatusUri(std::string const& value) {
  m_AmfStatusUri = value;
}
std::vector<Guami>& SubscriptionData::getGuamiList() {
  return m_GuamiList;
}
bool SubscriptionData::guamiListIsSet() const {
  return m_GuamiListIsSet;
}
void SubscriptionData::unsetGuamiList() {
  m_GuamiListIsSet = false;
}

}  // namespace model
}  // namespace amf
}  // namespace oai
