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

namespace oai {
namespace udm {
namespace model {

TraceDataResponse::TraceDataResponse()
{
    m_TraceDataIsSet = false;
    m_SharedTraceDataId = "";
    m_SharedTraceDataIdIsSet = false;
    
}

TraceDataResponse::~TraceDataResponse()
{
}

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

void to_json(nlohmann::json& j, const TraceDataResponse& o)
{
    j = nlohmann::json();
    if(o.traceDataIsSet())
        j["traceData"] = o.m_TraceData;
    if(o.sharedTraceDataIdIsSet())
        j["sharedTraceDataId"] = o.m_SharedTraceDataId;
}

void from_json(const nlohmann::json& j, TraceDataResponse& o)
{
    if(j.find("traceData") != j.end())
    {
        j.at("traceData").get_to(o.m_TraceData);
        o.m_TraceDataIsSet = true;
    } 
    if(j.find("sharedTraceDataId") != j.end())
    {
        j.at("sharedTraceDataId").get_to(o.m_SharedTraceDataId);
        o.m_SharedTraceDataIdIsSet = true;
    } 
}

TraceData TraceDataResponse::getTraceData() const
{
    return m_TraceData;
}
void TraceDataResponse::setTraceData(TraceData const& value)
{
    m_TraceData = value;
    m_TraceDataIsSet = true;
}
bool TraceDataResponse::traceDataIsSet() const
{
    return m_TraceDataIsSet;
}
void TraceDataResponse::unsetTraceData()
{
    m_TraceDataIsSet = false;
}
std::string TraceDataResponse::getSharedTraceDataId() const
{
    return m_SharedTraceDataId;
}
void TraceDataResponse::setSharedTraceDataId(std::string const& value)
{
    m_SharedTraceDataId = value;
    m_SharedTraceDataIdIsSet = true;
}
bool TraceDataResponse::sharedTraceDataIdIsSet() const
{
    return m_SharedTraceDataIdIsSet;
}
void TraceDataResponse::unsetSharedTraceDataId()
{
    m_SharedTraceDataIdIsSet = false;
}

}
}
}

