/**
 * NSSF NS Selection
 * NSSF Network Slice Selection Service. © 2021, 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.
 */
/*
 * MappingOfSnssai.h
 *
 *
 */

#ifndef MappingOfSnssai_H_
#define MappingOfSnssai_H_

#include "Snssai.h"
#include <nlohmann/json.hpp>

namespace oai {
namespace amf {
namespace model {

/// <summary>
///
/// </summary>
class MappingOfSnssai {
 public:
  MappingOfSnssai();
  virtual ~MappingOfSnssai() = default;

  /// <summary>
  /// Validate the current data in the model. Throws a ValidationException on
  /// failure.
  /// </summary>
  void validate() const;

  /// <summary>
  /// Validate the current data in the model. Returns false on error and writes
  /// an error message into the given stringstream.
  /// </summary>
  bool validate(std::stringstream& msg) const;

  /// <summary>
  /// Helper overload for validate. Used when one model stores another model and
  /// calls it's validate. Not meant to be called outside that case.
  /// </summary>
  bool validate(std::stringstream& msg, const std::string& pathPrefix) const;

  bool operator==(const MappingOfSnssai& rhs) const;
  bool operator!=(const MappingOfSnssai& rhs) const;

  /////////////////////////////////////////////
  /// MappingOfSnssai members

  /// <summary>
  ///
  /// </summary>
  Snssai getServingSnssai() const;
  void setServingSnssai(Snssai const& value);
  /// <summary>
  ///
  /// </summary>
  Snssai getHomeSnssai() const;
  void setHomeSnssai(Snssai const& value);

  friend void to_json(nlohmann::json& j, const MappingOfSnssai& o);
  friend void from_json(const nlohmann::json& j, MappingOfSnssai& o);

 protected:
  Snssai m_ServingSnssai;

  Snssai m_HomeSnssai;
};

}  // namespace model
}  // namespace amf
}  // namespace oai

#endif /* MappingOfSnssai_H_ */
