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

namespace oai {
namespace amf {
namespace model {

UeN1N2InfoSubscriptionCreatedData::UeN1N2InfoSubscriptionCreatedData() {
  m_N1n2NotifySubscriptionId = "";
  m_SupportedFeatures        = "";
  m_SupportedFeaturesIsSet   = false;
}

UeN1N2InfoSubscriptionCreatedData::~UeN1N2InfoSubscriptionCreatedData() {}

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

void to_json(nlohmann::json& j, const UeN1N2InfoSubscriptionCreatedData& o) {
  j                             = nlohmann::json();
  j["n1n2NotifySubscriptionId"] = o.m_N1n2NotifySubscriptionId;
  if (o.supportedFeaturesIsSet())
    j["supportedFeatures"] = o.m_SupportedFeatures;
}

void from_json(const nlohmann::json& j, UeN1N2InfoSubscriptionCreatedData& o) {
  j.at("n1n2NotifySubscriptionId").get_to(o.m_N1n2NotifySubscriptionId);
  if (j.find("supportedFeatures") != j.end()) {
    j.at("supportedFeatures").get_to(o.m_SupportedFeatures);
    o.m_SupportedFeaturesIsSet = true;
  }
}

std::string UeN1N2InfoSubscriptionCreatedData::getN1n2NotifySubscriptionId()
    const {
  return m_N1n2NotifySubscriptionId;
}
void UeN1N2InfoSubscriptionCreatedData::setN1n2NotifySubscriptionId(
    std::string const& value) {
  m_N1n2NotifySubscriptionId = value;
}
std::string UeN1N2InfoSubscriptionCreatedData::getSupportedFeatures() const {
  return m_SupportedFeatures;
}
void UeN1N2InfoSubscriptionCreatedData::setSupportedFeatures(
    std::string const& value) {
  m_SupportedFeatures      = value;
  m_SupportedFeaturesIsSet = true;
}
bool UeN1N2InfoSubscriptionCreatedData::supportedFeaturesIsSet() const {
  return m_SupportedFeaturesIsSet;
}
void UeN1N2InfoSubscriptionCreatedData::unsetSupportedFeatures() {
  m_SupportedFeaturesIsSet = false;
}

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