/**
* Nudsf_DataRepository
* Nudsf Data Repository Service. © 2021, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. 
*
* The version of the OpenAPI document: 1.1.0-alpha.2
* 
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


#include "NotificationDescription.h"

namespace org {
namespace openapitools {
namespace server {
namespace model {

NotificationDescription::NotificationDescription()
{
    m_RecordRef = "";
    m_SubscriptionId = "";
    m_SubscriptionIdIsSet = false;
    
}

NotificationDescription::~NotificationDescription()
{
}

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

void to_json(nlohmann::json& j, const NotificationDescription& o)
{
    j = nlohmann::json();
    j["recordRef"] = o.m_RecordRef;
    j["operationType"] = o.m_OperationType;
    if(o.subscriptionIdIsSet())
        j["subscriptionId"] = o.m_SubscriptionId;
}

void from_json(const nlohmann::json& j, NotificationDescription& o)
{
    j.at("recordRef").get_to(o.m_RecordRef);
    j.at("operationType").get_to(o.m_OperationType);
    if(j.find("subscriptionId") != j.end())
    {
        j.at("subscriptionId").get_to(o.m_SubscriptionId);
        o.m_SubscriptionIdIsSet = true;
    } 
}

std::string NotificationDescription::getRecordRef() const
{
    return m_RecordRef;
}
void NotificationDescription::setRecordRef(std::string const& value)
{
    m_RecordRef = value;
}
RecordOperation NotificationDescription::getOperationType() const
{
    return m_OperationType;
}
void NotificationDescription::setOperationType(RecordOperation const& value)
{
    m_OperationType = value;
}
std::string NotificationDescription::getSubscriptionId() const
{
    return m_SubscriptionId;
}
void NotificationDescription::setSubscriptionId(std::string const& value)
{
    m_SubscriptionId = value;
    m_SubscriptionIdIsSet = true;
}
bool NotificationDescription::subscriptionIdIsSet() const
{
    return m_SubscriptionIdIsSet;
}
void NotificationDescription::unsetSubscriptionId()
{
    m_SubscriptionIdIsSet = false;
}

}
}
}
}

