/**
* Namf_Communication
* AMF Communication 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.
*/
/*
 * ServiceAreaRestriction.h
 *
 * 
 */

#ifndef ServiceAreaRestriction_H_
#define ServiceAreaRestriction_H_


#include "RestrictionType.h"
#include "Area.h"
#include <vector>
#include <nlohmann/json.hpp>

namespace oai {
namespace amf {
namespace model {

/// <summary>
/// 
/// </summary>
class  ServiceAreaRestriction
{
public:
    ServiceAreaRestriction();
    virtual ~ServiceAreaRestriction();

    void validate();

    /////////////////////////////////////////////
    /// ServiceAreaRestriction members

    /// <summary>
    /// 
    /// </summary>
    RestrictionType getRestrictionType() const;
    void setRestrictionType(RestrictionType const& value);
    bool restrictionTypeIsSet() const;
    void unsetRestrictionType();
    /// <summary>
    /// 
    /// </summary>
    std::vector<Area>& getAreas();
    bool areasIsSet() const;
    void unsetAreas();
    /// <summary>
    /// 
    /// </summary>
    int32_t getMaxNumOfTAs() const;
    void setMaxNumOfTAs(int32_t const value);
    bool maxNumOfTAsIsSet() const;
    void unsetMaxNumOfTAs();
    /// <summary>
    /// 
    /// </summary>
    int32_t getMaxNumOfTAsForNotAllowedAreas() const;
    void setMaxNumOfTAsForNotAllowedAreas(int32_t const value);
    bool maxNumOfTAsForNotAllowedAreasIsSet() const;
    void unsetMaxNumOfTAsForNotAllowedAreas();

    friend void to_json(nlohmann::json& j, const ServiceAreaRestriction& o);
    friend void from_json(const nlohmann::json& j, ServiceAreaRestriction& o);
protected:
    RestrictionType m_RestrictionType;
    bool m_RestrictionTypeIsSet;
    std::vector<Area> m_Areas;
    bool m_AreasIsSet;
    int32_t m_MaxNumOfTAs;
    bool m_MaxNumOfTAsIsSet;
    int32_t m_MaxNumOfTAsForNotAllowedAreas;
    bool m_MaxNumOfTAsForNotAllowedAreasIsSet;
};

}
}
}

#endif /* ServiceAreaRestriction_H_ */
