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

namespace oai {
namespace amf {
namespace model {

UEContextRelease::UEContextRelease()
{
    m_Supi = "";
    m_SupiIsSet = false;
    m_UnauthenticatedSupi = false;
    m_UnauthenticatedSupiIsSet = false;
    
}

UEContextRelease::~UEContextRelease()
{
}

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

void to_json(nlohmann::json& j, const UEContextRelease& o)
{
    j = nlohmann::json();
    if(o.supiIsSet())
        j["supi"] = o.m_Supi;
    if(o.unauthenticatedSupiIsSet())
        j["unauthenticatedSupi"] = o.m_UnauthenticatedSupi;
    j["ngapCause"] = o.m_NgapCause;
}

void from_json(const nlohmann::json& j, UEContextRelease& o)
{
    if(j.find("supi") != j.end())
    {
        j.at("supi").get_to(o.m_Supi);
        o.m_SupiIsSet = true;
    } 
    if(j.find("unauthenticatedSupi") != j.end())
    {
        j.at("unauthenticatedSupi").get_to(o.m_UnauthenticatedSupi);
        o.m_UnauthenticatedSupiIsSet = true;
    } 
    j.at("ngapCause").get_to(o.m_NgapCause);
}

std::string UEContextRelease::getSupi() const
{
    return m_Supi;
}
void UEContextRelease::setSupi(std::string const& value)
{
    m_Supi = value;
    m_SupiIsSet = true;
}
bool UEContextRelease::supiIsSet() const
{
    return m_SupiIsSet;
}
void UEContextRelease::unsetSupi()
{
    m_SupiIsSet = false;
}
bool UEContextRelease::isUnauthenticatedSupi() const
{
    return m_UnauthenticatedSupi;
}
void UEContextRelease::setUnauthenticatedSupi(bool const value)
{
    m_UnauthenticatedSupi = value;
    m_UnauthenticatedSupiIsSet = true;
}
bool UEContextRelease::unauthenticatedSupiIsSet() const
{
    return m_UnauthenticatedSupiIsSet;
}
void UEContextRelease::unsetUnauthenticatedSupi()
{
    m_UnauthenticatedSupiIsSet = false;
}
NgApCause UEContextRelease::getNgapCause() const
{
    return m_NgapCause;
}
void UEContextRelease::setNgapCause(NgApCause const& value)
{
    m_NgapCause = value;
    
}

}
}
}

