/**
 * Namf_EventExposure
 * AMF Event Exposure 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 "CmState.h"
#include "Helpers.h"

#include <sstream>

namespace oai::amf::model {

CmState::CmState() {}

void CmState::validate() const {
  std::stringstream msg;
  if (!validate(msg)) {
    throw oai::amf::helpers::ValidationException(msg.str());
  }
}

bool CmState::validate(std::stringstream& msg) const {
  return validate(msg, "");
}

bool CmState::validate(
    std::stringstream& msg, const std::string& pathPrefix) const {
  bool success                  = true;
  const std::string _pathPrefix = pathPrefix.empty() ? "CmState" : pathPrefix;

  return success;
}

bool CmState::operator==(const CmState& rhs) const {
  return true;  // TODO

  ;
}

bool CmState::operator!=(const CmState& rhs) const {
  return !(*this == rhs);
}

void CmState::set_value(std::string value) {
  this->value = value;
}
void CmState::get_value(std::string& value) const {
  value = this->value;
}
std::string CmState::get_value() const {
  return value;
}
void to_json(nlohmann::json& j, const CmState& o) {
  j = o.get_value();
}

void from_json(const nlohmann::json& j, CmState& o) {
  o.set_value(j.get<std::string>());
}

}  // namespace oai::amf::model
