/**
 * Nsmf_PDUSession
 * SMF PDU Session Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
 * CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
 *
 * The version of the OpenAPI document: 1.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 "QosFlowReleaseRequestItem.h"

namespace oai {
namespace smf_server {
namespace model {

QosFlowReleaseRequestItem::QosFlowReleaseRequestItem() {
  m_Qfi                     = 0;
  m_QosRulesIsSet           = false;
  m_QosFlowDescriptionIsSet = false;
}

QosFlowReleaseRequestItem::~QosFlowReleaseRequestItem() {}

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

void to_json(nlohmann::json& j, const QosFlowReleaseRequestItem& o) {
  j        = nlohmann::json();
  j["qfi"] = o.m_Qfi;
  if (o.qosRulesIsSet()) j["qosRules"] = o.m_QosRules;
  if (o.qosFlowDescriptionIsSet())
    j["qosFlowDescription"] = o.m_QosFlowDescription;
}

void from_json(const nlohmann::json& j, QosFlowReleaseRequestItem& o) {
  j.at("qfi").get_to(o.m_Qfi);
  if (j.find("qosRules") != j.end()) {
    j.at("qosRules").get_to(o.m_QosRules);
    o.m_QosRulesIsSet = true;
  }
  if (j.find("qosFlowDescription") != j.end()) {
    j.at("qosFlowDescription").get_to(o.m_QosFlowDescription);
    o.m_QosFlowDescriptionIsSet = true;
  }
}

int32_t QosFlowReleaseRequestItem::getQfi() const {
  return m_Qfi;
}
void QosFlowReleaseRequestItem::setQfi(int32_t const value) {
  m_Qfi = value;
}
std::string QosFlowReleaseRequestItem::getQosRules() const {
  return m_QosRules;
}
void QosFlowReleaseRequestItem::setQosRules(std::string const& value) {
  m_QosRules      = value;
  m_QosRulesIsSet = true;
}
bool QosFlowReleaseRequestItem::qosRulesIsSet() const {
  return m_QosRulesIsSet;
}
void QosFlowReleaseRequestItem::unsetQosRules() {
  m_QosRulesIsSet = false;
}
std::string QosFlowReleaseRequestItem::getQosFlowDescription() const {
  return m_QosFlowDescription;
}
void QosFlowReleaseRequestItem::setQosFlowDescription(
    std::string const& value) {
  m_QosFlowDescription      = value;
  m_QosFlowDescriptionIsSet = true;
}
bool QosFlowReleaseRequestItem::qosFlowDescriptionIsSet() const {
  return m_QosFlowDescriptionIsSet;
}
void QosFlowReleaseRequestItem::unsetQosFlowDescription() {
  m_QosFlowDescriptionIsSet = false;
}

}  // namespace model
}  // namespace smf_server
}  // namespace oai
