/**
 * 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.
 */
/*
 * TimePeriod.h
 *
 * Contains the periodicity for the defined usage monitoring data limits.
 */

#ifndef TimePeriod_H_
#define TimePeriod_H_

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

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

/// <summary>
/// Contains the periodicity for the defined usage monitoring data limits.
/// </summary>
class TimePeriod {
public:
  TimePeriod();
  virtual ~TimePeriod();

  void validate();

  /////////////////////////////////////////////
  /// TimePeriod members

  /// <summary>
  ///
  /// </summary>
  Periodicity getPeriod() const;
  void setPeriod(Periodicity const &value);
  /// <summary>
  ///
  /// </summary>
  int32_t getMaxNumPeriod() const;
  void setMaxNumPeriod(int32_t const value);
  bool maxNumPeriodIsSet() const;
  void unsetMaxNumPeriod();

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

protected:
  Periodicity m_Period;

  int32_t m_MaxNumPeriod;
  bool m_MaxNumPeriodIsSet;
};

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

#endif /* TimePeriod_H_ */
