/**
 * Nudr_DataRepository API OpenAPI file
 * Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
 * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
 *
 * The version of the OpenAPI document: 2.1.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 "PfdDataForApp.h"

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

PfdDataForApp::PfdDataForApp() {
  m_ApplicationId = "";
  m_CachingTime = "";
  m_CachingTimeIsSet = false;
}

PfdDataForApp::~PfdDataForApp() {}

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

void to_json(nlohmann::json &j, const PfdDataForApp &o) {
  j = nlohmann::json();
  j["applicationId"] = o.m_ApplicationId;
  j["pfds"] = o.m_Pfds;
  if (o.cachingTimeIsSet())
    j["cachingTime"] = o.m_CachingTime;
}

void from_json(const nlohmann::json &j, PfdDataForApp &o) {
  j.at("applicationId").get_to(o.m_ApplicationId);
  j.at("pfds").get_to(o.m_Pfds);
  if (j.find("cachingTime") != j.end()) {
    j.at("cachingTime").get_to(o.m_CachingTime);
    o.m_CachingTimeIsSet = true;
  }
}

std::string PfdDataForApp::getApplicationId() const { return m_ApplicationId; }
void PfdDataForApp::setApplicationId(std::string const &value) {
  m_ApplicationId = value;
}
std::vector<PfdContent> &PfdDataForApp::getPfds() { return m_Pfds; }
void PfdDataForApp::setPfds(std::vector<PfdContent> const &value) {
  m_Pfds = value;
}
std::string PfdDataForApp::getCachingTime() const { return m_CachingTime; }
void PfdDataForApp::setCachingTime(std::string const &value) {
  m_CachingTime = value;
  m_CachingTimeIsSet = true;
}
bool PfdDataForApp::cachingTimeIsSet() const { return m_CachingTimeIsSet; }
void PfdDataForApp::unsetCachingTime() { m_CachingTimeIsSet = false; }

} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
