/**
* Nudm_SDM
* Nudm Subscriber Data Management Service. � 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. 
*
* The version of the OpenAPI document: 2.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 "NiddInformation.h"

namespace oai {
namespace udm {
namespace model {

NiddInformation::NiddInformation()
{
    m_AfInstanceId = "";
    m_Gpsi = "";
    m_GpsiIsSet = false;
    
}

NiddInformation::~NiddInformation()
{
}

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

void to_json(nlohmann::json& j, const NiddInformation& o)
{
    j = nlohmann::json();
    j["afInstanceId"] = o.m_AfInstanceId;
    if(o.gpsiIsSet())
        j["gpsi"] = o.m_Gpsi;
}

void from_json(const nlohmann::json& j, NiddInformation& o)
{
    j.at("afInstanceId").get_to(o.m_AfInstanceId);
    if(j.find("gpsi") != j.end())
    {
        j.at("gpsi").get_to(o.m_Gpsi);
        o.m_GpsiIsSet = true;
    } 
}

std::string NiddInformation::getAfInstanceId() const
{
    return m_AfInstanceId;
}
void NiddInformation::setAfInstanceId(std::string const& value)
{
    m_AfInstanceId = value;
    
}
std::string NiddInformation::getGpsi() const
{
    return m_Gpsi;
}
void NiddInformation::setGpsi(std::string const& value)
{
    m_Gpsi = value;
    m_GpsiIsSet = true;
}
bool NiddInformation::gpsiIsSet() const
{
    return m_GpsiIsSet;
}
void NiddInformation::unsetGpsi()
{
    m_GpsiIsSet = false;
}

}
}
}

