/**
 * Nudm_UEAU
 * UDM UE Authentication Service. � 2020, 3GPP Organizational Partners (ARIB,
 * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
 *
 * The version of the OpenAPI document: 1.2.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 "RgAuthCtx.h"

namespace oai {
namespace udm {
namespace model {

RgAuthCtx::RgAuthCtx() {
  m_AuthInd = false;
  m_Supi = "";
  m_SupiIsSet = false;
  m_SupportedFeatures = "";
  m_SupportedFeaturesIsSet = false;
}

RgAuthCtx::~RgAuthCtx() {}

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

void to_json(nlohmann::json &j, const RgAuthCtx &o) {
  j = nlohmann::json();
  j["authInd"] = o.m_AuthInd;
  if (o.supiIsSet())
    j["supi"] = o.m_Supi;
  if (o.supportedFeaturesIsSet())
    j["supportedFeatures"] = o.m_SupportedFeatures;
}

void from_json(const nlohmann::json &j, RgAuthCtx &o) {
  j.at("authInd").get_to(o.m_AuthInd);
  if (j.find("supi") != j.end()) {
    j.at("supi").get_to(o.m_Supi);
    o.m_SupiIsSet = true;
  }
  if (j.find("supportedFeatures") != j.end()) {
    j.at("supportedFeatures").get_to(o.m_SupportedFeatures);
    o.m_SupportedFeaturesIsSet = true;
  }
}

bool RgAuthCtx::isAuthInd() const { return m_AuthInd; }
void RgAuthCtx::setAuthInd(bool const value) { m_AuthInd = value; }
std::string RgAuthCtx::getSupi() const { return m_Supi; }
void RgAuthCtx::setSupi(std::string const &value) {
  m_Supi = value;
  m_SupiIsSet = true;
}
bool RgAuthCtx::supiIsSet() const { return m_SupiIsSet; }
void RgAuthCtx::unsetSupi() { m_SupiIsSet = false; }
std::string RgAuthCtx::getSupportedFeatures() const {
  return m_SupportedFeatures;
}
void RgAuthCtx::setSupportedFeatures(std::string const &value) {
  m_SupportedFeatures = value;
  m_SupportedFeaturesIsSet = true;
}
bool RgAuthCtx::supportedFeaturesIsSet() const {
  return m_SupportedFeaturesIsSet;
}
void RgAuthCtx::unsetSupportedFeatures() { m_SupportedFeaturesIsSet = false; }

} // namespace model
} // namespace udm
} // namespace oai
