/**
 * NRF NFManagement Service
 * NRF NFManagement 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 "AtsssCapability.h"

namespace oai {
namespace smf_server {
namespace model {

AtsssCapability::AtsssCapability() {
  m_AtsssLL      = false;
  m_AtsssLLIsSet = false;
  m_Mptcp        = false;
  m_MptcpIsSet   = false;
}

AtsssCapability::~AtsssCapability() {}

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

void to_json(nlohmann::json& j, const AtsssCapability& o) {
  j = nlohmann::json();
  if (o.atsssLLIsSet()) j["atsssLL"] = o.m_AtsssLL;
  if (o.mptcpIsSet()) j["mptcp"] = o.m_Mptcp;
}

void from_json(const nlohmann::json& j, AtsssCapability& o) {
  if (j.find("atsssLL") != j.end()) {
    j.at("atsssLL").get_to(o.m_AtsssLL);
    o.m_AtsssLLIsSet = true;
  }
  if (j.find("mptcp") != j.end()) {
    j.at("mptcp").get_to(o.m_Mptcp);
    o.m_MptcpIsSet = true;
  }
}

bool AtsssCapability::isAtsssLL() const {
  return m_AtsssLL;
}
void AtsssCapability::setAtsssLL(bool const value) {
  m_AtsssLL      = value;
  m_AtsssLLIsSet = true;
}
bool AtsssCapability::atsssLLIsSet() const {
  return m_AtsssLLIsSet;
}
void AtsssCapability::unsetAtsssLL() {
  m_AtsssLLIsSet = false;
}
bool AtsssCapability::isMptcp() const {
  return m_Mptcp;
}
void AtsssCapability::setMptcp(bool const value) {
  m_Mptcp      = value;
  m_MptcpIsSet = true;
}
bool AtsssCapability::mptcpIsSet() const {
  return m_MptcpIsSet;
}
void AtsssCapability::unsetMptcp() {
  m_MptcpIsSet = false;
}

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