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

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

BdtDataPatch::BdtDataPatch() {
  m_TransPolicyIsSet = false;
  m_BdtpStatusIsSet = false;
}

BdtDataPatch::~BdtDataPatch() {}

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

void to_json(nlohmann::json &j, const BdtDataPatch &o) {
  j = nlohmann::json();
  if (o.transPolicyIsSet())
    j["transPolicy"] = o.m_TransPolicy;
  if (o.bdtpStatusIsSet())
    j["bdtpStatus"] = o.m_BdtpStatus;
}

void from_json(const nlohmann::json &j, BdtDataPatch &o) {
  if (j.find("transPolicy") != j.end()) {
    j.at("transPolicy").get_to(o.m_TransPolicy);
    o.m_TransPolicyIsSet = true;
  }
  if (j.find("bdtpStatus") != j.end()) {
    j.at("bdtpStatus").get_to(o.m_BdtpStatus);
    o.m_BdtpStatusIsSet = true;
  }
}

TransferPolicy BdtDataPatch::getTransPolicy() const { return m_TransPolicy; }
void BdtDataPatch::setTransPolicy(TransferPolicy const &value) {
  m_TransPolicy = value;
  m_TransPolicyIsSet = true;
}
bool BdtDataPatch::transPolicyIsSet() const { return m_TransPolicyIsSet; }
void BdtDataPatch::unsetTransPolicy() { m_TransPolicyIsSet = false; }
BdtPolicyStatus BdtDataPatch::getBdtpStatus() const { return m_BdtpStatus; }
void BdtDataPatch::setBdtpStatus(BdtPolicyStatus const &value) {
  m_BdtpStatus = value;
  m_BdtpStatusIsSet = true;
}
bool BdtDataPatch::bdtpStatusIsSet() const { return m_BdtpStatusIsSet; }
void BdtDataPatch::unsetBdtpStatus() { m_BdtpStatusIsSet = false; }

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