Commit 68d63bf6 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Delete unecessary files from SMF

parent e46a3d39
/**
* 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 amf {
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 amf
} // namespace oai
/**
* 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.
*/
/*
* AtsssCapability.h
*
*
*/
#ifndef AtsssCapability_H_
#define AtsssCapability_H_
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class AtsssCapability {
public:
AtsssCapability();
virtual ~AtsssCapability();
void validate();
/////////////////////////////////////////////
/// AtsssCapability members
/// <summary>
///
/// </summary>
bool isAtsssLL() const;
void setAtsssLL(bool const value);
bool atsssLLIsSet() const;
void unsetAtsssLL();
/// <summary>
///
/// </summary>
bool isMptcp() const;
void setMptcp(bool const value);
bool mptcpIsSet() const;
void unsetMptcp();
friend void to_json(nlohmann::json& j, const AtsssCapability& o);
friend void from_json(const nlohmann::json& j, AtsssCapability& o);
protected:
bool m_AtsssLL;
bool m_AtsssLLIsSet;
bool m_Mptcp;
bool m_MptcpIsSet;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* AtsssCapability_H_ */
/**
* 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 "ChangeItem.h"
namespace oai {
namespace amf {
namespace model {
ChangeItem::ChangeItem() {
m_Path = "";
m_From = "";
m_FromIsSet = false;
m_OrigValueIsSet = false;
m_NewValueIsSet = false;
}
ChangeItem::~ChangeItem() {}
void ChangeItem::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const ChangeItem& o) {
j = nlohmann::json();
j["op"] = o.m_Op;
j["path"] = o.m_Path;
if (o.fromIsSet()) j["from"] = o.m_From;
if (o.origValueIsSet()) j["origValue"] = o.m_OrigValue;
if (o.newValueIsSet()) j["newValue"] = o.m_NewValue;
}
void from_json(const nlohmann::json& j, ChangeItem& o) {
j.at("op").get_to(o.m_Op);
j.at("path").get_to(o.m_Path);
if (j.find("from") != j.end()) {
j.at("from").get_to(o.m_From);
o.m_FromIsSet = true;
}
if (j.find("origValue") != j.end()) {
j.at("origValue").get_to(o.m_OrigValue);
o.m_OrigValueIsSet = true;
}
if (j.find("newValue") != j.end()) {
j.at("newValue").get_to(o.m_NewValue);
o.m_NewValueIsSet = true;
}
}
ChangeType ChangeItem::getOp() const {
return m_Op;
}
void ChangeItem::setOp(ChangeType const& value) {
m_Op = value;
}
std::string ChangeItem::getPath() const {
return m_Path;
}
void ChangeItem::setPath(std::string const& value) {
m_Path = value;
}
std::string ChangeItem::getFrom() const {
return m_From;
}
void ChangeItem::setFrom(std::string const& value) {
m_From = value;
m_FromIsSet = true;
}
bool ChangeItem::fromIsSet() const {
return m_FromIsSet;
}
void ChangeItem::unsetFrom() {
m_FromIsSet = false;
}
std::string ChangeItem::getOrigValue() const {
return m_OrigValue;
}
void ChangeItem::setOrigValue(std::string const& value) {
m_OrigValue = value;
m_OrigValueIsSet = true;
}
bool ChangeItem::origValueIsSet() const {
return m_OrigValueIsSet;
}
void ChangeItem::unsetOrigValue() {
m_OrigValueIsSet = false;
}
std::string ChangeItem::getNewValue() const {
return m_NewValue;
}
void ChangeItem::setNewValue(std::string const& value) {
m_NewValue = value;
m_NewValueIsSet = true;
}
bool ChangeItem::newValueIsSet() const {
return m_NewValueIsSet;
}
void ChangeItem::unsetNewValue() {
m_NewValueIsSet = false;
}
} // namespace model
} // namespace amf
} // namespace oai
/**
* 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.
*/
/*
* ChangeItem.h
*
*
*/
#ifndef ChangeItem_H_
#define ChangeItem_H_
#include "ChangeType.h"
#include <string>
//#include "AnyType.h"
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class ChangeItem {
public:
ChangeItem();
virtual ~ChangeItem();
void validate();
/////////////////////////////////////////////
/// ChangeItem members
/// <summary>
///
/// </summary>
ChangeType getOp() const;
void setOp(ChangeType const& value);
/// <summary>
///
/// </summary>
std::string getPath() const;
void setPath(std::string const& value);
/// <summary>
///
/// </summary>
std::string getFrom() const;
void setFrom(std::string const& value);
bool fromIsSet() const;
void unsetFrom();
/// <summary>
///
/// </summary>
std::string getOrigValue() const;
void setOrigValue(std::string const& value);
bool origValueIsSet() const;
void unsetOrigValue();
/// <summary>
///
/// </summary>
std::string getNewValue() const;
void setNewValue(std::string const& value);
bool newValueIsSet() const;
void unsetNewValue();
friend void to_json(nlohmann::json& j, const ChangeItem& o);
friend void from_json(const nlohmann::json& j, ChangeItem& o);
protected:
ChangeType m_Op;
std::string m_Path;
std::string m_From;
bool m_FromIsSet;
std::string m_OrigValue;
bool m_OrigValueIsSet;
std::string m_NewValue;
bool m_NewValueIsSet;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* ChangeItem_H_ */
/**
* 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 "ChangeType.h"
namespace oai {
namespace amf {
namespace model {
ChangeType::ChangeType() {}
ChangeType::~ChangeType() {}
void ChangeType::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const ChangeType& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json& j, ChangeType& o) {}
} // namespace model
} // namespace amf
} // namespace oai
/**
* 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.
*/
/*
* ChangeType.h
*
*
*/
#ifndef ChangeType_H_
#define ChangeType_H_
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class ChangeType {
public:
ChangeType();
virtual ~ChangeType();
void validate();
/////////////////////////////////////////////
/// ChangeType members
friend void to_json(nlohmann::json& j, const ChangeType& o);
friend void from_json(const nlohmann::json& j, ChangeType& o);
protected:
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* ChangeType_H_ */
/**
* Namf_EventExposure
* Session Management 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 "DddStatus.h"
namespace oai {
namespace amf {
namespace model {
DddStatus::DddStatus() {}
DddStatus::~DddStatus() {}
void DddStatus::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const DddStatus& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json& j, DddStatus& o) {}
} // namespace model
} // namespace amf
} // namespace oai
/**
* Namf_EventExposure
* Session Management 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.
*/
/*
* DddStatus.h
*
* Possible values are - BUFFERED: The downlink data are buffered. -
* TRANSMITTED: The downlink data are transmitted - DISCARDED: The downlink data
* are discarded.
*/
#ifndef DddStatus_H_
#define DddStatus_H_
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
/// Possible values are - BUFFERED: The downlink data are buffered. -
/// TRANSMITTED: The downlink data are transmitted - DISCARDED: The downlink
/// data are discarded.
/// </summary>
class DddStatus {
public:
DddStatus();
virtual ~DddStatus();
void validate();
/////////////////////////////////////////////
/// DddStatus members
friend void to_json(nlohmann::json& j, const DddStatus& o);
friend void from_json(const nlohmann::json& j, DddStatus& o);
protected:
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* DddStatus_H_ */
/**
* Namf_EventExposure
* Session Management 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 "DddTrafficDescriptor.h"
namespace oai {
namespace amf {
namespace model {
DddTrafficDescriptor::DddTrafficDescriptor() {
m_Ipv4Addr = "";
m_Ipv4AddrIsSet = false;
m_Ipv6AddrIsSet = false;
m_Port = 0;
m_PortIsSet = false;
}
DddTrafficDescriptor::~DddTrafficDescriptor() {}
void DddTrafficDescriptor::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const DddTrafficDescriptor& o) {
j = nlohmann::json();
if (o.ipv4AddrIsSet()) j["ipv4Addr"] = o.m_Ipv4Addr;
if (o.ipv6AddrIsSet()) j["ipv6Addr"] = o.m_Ipv6Addr;
if (o.portIsSet()) j["port"] = o.m_Port;
}
void from_json(const nlohmann::json& j, DddTrafficDescriptor& o) {
if (j.find("ipv4Addr") != j.end()) {
j.at("ipv4Addr").get_to(o.m_Ipv4Addr);
o.m_Ipv4AddrIsSet = true;
}
if (j.find("ipv6Addr") != j.end()) {
j.at("ipv6Addr").get_to(o.m_Ipv6Addr);
o.m_Ipv6AddrIsSet = true;
}
if (j.find("port") != j.end()) {
j.at("port").get_to(o.m_Port);
o.m_PortIsSet = true;
}
}
std::string DddTrafficDescriptor::getIpv4Addr() const {
return m_Ipv4Addr;
}
void DddTrafficDescriptor::setIpv4Addr(std::string const& value) {
m_Ipv4Addr = value;
m_Ipv4AddrIsSet = true;
}
bool DddTrafficDescriptor::ipv4AddrIsSet() const {
return m_Ipv4AddrIsSet;
}
void DddTrafficDescriptor::unsetIpv4Addr() {
m_Ipv4AddrIsSet = false;
}
Ipv6Addr DddTrafficDescriptor::getIpv6Addr() const {
return m_Ipv6Addr;
}
void DddTrafficDescriptor::setIpv6Addr(Ipv6Addr const& value) {
m_Ipv6Addr = value;
m_Ipv6AddrIsSet = true;
}
bool DddTrafficDescriptor::ipv6AddrIsSet() const {
return m_Ipv6AddrIsSet;
}
void DddTrafficDescriptor::unsetIpv6Addr() {
m_Ipv6AddrIsSet = false;
}
int32_t DddTrafficDescriptor::getPort() const {
return m_Port;
}
void DddTrafficDescriptor::setPort(int32_t const value) {
m_Port = value;
m_PortIsSet = true;
}
bool DddTrafficDescriptor::portIsSet() const {
return m_PortIsSet;
}
void DddTrafficDescriptor::unsetPort() {
m_PortIsSet = false;
}
} // namespace model
} // namespace amf
} // namespace oai
/**
* Namf_EventExposure
* Session Management 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.
*/
/*
* DddTrafficDescriptor.h
*
*
*/
#ifndef DddTrafficDescriptor_H_
#define DddTrafficDescriptor_H_
#include <string>
#include "Ipv6Addr.h"
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class DddTrafficDescriptor {
public:
DddTrafficDescriptor();
virtual ~DddTrafficDescriptor();
void validate();
/////////////////////////////////////////////
/// DddTrafficDescriptor members
/// <summary>
///
/// </summary>
std::string getIpv4Addr() const;
void setIpv4Addr(std::string const& value);
bool ipv4AddrIsSet() const;
void unsetIpv4Addr();
/// <summary>
///
/// </summary>
Ipv6Addr getIpv6Addr() const;
void setIpv6Addr(Ipv6Addr const& value);
bool ipv6AddrIsSet() const;
void unsetIpv6Addr();
/// <summary>
///
/// </summary>
int32_t getPort() const;
void setPort(int32_t const value);
bool portIsSet() const;
void unsetPort();
friend void to_json(nlohmann::json& j, const DddTrafficDescriptor& o);
friend void from_json(const nlohmann::json& j, DddTrafficDescriptor& o);
protected:
std::string m_Ipv4Addr;
bool m_Ipv4AddrIsSet;
Ipv6Addr m_Ipv6Addr;
bool m_Ipv6AddrIsSet;
int32_t m_Port;
bool m_PortIsSet;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* DddTrafficDescriptor_H_ */
/**
* Namf_EventExposure
* Session Management 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 "DnaiChangeType.h"
namespace oai {
namespace amf {
namespace model {
DnaiChangeType::DnaiChangeType() {}
DnaiChangeType::~DnaiChangeType() {}
void DnaiChangeType::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const DnaiChangeType& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json& j, DnaiChangeType& o) {}
} // namespace model
} // namespace amf
} // namespace oai
/**
* Namf_EventExposure
* Session Management 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.
*/
/*
* DnaiChangeType.h
*
* Possible values are - EARLY: Early notification of UP path reconfiguration. -
* EARLY_LATE: Early and late notification of UP path reconfiguration. This
* value shall only be present in the subscription to the DNAI change event. -
* LATE: Late notification of UP path reconfiguration.
*/
#ifndef DnaiChangeType_H_
#define DnaiChangeType_H_
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
/// Possible values are - EARLY: Early notification of UP path reconfiguration.
/// - EARLY_LATE: Early and late notification of UP path reconfiguration. This
/// value shall only be present in the subscription to the DNAI change event. -
/// LATE: Late notification of UP path reconfiguration.
/// </summary>
class DnaiChangeType {
public:
DnaiChangeType();
virtual ~DnaiChangeType();
void validate();
/////////////////////////////////////////////
/// DnaiChangeType members
friend void to_json(nlohmann::json& j, const DnaiChangeType& o);
friend void from_json(const nlohmann::json& j, DnaiChangeType& o);
protected:
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* DnaiChangeType_H_ */
/**
* 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 "DnnUpfInfoItem.h"
namespace oai {
namespace amf {
namespace model {
DnnUpfInfoItem::DnnUpfInfoItem() {
m_Dnn = "";
m_DnaiListIsSet = false;
// m_PduSessionTypesIsSet = false;
}
DnnUpfInfoItem::~DnnUpfInfoItem() {}
void DnnUpfInfoItem::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const DnnUpfInfoItem& o) {
j = nlohmann::json();
j["dnn"] = o.m_Dnn;
if (o.dnaiListIsSet() || !o.m_DnaiList.empty()) j["dnaiList"] = o.m_DnaiList;
// if (o.pduSessionTypesIsSet() || !o.m_PduSessionTypes.empty())
// j["pduSessionTypes"] = o.m_PduSessionTypes;
}
void from_json(const nlohmann::json& j, DnnUpfInfoItem& o) {
j.at("dnn").get_to(o.m_Dnn);
if (j.find("dnaiList") != j.end()) {
j.at("dnaiList").get_to(o.m_DnaiList);
o.m_DnaiListIsSet = true;
}
// if (j.find("pduSessionTypes") != j.end()) {
// j.at("pduSessionTypes").get_to(o.m_PduSessionTypes);
// o.m_PduSessionTypesIsSet = true;
//}
}
std::string DnnUpfInfoItem::getDnn() const {
return m_Dnn;
}
void DnnUpfInfoItem::setDnn(std::string const& value) {
m_Dnn = value;
}
std::vector<std::string>& DnnUpfInfoItem::getDnaiList() {
return m_DnaiList;
}
void DnnUpfInfoItem::setDnaiList(std::vector<std::string> const& value) {
m_DnaiList = value;
m_DnaiListIsSet = true;
}
bool DnnUpfInfoItem::dnaiListIsSet() const {
return m_DnaiListIsSet;
}
void DnnUpfInfoItem::unsetDnaiList() {
m_DnaiListIsSet = false;
}
// std::vector<PduSessionType>& DnnUpfInfoItem::getPduSessionTypes() {
// return m_PduSessionTypes;
//}
// void DnnUpfInfoItem::setPduSessionTypes(
// std::vector<PduSessionType> const& value) {
// m_PduSessionTypes = value;
// m_PduSessionTypesIsSet = true;
//}
// bool DnnUpfInfoItem::pduSessionTypesIsSet() const {
// return m_PduSessionTypesIsSet;
//}
// void DnnUpfInfoItem::unsetPduSessionTypes() {
// m_PduSessionTypesIsSet = false;
//}
} // namespace model
} // namespace amf
} // namespace oai
/**
* 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.
*/
/*
* DnnUpfInfoItem.h
*
*
*/
#ifndef DnnUpfInfoItem_H_
#define DnnUpfInfoItem_H_
#include <string>
//#include "PduSessionType.h"
#include <vector>
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class DnnUpfInfoItem {
public:
DnnUpfInfoItem();
virtual ~DnnUpfInfoItem();
void validate();
/////////////////////////////////////////////
/// DnnUpfInfoItem members
/// <summary>
///
/// </summary>
std::string getDnn() const;
void setDnn(std::string const& value);
/// <summary>
///
/// </summary>
std::vector<std::string>& getDnaiList();
void setDnaiList(std::vector<std::string> const& value);
bool dnaiListIsSet() const;
void unsetDnaiList();
/// <summary>
///
/// </summary>
// std::vector<PduSessionType>& getPduSessionTypes();
// void setPduSessionTypes(std::vector<PduSessionType> const& value);
// bool pduSessionTypesIsSet() const;
// void unsetPduSessionTypes();
friend void to_json(nlohmann::json& j, const DnnUpfInfoItem& o);
friend void from_json(const nlohmann::json& j, DnnUpfInfoItem& o);
protected:
std::string m_Dnn;
std::vector<std::string> m_DnaiList;
bool m_DnaiListIsSet;
// std::vector<PduSessionType> m_PduSessionTypes;
// bool m_PduSessionTypesIsSet;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* DnnUpfInfoItem_H_ */
/**
* Namf_EventExposure
* Session Management 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 "EventNotification.h"
namespace oai {
namespace amf {
namespace model {
EventNotification::EventNotification() {
m_TimeStamp = "";
m_Supi = "";
m_SupiIsSet = false;
m_Gpsi = "";
m_GpsiIsSet = false;
m_SourceDnai = "";
m_SourceDnaiIsSet = false;
m_TargetDnai = "";
m_TargetDnaiIsSet = false;
m_DnaiChgTypeIsSet = false;
m_SourceUeIpv4Addr = "";
m_SourceUeIpv4AddrIsSet = false;
m_SourceUeIpv6PrefixIsSet = false;
m_TargetUeIpv4Addr = "";
m_TargetUeIpv4AddrIsSet = false;
m_TargetUeIpv6PrefixIsSet = false;
m_SourceTraRoutingIsSet = false;
m_TargetTraRoutingIsSet = false;
m_UeMac = "";
m_UeMacIsSet = false;
m_AdIpv4Addr = "";
m_AdIpv4AddrIsSet = false;
m_AdIpv6PrefixIsSet = false;
m_ReIpv4Addr = "";
m_ReIpv4AddrIsSet = false;
m_ReIpv6PrefixIsSet = false;
m_PlmnIdIsSet = false;
m_AccTypeIsSet = false;
m_PduSeId = 0;
m_PduSeIdIsSet = false;
m_DddStatusIsSet = false;
m_MaxWaitTime = "";
m_MaxWaitTimeIsSet = false;
}
EventNotification::~EventNotification() {}
void EventNotification::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const EventNotification& o) {
j = nlohmann::json();
j["event"] = o.m_Event;
j["timeStamp"] = o.m_TimeStamp;
if (o.supiIsSet()) j["supi"] = o.m_Supi;
if (o.gpsiIsSet()) j["gpsi"] = o.m_Gpsi;
if (o.sourceDnaiIsSet()) j["sourceDnai"] = o.m_SourceDnai;
if (o.targetDnaiIsSet()) j["targetDnai"] = o.m_TargetDnai;
if (o.dnaiChgTypeIsSet()) j["dnaiChgType"] = o.m_DnaiChgType;
if (o.sourceUeIpv4AddrIsSet()) j["sourceUeIpv4Addr"] = o.m_SourceUeIpv4Addr;
if (o.sourceUeIpv6PrefixIsSet())
j["sourceUeIpv6Prefix"] = o.m_SourceUeIpv6Prefix;
if (o.targetUeIpv4AddrIsSet()) j["targetUeIpv4Addr"] = o.m_TargetUeIpv4Addr;
if (o.targetUeIpv6PrefixIsSet())
j["targetUeIpv6Prefix"] = o.m_TargetUeIpv6Prefix;
if (o.sourceTraRoutingIsSet()) j["sourceTraRouting"] = o.m_SourceTraRouting;
if (o.targetTraRoutingIsSet()) j["targetTraRouting"] = o.m_TargetTraRouting;
if (o.ueMacIsSet()) j["ueMac"] = o.m_UeMac;
if (o.adIpv4AddrIsSet()) j["adIpv4Addr"] = o.m_AdIpv4Addr;
if (o.adIpv6PrefixIsSet()) j["adIpv6Prefix"] = o.m_AdIpv6Prefix;
if (o.reIpv4AddrIsSet()) j["reIpv4Addr"] = o.m_ReIpv4Addr;
if (o.reIpv6PrefixIsSet()) j["reIpv6Prefix"] = o.m_ReIpv6Prefix;
if (o.plmnIdIsSet()) j["plmnId"] = o.m_PlmnId;
if (o.accTypeIsSet()) j["accType"] = o.m_AccType;
if (o.pduSeIdIsSet()) j["pduSeId"] = o.m_PduSeId;
if (o.dddStatusIsSet()) j["dddStatus"] = o.m_DddStatus;
if (o.maxWaitTimeIsSet()) j["maxWaitTime"] = o.m_MaxWaitTime;
}
void from_json(const nlohmann::json& j, EventNotification& o) {
j.at("event").get_to(o.m_Event);
j.at("timeStamp").get_to(o.m_TimeStamp);
if (j.find("supi") != j.end()) {
j.at("supi").get_to(o.m_Supi);
o.m_SupiIsSet = true;
}
if (j.find("gpsi") != j.end()) {
j.at("gpsi").get_to(o.m_Gpsi);
o.m_GpsiIsSet = true;
}
if (j.find("sourceDnai") != j.end()) {
j.at("sourceDnai").get_to(o.m_SourceDnai);
o.m_SourceDnaiIsSet = true;
}
if (j.find("targetDnai") != j.end()) {
j.at("targetDnai").get_to(o.m_TargetDnai);
o.m_TargetDnaiIsSet = true;
}
if (j.find("dnaiChgType") != j.end()) {
j.at("dnaiChgType").get_to(o.m_DnaiChgType);
o.m_DnaiChgTypeIsSet = true;
}
if (j.find("sourceUeIpv4Addr") != j.end()) {
j.at("sourceUeIpv4Addr").get_to(o.m_SourceUeIpv4Addr);
o.m_SourceUeIpv4AddrIsSet = true;
}
if (j.find("sourceUeIpv6Prefix") != j.end()) {
j.at("sourceUeIpv6Prefix").get_to(o.m_SourceUeIpv6Prefix);
o.m_SourceUeIpv6PrefixIsSet = true;
}
if (j.find("targetUeIpv4Addr") != j.end()) {
j.at("targetUeIpv4Addr").get_to(o.m_TargetUeIpv4Addr);
o.m_TargetUeIpv4AddrIsSet = true;
}
if (j.find("targetUeIpv6Prefix") != j.end()) {
j.at("targetUeIpv6Prefix").get_to(o.m_TargetUeIpv6Prefix);
o.m_TargetUeIpv6PrefixIsSet = true;
}
if (j.find("sourceTraRouting") != j.end()) {
j.at("sourceTraRouting").get_to(o.m_SourceTraRouting);
o.m_SourceTraRoutingIsSet = true;
}
if (j.find("targetTraRouting") != j.end()) {
j.at("targetTraRouting").get_to(o.m_TargetTraRouting);
o.m_TargetTraRoutingIsSet = true;
}
if (j.find("ueMac") != j.end()) {
j.at("ueMac").get_to(o.m_UeMac);
o.m_UeMacIsSet = true;
}
if (j.find("adIpv4Addr") != j.end()) {
j.at("adIpv4Addr").get_to(o.m_AdIpv4Addr);
o.m_AdIpv4AddrIsSet = true;
}
if (j.find("adIpv6Prefix") != j.end()) {
j.at("adIpv6Prefix").get_to(o.m_AdIpv6Prefix);
o.m_AdIpv6PrefixIsSet = true;
}
if (j.find("reIpv4Addr") != j.end()) {
j.at("reIpv4Addr").get_to(o.m_ReIpv4Addr);
o.m_ReIpv4AddrIsSet = true;
}
if (j.find("reIpv6Prefix") != j.end()) {
j.at("reIpv6Prefix").get_to(o.m_ReIpv6Prefix);
o.m_ReIpv6PrefixIsSet = true;
}
if (j.find("plmnId") != j.end()) {
j.at("plmnId").get_to(o.m_PlmnId);
o.m_PlmnIdIsSet = true;
}
if (j.find("accType") != j.end()) {
j.at("accType").get_to(o.m_AccType);
o.m_AccTypeIsSet = true;
}
if (j.find("pduSeId") != j.end()) {
j.at("pduSeId").get_to(o.m_PduSeId);
o.m_PduSeIdIsSet = true;
}
if (j.find("dddStatus") != j.end()) {
j.at("dddStatus").get_to(o.m_DddStatus);
o.m_DddStatusIsSet = true;
}
if (j.find("maxWaitTime") != j.end()) {
j.at("maxWaitTime").get_to(o.m_MaxWaitTime);
o.m_MaxWaitTimeIsSet = true;
}
}
AmfEvent EventNotification::getEvent() const {
return m_Event;
}
void EventNotification::setEvent(AmfEvent const& value) {
m_Event = value;
}
std::string EventNotification::getTimeStamp() const {
return m_TimeStamp;
}
void EventNotification::setTimeStamp(std::string const& value) {
m_TimeStamp = value;
}
std::string EventNotification::getSupi() const {
return m_Supi;
}
void EventNotification::setSupi(std::string const& value) {
m_Supi = value;
m_SupiIsSet = true;
}
bool EventNotification::supiIsSet() const {
return m_SupiIsSet;
}
void EventNotification::unsetSupi() {
m_SupiIsSet = false;
}
std::string EventNotification::getGpsi() const {
return m_Gpsi;
}
void EventNotification::setGpsi(std::string const& value) {
m_Gpsi = value;
m_GpsiIsSet = true;
}
bool EventNotification::gpsiIsSet() const {
return m_GpsiIsSet;
}
void EventNotification::unsetGpsi() {
m_GpsiIsSet = false;
}
std::string EventNotification::getSourceDnai() const {
return m_SourceDnai;
}
void EventNotification::setSourceDnai(std::string const& value) {
m_SourceDnai = value;
m_SourceDnaiIsSet = true;
}
bool EventNotification::sourceDnaiIsSet() const {
return m_SourceDnaiIsSet;
}
void EventNotification::unsetSourceDnai() {
m_SourceDnaiIsSet = false;
}
std::string EventNotification::getTargetDnai() const {
return m_TargetDnai;
}
void EventNotification::setTargetDnai(std::string const& value) {
m_TargetDnai = value;
m_TargetDnaiIsSet = true;
}
bool EventNotification::targetDnaiIsSet() const {
return m_TargetDnaiIsSet;
}
void EventNotification::unsetTargetDnai() {
m_TargetDnaiIsSet = false;
}
DnaiChangeType EventNotification::getDnaiChgType() const {
return m_DnaiChgType;
}
void EventNotification::setDnaiChgType(DnaiChangeType const& value) {
m_DnaiChgType = value;
m_DnaiChgTypeIsSet = true;
}
bool EventNotification::dnaiChgTypeIsSet() const {
return m_DnaiChgTypeIsSet;
}
void EventNotification::unsetDnaiChgType() {
m_DnaiChgTypeIsSet = false;
}
std::string EventNotification::getSourceUeIpv4Addr() const {
return m_SourceUeIpv4Addr;
}
void EventNotification::setSourceUeIpv4Addr(std::string const& value) {
m_SourceUeIpv4Addr = value;
m_SourceUeIpv4AddrIsSet = true;
}
bool EventNotification::sourceUeIpv4AddrIsSet() const {
return m_SourceUeIpv4AddrIsSet;
}
void EventNotification::unsetSourceUeIpv4Addr() {
m_SourceUeIpv4AddrIsSet = false;
}
Ipv6Prefix EventNotification::getSourceUeIpv6Prefix() const {
return m_SourceUeIpv6Prefix;
}
void EventNotification::setSourceUeIpv6Prefix(Ipv6Prefix const& value) {
m_SourceUeIpv6Prefix = value;
m_SourceUeIpv6PrefixIsSet = true;
}
bool EventNotification::sourceUeIpv6PrefixIsSet() const {
return m_SourceUeIpv6PrefixIsSet;
}
void EventNotification::unsetSourceUeIpv6Prefix() {
m_SourceUeIpv6PrefixIsSet = false;
}
std::string EventNotification::getTargetUeIpv4Addr() const {
return m_TargetUeIpv4Addr;
}
void EventNotification::setTargetUeIpv4Addr(std::string const& value) {
m_TargetUeIpv4Addr = value;
m_TargetUeIpv4AddrIsSet = true;
}
bool EventNotification::targetUeIpv4AddrIsSet() const {
return m_TargetUeIpv4AddrIsSet;
}
void EventNotification::unsetTargetUeIpv4Addr() {
m_TargetUeIpv4AddrIsSet = false;
}
Ipv6Prefix EventNotification::getTargetUeIpv6Prefix() const {
return m_TargetUeIpv6Prefix;
}
void EventNotification::setTargetUeIpv6Prefix(Ipv6Prefix const& value) {
m_TargetUeIpv6Prefix = value;
m_TargetUeIpv6PrefixIsSet = true;
}
bool EventNotification::targetUeIpv6PrefixIsSet() const {
return m_TargetUeIpv6PrefixIsSet;
}
void EventNotification::unsetTargetUeIpv6Prefix() {
m_TargetUeIpv6PrefixIsSet = false;
}
RouteToLocation EventNotification::getSourceTraRouting() const {
return m_SourceTraRouting;
}
void EventNotification::setSourceTraRouting(RouteToLocation const& value) {
m_SourceTraRouting = value;
m_SourceTraRoutingIsSet = true;
}
bool EventNotification::sourceTraRoutingIsSet() const {
return m_SourceTraRoutingIsSet;
}
void EventNotification::unsetSourceTraRouting() {
m_SourceTraRoutingIsSet = false;
}
RouteToLocation EventNotification::getTargetTraRouting() const {
return m_TargetTraRouting;
}
void EventNotification::setTargetTraRouting(RouteToLocation const& value) {
m_TargetTraRouting = value;
m_TargetTraRoutingIsSet = true;
}
bool EventNotification::targetTraRoutingIsSet() const {
return m_TargetTraRoutingIsSet;
}
void EventNotification::unsetTargetTraRouting() {
m_TargetTraRoutingIsSet = false;
}
std::string EventNotification::getUeMac() const {
return m_UeMac;
}
void EventNotification::setUeMac(std::string const& value) {
m_UeMac = value;
m_UeMacIsSet = true;
}
bool EventNotification::ueMacIsSet() const {
return m_UeMacIsSet;
}
void EventNotification::unsetUeMac() {
m_UeMacIsSet = false;
}
std::string EventNotification::getAdIpv4Addr() const {
return m_AdIpv4Addr;
}
void EventNotification::setAdIpv4Addr(std::string const& value) {
m_AdIpv4Addr = value;
m_AdIpv4AddrIsSet = true;
}
bool EventNotification::adIpv4AddrIsSet() const {
return m_AdIpv4AddrIsSet;
}
void EventNotification::unsetAdIpv4Addr() {
m_AdIpv4AddrIsSet = false;
}
Ipv6Prefix EventNotification::getAdIpv6Prefix() const {
return m_AdIpv6Prefix;
}
void EventNotification::setAdIpv6Prefix(Ipv6Prefix const& value) {
m_AdIpv6Prefix = value;
m_AdIpv6PrefixIsSet = true;
}
bool EventNotification::adIpv6PrefixIsSet() const {
return m_AdIpv6PrefixIsSet;
}
void EventNotification::unsetAdIpv6Prefix() {
m_AdIpv6PrefixIsSet = false;
}
std::string EventNotification::getReIpv4Addr() const {
return m_ReIpv4Addr;
}
void EventNotification::setReIpv4Addr(std::string const& value) {
m_ReIpv4Addr = value;
m_ReIpv4AddrIsSet = true;
}
bool EventNotification::reIpv4AddrIsSet() const {
return m_ReIpv4AddrIsSet;
}
void EventNotification::unsetReIpv4Addr() {
m_ReIpv4AddrIsSet = false;
}
Ipv6Prefix EventNotification::getReIpv6Prefix() const {
return m_ReIpv6Prefix;
}
void EventNotification::setReIpv6Prefix(Ipv6Prefix const& value) {
m_ReIpv6Prefix = value;
m_ReIpv6PrefixIsSet = true;
}
bool EventNotification::reIpv6PrefixIsSet() const {
return m_ReIpv6PrefixIsSet;
}
void EventNotification::unsetReIpv6Prefix() {
m_ReIpv6PrefixIsSet = false;
}
PlmnId EventNotification::getPlmnId() const {
return m_PlmnId;
}
void EventNotification::setPlmnId(PlmnId const& value) {
m_PlmnId = value;
m_PlmnIdIsSet = true;
}
bool EventNotification::plmnIdIsSet() const {
return m_PlmnIdIsSet;
}
void EventNotification::unsetPlmnId() {
m_PlmnIdIsSet = false;
}
AccessType EventNotification::getAccType() const {
return m_AccType;
}
void EventNotification::setAccType(AccessType const& value) {
m_AccType = value;
m_AccTypeIsSet = true;
}
bool EventNotification::accTypeIsSet() const {
return m_AccTypeIsSet;
}
void EventNotification::unsetAccType() {
m_AccTypeIsSet = false;
}
int32_t EventNotification::getPduSeId() const {
return m_PduSeId;
}
void EventNotification::setPduSeId(int32_t const value) {
m_PduSeId = value;
m_PduSeIdIsSet = true;
}
bool EventNotification::pduSeIdIsSet() const {
return m_PduSeIdIsSet;
}
void EventNotification::unsetPduSeId() {
m_PduSeIdIsSet = false;
}
DddStatus EventNotification::getDddStatus() const {
return m_DddStatus;
}
void EventNotification::setDddStatus(DddStatus const& value) {
m_DddStatus = value;
m_DddStatusIsSet = true;
}
bool EventNotification::dddStatusIsSet() const {
return m_DddStatusIsSet;
}
void EventNotification::unsetDddStatus() {
m_DddStatusIsSet = false;
}
std::string EventNotification::getMaxWaitTime() const {
return m_MaxWaitTime;
}
void EventNotification::setMaxWaitTime(std::string const& value) {
m_MaxWaitTime = value;
m_MaxWaitTimeIsSet = true;
}
bool EventNotification::maxWaitTimeIsSet() const {
return m_MaxWaitTimeIsSet;
}
void EventNotification::unsetMaxWaitTime() {
m_MaxWaitTimeIsSet = false;
}
} // namespace model
} // namespace amf
} // namespace oai
/**
* Namf_EventExposure
* Session Management 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.
*/
/*
* EventNotification.h
*
*
*/
#ifndef EventNotification_H_
#define EventNotification_H_
#include "DnaiChangeType.h"
#include "DddStatus.h"
#include <string>
#include "Ipv6Prefix.h"
#include "AmfEvent.h"
#include "PlmnId.h"
#include "RouteToLocation.h"
#include "AccessType.h"
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class EventNotification {
public:
EventNotification();
virtual ~EventNotification();
void validate();
/////////////////////////////////////////////
/// EventNotification members
/// <summary>
///
/// </summary>
AmfEvent getEvent() const;
void setEvent(AmfEvent const& value);
/// <summary>
///
/// </summary>
std::string getTimeStamp() const;
void setTimeStamp(std::string const& value);
/// <summary>
///
/// </summary>
std::string getSupi() const;
void setSupi(std::string const& value);
bool supiIsSet() const;
void unsetSupi();
/// <summary>
///
/// </summary>
std::string getGpsi() const;
void setGpsi(std::string const& value);
bool gpsiIsSet() const;
void unsetGpsi();
/// <summary>
///
/// </summary>
std::string getSourceDnai() const;
void setSourceDnai(std::string const& value);
bool sourceDnaiIsSet() const;
void unsetSourceDnai();
/// <summary>
///
/// </summary>
std::string getTargetDnai() const;
void setTargetDnai(std::string const& value);
bool targetDnaiIsSet() const;
void unsetTargetDnai();
/// <summary>
///
/// </summary>
DnaiChangeType getDnaiChgType() const;
void setDnaiChgType(DnaiChangeType const& value);
bool dnaiChgTypeIsSet() const;
void unsetDnaiChgType();
/// <summary>
///
/// </summary>
std::string getSourceUeIpv4Addr() const;
void setSourceUeIpv4Addr(std::string const& value);
bool sourceUeIpv4AddrIsSet() const;
void unsetSourceUeIpv4Addr();
/// <summary>
///
/// </summary>
Ipv6Prefix getSourceUeIpv6Prefix() const;
void setSourceUeIpv6Prefix(Ipv6Prefix const& value);
bool sourceUeIpv6PrefixIsSet() const;
void unsetSourceUeIpv6Prefix();
/// <summary>
///
/// </summary>
std::string getTargetUeIpv4Addr() const;
void setTargetUeIpv4Addr(std::string const& value);
bool targetUeIpv4AddrIsSet() const;
void unsetTargetUeIpv4Addr();
/// <summary>
///
/// </summary>
Ipv6Prefix getTargetUeIpv6Prefix() const;
void setTargetUeIpv6Prefix(Ipv6Prefix const& value);
bool targetUeIpv6PrefixIsSet() const;
void unsetTargetUeIpv6Prefix();
/// <summary>
///
/// </summary>
RouteToLocation getSourceTraRouting() const;
void setSourceTraRouting(RouteToLocation const& value);
bool sourceTraRoutingIsSet() const;
void unsetSourceTraRouting();
/// <summary>
///
/// </summary>
RouteToLocation getTargetTraRouting() const;
void setTargetTraRouting(RouteToLocation const& value);
bool targetTraRoutingIsSet() const;
void unsetTargetTraRouting();
/// <summary>
///
/// </summary>
std::string getUeMac() const;
void setUeMac(std::string const& value);
bool ueMacIsSet() const;
void unsetUeMac();
/// <summary>
///
/// </summary>
std::string getAdIpv4Addr() const;
void setAdIpv4Addr(std::string const& value);
bool adIpv4AddrIsSet() const;
void unsetAdIpv4Addr();
/// <summary>
///
/// </summary>
Ipv6Prefix getAdIpv6Prefix() const;
void setAdIpv6Prefix(Ipv6Prefix const& value);
bool adIpv6PrefixIsSet() const;
void unsetAdIpv6Prefix();
/// <summary>
///
/// </summary>
std::string getReIpv4Addr() const;
void setReIpv4Addr(std::string const& value);
bool reIpv4AddrIsSet() const;
void unsetReIpv4Addr();
/// <summary>
///
/// </summary>
Ipv6Prefix getReIpv6Prefix() const;
void setReIpv6Prefix(Ipv6Prefix const& value);
bool reIpv6PrefixIsSet() const;
void unsetReIpv6Prefix();
/// <summary>
///
/// </summary>
PlmnId getPlmnId() const;
void setPlmnId(PlmnId const& value);
bool plmnIdIsSet() const;
void unsetPlmnId();
/// <summary>
///
/// </summary>
AccessType getAccType() const;
void setAccType(AccessType const& value);
bool accTypeIsSet() const;
void unsetAccType();
/// <summary>
///
/// </summary>
int32_t getPduSeId() const;
void setPduSeId(int32_t const value);
bool pduSeIdIsSet() const;
void unsetPduSeId();
/// <summary>
///
/// </summary>
DddStatus getDddStatus() const;
void setDddStatus(DddStatus const& value);
bool dddStatusIsSet() const;
void unsetDddStatus();
/// <summary>
///
/// </summary>
std::string getMaxWaitTime() const;
void setMaxWaitTime(std::string const& value);
bool maxWaitTimeIsSet() const;
void unsetMaxWaitTime();
friend void to_json(nlohmann::json& j, const EventNotification& o);
friend void from_json(const nlohmann::json& j, EventNotification& o);
protected:
AmfEvent m_Event;
std::string m_TimeStamp;
std::string m_Supi;
bool m_SupiIsSet;
std::string m_Gpsi;
bool m_GpsiIsSet;
std::string m_SourceDnai;
bool m_SourceDnaiIsSet;
std::string m_TargetDnai;
bool m_TargetDnaiIsSet;
DnaiChangeType m_DnaiChgType;
bool m_DnaiChgTypeIsSet;
std::string m_SourceUeIpv4Addr;
bool m_SourceUeIpv4AddrIsSet;
Ipv6Prefix m_SourceUeIpv6Prefix;
bool m_SourceUeIpv6PrefixIsSet;
std::string m_TargetUeIpv4Addr;
bool m_TargetUeIpv4AddrIsSet;
Ipv6Prefix m_TargetUeIpv6Prefix;
bool m_TargetUeIpv6PrefixIsSet;
RouteToLocation m_SourceTraRouting;
bool m_SourceTraRoutingIsSet;
RouteToLocation m_TargetTraRouting;
bool m_TargetTraRoutingIsSet;
std::string m_UeMac;
bool m_UeMacIsSet;
std::string m_AdIpv4Addr;
bool m_AdIpv4AddrIsSet;
Ipv6Prefix m_AdIpv6Prefix;
bool m_AdIpv6PrefixIsSet;
std::string m_ReIpv4Addr;
bool m_ReIpv4AddrIsSet;
Ipv6Prefix m_ReIpv6Prefix;
bool m_ReIpv6PrefixIsSet;
PlmnId m_PlmnId;
bool m_PlmnIdIsSet;
AccessType m_AccType;
bool m_AccTypeIsSet;
int32_t m_PduSeId;
bool m_PduSeIdIsSet;
DddStatus m_DddStatus;
bool m_DddStatusIsSet;
std::string m_MaxWaitTime;
bool m_MaxWaitTimeIsSet;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* EventNotification_H_ */
/**
* Namf_EventExposure
* Session Management 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 "EventSubscription.h"
namespace oai {
namespace amf {
namespace model {
EventSubscription::EventSubscription() {
m_DnaiChgTypeIsSet = false;
m_DddTraDesIsSet = false;
m_DddStatiIsSet = false;
}
EventSubscription::~EventSubscription() {}
void EventSubscription::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const EventSubscription& o) {
j = nlohmann::json();
j["event"] = o.m_Event;
if (o.dnaiChgTypeIsSet()) j["dnaiChgType"] = o.m_DnaiChgType;
if (o.dddTraDesIsSet()) j["dddTraDes"] = o.m_DddTraDes;
if (o.dddStatiIsSet() || !o.m_DddStati.empty()) j["dddStati"] = o.m_DddStati;
}
void from_json(const nlohmann::json& j, EventSubscription& o) {
j.at("event").get_to(o.m_Event);
if (j.find("dnaiChgType") != j.end()) {
j.at("dnaiChgType").get_to(o.m_DnaiChgType);
o.m_DnaiChgTypeIsSet = true;
}
if (j.find("dddTraDes") != j.end()) {
j.at("dddTraDes").get_to(o.m_DddTraDes);
o.m_DddTraDesIsSet = true;
}
if (j.find("dddStati") != j.end()) {
j.at("dddStati").get_to(o.m_DddStati);
o.m_DddStatiIsSet = true;
}
}
AmfEvent EventSubscription::getEvent() const {
return m_Event;
}
void EventSubscription::setEvent(AmfEvent const& value) {
m_Event = value;
}
DnaiChangeType EventSubscription::getDnaiChgType() const {
return m_DnaiChgType;
}
void EventSubscription::setDnaiChgType(DnaiChangeType const& value) {
m_DnaiChgType = value;
m_DnaiChgTypeIsSet = true;
}
bool EventSubscription::dnaiChgTypeIsSet() const {
return m_DnaiChgTypeIsSet;
}
void EventSubscription::unsetDnaiChgType() {
m_DnaiChgTypeIsSet = false;
}
DddTrafficDescriptor EventSubscription::getDddTraDes() const {
return m_DddTraDes;
}
void EventSubscription::setDddTraDes(DddTrafficDescriptor const& value) {
m_DddTraDes = value;
m_DddTraDesIsSet = true;
}
bool EventSubscription::dddTraDesIsSet() const {
return m_DddTraDesIsSet;
}
void EventSubscription::unsetDddTraDes() {
m_DddTraDesIsSet = false;
}
std::vector<DddStatus>& EventSubscription::getDddStati() {
return m_DddStati;
}
void EventSubscription::setDddStati(std::vector<DddStatus> const& value) {
m_DddStati = value;
m_DddStatiIsSet = true;
}
bool EventSubscription::dddStatiIsSet() const {
return m_DddStatiIsSet;
}
void EventSubscription::unsetDddStati() {
m_DddStatiIsSet = false;
}
} // namespace model
} // namespace amf
} // namespace oai
/**
* Namf_EventExposure
* Session Management 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.
*/
/*
* EventSubscription.h
*
*
*/
#ifndef EventSubscription_H_
#define EventSubscription_H_
#include "DnaiChangeType.h"
#include "DddTrafficDescriptor.h"
#include "DddStatus.h"
#include "AmfEvent.h"
#include <vector>
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class EventSubscription {
public:
EventSubscription();
virtual ~EventSubscription();
void validate();
/////////////////////////////////////////////
/// EventSubscription members
/// <summary>
///
/// </summary>
AmfEvent getEvent() const;
void setEvent(AmfEvent const& value);
/// <summary>
///
/// </summary>
DnaiChangeType getDnaiChgType() const;
void setDnaiChgType(DnaiChangeType const& value);
bool dnaiChgTypeIsSet() const;
void unsetDnaiChgType();
/// <summary>
///
/// </summary>
DddTrafficDescriptor getDddTraDes() const;
void setDddTraDes(DddTrafficDescriptor const& value);
bool dddTraDesIsSet() const;
void unsetDddTraDes();
/// <summary>
///
/// </summary>
std::vector<DddStatus>& getDddStati();
void setDddStati(std::vector<DddStatus> const& value);
bool dddStatiIsSet() const;
void unsetDddStati();
friend void to_json(nlohmann::json& j, const EventSubscription& o);
friend void from_json(const nlohmann::json& j, EventSubscription& o);
protected:
AmfEvent m_Event;
DnaiChangeType m_DnaiChgType;
bool m_DnaiChgTypeIsSet;
DddTrafficDescriptor m_DddTraDes;
bool m_DddTraDesIsSet;
std::vector<DddStatus> m_DddStati;
bool m_DddStatiIsSet;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* EventSubscription_H_ */
/**
* 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 "InterfaceUpfInfoItem.h"
namespace oai {
namespace amf {
namespace model {
InterfaceUpfInfoItem::InterfaceUpfInfoItem() {
m_Ipv4EndpointAddressesIsSet = false;
m_Ipv6EndpointAddressesIsSet = false;
m_EndpointFqdn = "";
m_EndpointFqdnIsSet = false;
m_NetworkInstance = "";
m_NetworkInstanceIsSet = false;
}
InterfaceUpfInfoItem::~InterfaceUpfInfoItem() {}
void InterfaceUpfInfoItem::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const InterfaceUpfInfoItem& o) {
j = nlohmann::json();
j["interfaceType"] = o.m_InterfaceType;
if (o.ipv4EndpointAddressesIsSet() || !o.m_Ipv4EndpointAddresses.empty())
j["ipv4EndpointAddresses"] = o.m_Ipv4EndpointAddresses;
if (o.ipv6EndpointAddressesIsSet() || !o.m_Ipv6EndpointAddresses.empty())
j["ipv6EndpointAddresses"] = o.m_Ipv6EndpointAddresses;
if (o.endpointFqdnIsSet()) j["endpointFqdn"] = o.m_EndpointFqdn;
if (o.networkInstanceIsSet()) j["networkInstance"] = o.m_NetworkInstance;
}
void from_json(const nlohmann::json& j, InterfaceUpfInfoItem& o) {
j.at("interfaceType").get_to(o.m_InterfaceType);
if (j.find("ipv4EndpointAddresses") != j.end()) {
j.at("ipv4EndpointAddresses").get_to(o.m_Ipv4EndpointAddresses);
o.m_Ipv4EndpointAddressesIsSet = true;
}
if (j.find("ipv6EndpointAddresses") != j.end()) {
j.at("ipv6EndpointAddresses").get_to(o.m_Ipv6EndpointAddresses);
o.m_Ipv6EndpointAddressesIsSet = true;
}
if (j.find("endpointFqdn") != j.end()) {
j.at("endpointFqdn").get_to(o.m_EndpointFqdn);
o.m_EndpointFqdnIsSet = true;
}
if (j.find("networkInstance") != j.end()) {
j.at("networkInstance").get_to(o.m_NetworkInstance);
o.m_NetworkInstanceIsSet = true;
}
}
UPInterfaceType InterfaceUpfInfoItem::getInterfaceType() const {
return m_InterfaceType;
}
void InterfaceUpfInfoItem::setInterfaceType(UPInterfaceType const& value) {
m_InterfaceType = value;
}
std::vector<std::string>& InterfaceUpfInfoItem::getIpv4EndpointAddresses() {
return m_Ipv4EndpointAddresses;
}
void InterfaceUpfInfoItem::setIpv4EndpointAddresses(
std::vector<std::string> const& value) {
m_Ipv4EndpointAddresses = value;
m_Ipv4EndpointAddressesIsSet = true;
}
bool InterfaceUpfInfoItem::ipv4EndpointAddressesIsSet() const {
return m_Ipv4EndpointAddressesIsSet;
}
void InterfaceUpfInfoItem::unsetIpv4EndpointAddresses() {
m_Ipv4EndpointAddressesIsSet = false;
}
std::vector<Ipv6Addr>& InterfaceUpfInfoItem::getIpv6EndpointAddresses() {
return m_Ipv6EndpointAddresses;
}
void InterfaceUpfInfoItem::setIpv6EndpointAddresses(
std::vector<Ipv6Addr> const& value) {
m_Ipv6EndpointAddresses = value;
m_Ipv6EndpointAddressesIsSet = true;
}
bool InterfaceUpfInfoItem::ipv6EndpointAddressesIsSet() const {
return m_Ipv6EndpointAddressesIsSet;
}
void InterfaceUpfInfoItem::unsetIpv6EndpointAddresses() {
m_Ipv6EndpointAddressesIsSet = false;
}
std::string InterfaceUpfInfoItem::getEndpointFqdn() const {
return m_EndpointFqdn;
}
void InterfaceUpfInfoItem::setEndpointFqdn(std::string const& value) {
m_EndpointFqdn = value;
m_EndpointFqdnIsSet = true;
}
bool InterfaceUpfInfoItem::endpointFqdnIsSet() const {
return m_EndpointFqdnIsSet;
}
void InterfaceUpfInfoItem::unsetEndpointFqdn() {
m_EndpointFqdnIsSet = false;
}
std::string InterfaceUpfInfoItem::getNetworkInstance() const {
return m_NetworkInstance;
}
void InterfaceUpfInfoItem::setNetworkInstance(std::string const& value) {
m_NetworkInstance = value;
m_NetworkInstanceIsSet = true;
}
bool InterfaceUpfInfoItem::networkInstanceIsSet() const {
return m_NetworkInstanceIsSet;
}
void InterfaceUpfInfoItem::unsetNetworkInstance() {
m_NetworkInstanceIsSet = false;
}
} // namespace model
} // namespace amf
} // namespace oai
/**
* 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.
*/
/*
* InterfaceUpfInfoItem.h
*
*
*/
#ifndef InterfaceUpfInfoItem_H_
#define InterfaceUpfInfoItem_H_
#include <string>
#include "Ipv6Addr.h"
#include <vector>
#include "UPInterfaceType.h"
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class InterfaceUpfInfoItem {
public:
InterfaceUpfInfoItem();
virtual ~InterfaceUpfInfoItem();
void validate();
/////////////////////////////////////////////
/// InterfaceUpfInfoItem members
/// <summary>
///
/// </summary>
UPInterfaceType getInterfaceType() const;
void setInterfaceType(UPInterfaceType const& value);
/// <summary>
///
/// </summary>
std::vector<std::string>& getIpv4EndpointAddresses();
void setIpv4EndpointAddresses(std::vector<std::string> const& value);
bool ipv4EndpointAddressesIsSet() const;
void unsetIpv4EndpointAddresses();
/// <summary>
///
/// </summary>
std::vector<Ipv6Addr>& getIpv6EndpointAddresses();
void setIpv6EndpointAddresses(std::vector<Ipv6Addr> const& value);
bool ipv6EndpointAddressesIsSet() const;
void unsetIpv6EndpointAddresses();
/// <summary>
///
/// </summary>
std::string getEndpointFqdn() const;
void setEndpointFqdn(std::string const& value);
bool endpointFqdnIsSet() const;
void unsetEndpointFqdn();
/// <summary>
///
/// </summary>
std::string getNetworkInstance() const;
void setNetworkInstance(std::string const& value);
bool networkInstanceIsSet() const;
void unsetNetworkInstance();
friend void to_json(nlohmann::json& j, const InterfaceUpfInfoItem& o);
friend void from_json(const nlohmann::json& j, InterfaceUpfInfoItem& o);
protected:
UPInterfaceType m_InterfaceType;
std::vector<std::string> m_Ipv4EndpointAddresses;
bool m_Ipv4EndpointAddressesIsSet;
std::vector<Ipv6Addr> m_Ipv6EndpointAddresses;
bool m_Ipv6EndpointAddressesIsSet;
std::string m_EndpointFqdn;
bool m_EndpointFqdnIsSet;
std::string m_NetworkInstance;
bool m_NetworkInstanceIsSet;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* InterfaceUpfInfoItem_H_ */
/**
* Namf_EventExposure
* Session Management 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 "Ipv6Prefix.h"
namespace oai {
namespace amf {
namespace model {
Ipv6Prefix::Ipv6Prefix() {}
Ipv6Prefix::~Ipv6Prefix() {}
void Ipv6Prefix::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const Ipv6Prefix& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json& j, Ipv6Prefix& o) {}
} // namespace model
} // namespace amf
} // namespace oai
/**
* Namf_EventExposure
* Session Management 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.
*/
/*
* Ipv6Prefix.h
*
*
*/
#ifndef Ipv6Prefix_H_
#define Ipv6Prefix_H_
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class Ipv6Prefix {
public:
Ipv6Prefix();
virtual ~Ipv6Prefix();
void validate();
/////////////////////////////////////////////
/// Ipv6Prefix members
friend void to_json(nlohmann::json& j, const Ipv6Prefix& o);
friend void from_json(const nlohmann::json& j, Ipv6Prefix& o);
protected:
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* Ipv6Prefix_H_ */
/**
* NRF NFDiscovery Service
* NRF NFDiscovery 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 "NFProfile.h"
namespace oai {
namespace amf {
namespace model {
NFProfile::NFProfile() {
m_NfInstanceId = "";
m_NfInstanceName = "";
m_NfInstanceNameIsSet = false;
m_HeartBeatTimer = 0;
m_HeartBeatTimerIsSet = false;
// m_PlmnListIsSet = false;
// m_SNssaisIsSet = false;
// m_PerPlmnSnssaiListIsSet = false;
m_NsiListIsSet = false;
m_Fqdn = "";
m_FqdnIsSet = false;
m_InterPlmnFqdn = "";
m_InterPlmnFqdnIsSet = false;
m_Ipv4AddressesIsSet = false;
m_Ipv6AddressesIsSet = false;
// m_AllowedPlmnsIsSet = false;
m_AllowedNfTypesIsSet = false;
m_AllowedNfDomainsIsSet = false;
// m_AllowedNssaisIsSet = false;
m_Priority = 0;
m_PriorityIsSet = false;
m_Capacity = 0;
m_CapacityIsSet = false;
m_Load = 0;
m_LoadIsSet = false;
m_Locality = "";
m_LocalityIsSet = false;
m_Priority = 0;
m_PriorityIsSet = false;
m_UpfInfoIsSet = false;
m_UpfInfoExtIsSet = false;
m_RecoveryTime = "";
m_RecoveryTimeIsSet = false;
m_NfServicePersistence = false;
m_NfServicePersistenceIsSet = false;
m_NfProfileChangesSupportInd = false;
m_NfProfileChangesSupportIndIsSet = false;
m_NfProfileChangesInd = false;
m_NfProfileChangesIndIsSet = false;
}
NFProfile::~NFProfile() {}
void NFProfile::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const NFProfile& o) {
j = nlohmann::json();
j["nfInstanceId"] = o.m_NfInstanceId;
if (o.nfInstanceNameIsSet()) j["nfInstanceName"] = o.m_NfInstanceName;
j["nfType"] = o.m_NfType;
j["nfStatus"] = o.m_NfStatus;
if (o.heartBeatTimerIsSet()) j["heartBeatTimer"] = o.m_HeartBeatTimer;
// if (o.plmnListIsSet() || !o.m_PlmnList.empty()) j["plmnList"] =
// o.m_PlmnList; if (o.sNssaisIsSet() || !o.m_SNssais.empty()) j["sNssais"] =
// o.m_SNssais; if (o.perPlmnSnssaiListIsSet() ||
// !o.m_PerPlmnSnssaiList.empty())
// j["perPlmnSnssaiList"] = o.m_PerPlmnSnssaiList;
if (o.nsiListIsSet() || !o.m_NsiList.empty()) j["nsiList"] = o.m_NsiList;
if (o.fqdnIsSet()) j["fqdn"] = o.m_Fqdn;
if (o.interPlmnFqdnIsSet()) j["interPlmnFqdn"] = o.m_InterPlmnFqdn;
if (o.ipv4AddressesIsSet() || !o.m_Ipv4Addresses.empty())
j["ipv4Addresses"] = o.m_Ipv4Addresses;
if (o.ipv6AddressesIsSet() || !o.m_Ipv6Addresses.empty())
j["ipv6Addresses"] = o.m_Ipv6Addresses;
// if (o.allowedPlmnsIsSet() || !o.m_AllowedPlmns.empty())
// j["allowedPlmns"] = o.m_AllowedPlmns;
if (o.allowedNfTypesIsSet() || !o.m_AllowedNfTypes.empty())
j["allowedNfTypes"] = o.m_AllowedNfTypes;
if (o.allowedNfDomainsIsSet() || !o.m_AllowedNfDomains.empty())
j["allowedNfDomains"] = o.m_AllowedNfDomains;
// if (o.allowedNssaisIsSet() || !o.m_AllowedNssais.empty())
// j["allowedNssais"] = o.m_AllowedNssais;
if (o.priorityIsSet()) j["priority"] = o.m_Priority;
if (o.capacityIsSet()) j["capacity"] = o.m_Capacity;
if (o.loadIsSet()) j["load"] = o.m_Load;
if (o.localityIsSet()) j["locality"] = o.m_Locality;
if (o.priorityIsSet()) j["priority"] = o.m_Priority;
if (o.upfInfoIsSet()) j["upfInfo"] = o.m_UpfInfo;
if (o.upfInfoExtIsSet() || !o.m_UpfInfoExt.empty())
j["upfInfoExt"] = o.m_UpfInfoExt;
if (o.recoveryTimeIsSet()) j["recoveryTime"] = o.m_RecoveryTime;
if (o.nfServicePersistenceIsSet())
j["nfServicePersistence"] = o.m_NfServicePersistence;
if (o.nfProfileChangesSupportIndIsSet())
j["nfProfileChangesSupportInd"] = o.m_NfProfileChangesSupportInd;
if (o.nfProfileChangesIndIsSet())
j["nfProfileChangesInd"] = o.m_NfProfileChangesInd;
}
void from_json(const nlohmann::json& j, NFProfile& o) {
j.at("nfInstanceId").get_to(o.m_NfInstanceId);
if (j.find("nfInstanceName") != j.end()) {
j.at("nfInstanceName").get_to(o.m_NfInstanceName);
o.m_NfInstanceNameIsSet = true;
}
j.at("nfType").get_to(o.m_NfType);
j.at("nfStatus").get_to(o.m_NfStatus);
if (j.find("heartBeatTimer") != j.end()) {
j.at("heartBeatTimer").get_to(o.m_HeartBeatTimer);
o.m_HeartBeatTimerIsSet = true;
}
// if (j.find("plmnList") != j.end()) {
// j.at("plmnList").get_to(o.m_PlmnList);
// o.m_PlmnListIsSet = true;
//}
// if (j.find("sNssais") != j.end()) {
// j.at("sNssais").get_to(o.m_SNssais);
// o.m_SNssaisIsSet = true;
//}
// if (j.find("perPlmnSnssaiList") != j.end()) {
// j.at("perPlmnSnssaiList").get_to(o.m_PerPlmnSnssaiList);
// o.m_PerPlmnSnssaiListIsSet = true;
//}
if (j.find("nsiList") != j.end()) {
j.at("nsiList").get_to(o.m_NsiList);
o.m_NsiListIsSet = true;
}
if (j.find("fqdn") != j.end()) {
j.at("fqdn").get_to(o.m_Fqdn);
o.m_FqdnIsSet = true;
}
if (j.find("interPlmnFqdn") != j.end()) {
j.at("interPlmnFqdn").get_to(o.m_InterPlmnFqdn);
o.m_InterPlmnFqdnIsSet = true;
}
if (j.find("ipv4Addresses") != j.end()) {
j.at("ipv4Addresses").get_to(o.m_Ipv4Addresses);
o.m_Ipv4AddressesIsSet = true;
}
if (j.find("ipv6Addresses") != j.end()) {
j.at("ipv6Addresses").get_to(o.m_Ipv6Addresses);
o.m_Ipv6AddressesIsSet = true;
}
// if (j.find("allowedPlmns") != j.end()) {
// j.at("allowedPlmns").get_to(o.m_AllowedPlmns);
// o.m_AllowedPlmnsIsSet = true;
//}
if (j.find("allowedNfTypes") != j.end()) {
j.at("allowedNfTypes").get_to(o.m_AllowedNfTypes);
o.m_AllowedNfTypesIsSet = true;
}
if (j.find("allowedNfDomains") != j.end()) {
j.at("allowedNfDomains").get_to(o.m_AllowedNfDomains);
o.m_AllowedNfDomainsIsSet = true;
}
// if (j.find("allowedNssais") != j.end()) {
// j.at("allowedNssais").get_to(o.m_AllowedNssais);
// o.m_AllowedNssaisIsSet = true;
//}
if (j.find("priority") != j.end()) {
j.at("priority").get_to(o.m_Priority);
o.m_PriorityIsSet = true;
}
if (j.find("capacity") != j.end()) {
j.at("capacity").get_to(o.m_Capacity);
o.m_CapacityIsSet = true;
}
if (j.find("load") != j.end()) {
j.at("load").get_to(o.m_Load);
o.m_LoadIsSet = true;
}
if (j.find("locality") != j.end()) {
j.at("locality").get_to(o.m_Locality);
o.m_LocalityIsSet = true;
}
if (j.find("priority") != j.end()) {
j.at("priority").get_to(o.m_Priority);
o.m_PriorityIsSet = true;
}
if (j.find("upfInfo") != j.end()) {
j.at("upfInfo").get_to(o.m_UpfInfo);
o.m_UpfInfoIsSet = true;
}
if (j.find("upfInfoExt") != j.end()) {
j.at("upfInfoExt").get_to(o.m_UpfInfoExt);
o.m_UpfInfoExtIsSet = true;
}
if (j.find("recoveryTime") != j.end()) {
j.at("recoveryTime").get_to(o.m_RecoveryTime);
o.m_RecoveryTimeIsSet = true;
}
if (j.find("nfServicePersistence") != j.end()) {
j.at("nfServicePersistence").get_to(o.m_NfServicePersistence);
o.m_NfServicePersistenceIsSet = true;
}
if (j.find("nfProfileChangesSupportInd") != j.end()) {
j.at("nfProfileChangesSupportInd").get_to(o.m_NfProfileChangesSupportInd);
o.m_NfProfileChangesSupportIndIsSet = true;
}
if (j.find("nfProfileChangesInd") != j.end()) {
j.at("nfProfileChangesInd").get_to(o.m_NfProfileChangesInd);
o.m_NfProfileChangesIndIsSet = true;
}
}
std::string NFProfile::getNfInstanceId() const {
return m_NfInstanceId;
}
void NFProfile::setNfInstanceId(std::string const& value) {
m_NfInstanceId = value;
}
std::string NFProfile::getNfInstanceName() const {
return m_NfInstanceName;
}
void NFProfile::setNfInstanceName(std::string const& value) {
m_NfInstanceName = value;
m_NfInstanceNameIsSet = true;
}
bool NFProfile::nfInstanceNameIsSet() const {
return m_NfInstanceNameIsSet;
}
void NFProfile::unsetNfInstanceName() {
m_NfInstanceNameIsSet = false;
}
std::string NFProfile::getNfType() const {
return m_NfType;
}
void NFProfile::setNfType(std::string const& value) {
m_NfType = value;
}
std::string NFProfile::getNfStatus() const {
return m_NfStatus;
}
void NFProfile::setNfStatus(std::string const& value) {
m_NfStatus = value;
}
int32_t NFProfile::getHeartBeatTimer() const {
return m_HeartBeatTimer;
}
void NFProfile::setHeartBeatTimer(int32_t const value) {
m_HeartBeatTimer = value;
m_HeartBeatTimerIsSet = true;
}
bool NFProfile::heartBeatTimerIsSet() const {
return m_HeartBeatTimerIsSet;
}
void NFProfile::unsetHeartBeatTimer() {
m_HeartBeatTimerIsSet = false;
}
// std::vector<PlmnId>& NFProfile::getPlmnList() {
// return m_PlmnList;
//}
// void NFProfile::setPlmnList(std::vector<PlmnId> const& value) {
// m_PlmnList = value;
// m_PlmnListIsSet = true;
//}
// bool NFProfile::plmnListIsSet() const {
// return m_PlmnListIsSet;
//}
// void NFProfile::unsetPlmnList() {
// m_PlmnListIsSet = false;
//}
// std::vector<Snssai> NFProfile::getSNssais() const {
// return m_SNssais;//
//}
// void NFProfile::setSNssais(std::vector<Snssai> const& value) {
// m_SNssais = value;
// m_SNssaisIsSet = true;
//}
// bool NFProfile::sNssaisIsSet() const {
// return m_SNssaisIsSet;
//}
// void NFProfile::unsetSNssais() {
// m_SNssaisIsSet = false;
//}
// std::vector<PlmnSnssai>& NFProfile::getPerPlmnSnssaiList() {
// return m_PerPlmnSnssaiList;
//}
// void NFProfile::setPerPlmnSnssaiList(std::vector<PlmnSnssai> const& value) {
// m_PerPlmnSnssaiList = value;
// m_PerPlmnSnssaiListIsSet = true;
//}
// bool NFProfile::perPlmnSnssaiListIsSet() const {
// return m_PerPlmnSnssaiListIsSet;
//}
// void NFProfile::unsetPerPlmnSnssaiList() {
// m_PerPlmnSnssaiListIsSet = false;
//}
std::vector<std::string>& NFProfile::getNsiList() {
return m_NsiList;
}
void NFProfile::setNsiList(std::vector<std::string> const& value) {
m_NsiList = value;
m_NsiListIsSet = true;
}
bool NFProfile::nsiListIsSet() const {
return m_NsiListIsSet;
}
void NFProfile::unsetNsiList() {
m_NsiListIsSet = false;
}
std::string NFProfile::getFqdn() const {
return m_Fqdn;
}
void NFProfile::setFqdn(std::string const& value) {
m_Fqdn = value;
m_FqdnIsSet = true;
}
bool NFProfile::fqdnIsSet() const {
return m_FqdnIsSet;
}
void NFProfile::unsetFqdn() {
m_FqdnIsSet = false;
}
std::string NFProfile::getInterPlmnFqdn() const {
return m_InterPlmnFqdn;
}
void NFProfile::setInterPlmnFqdn(std::string const& value) {
m_InterPlmnFqdn = value;
m_InterPlmnFqdnIsSet = true;
}
bool NFProfile::interPlmnFqdnIsSet() const {
return m_InterPlmnFqdnIsSet;
}
void NFProfile::unsetInterPlmnFqdn() {
m_InterPlmnFqdnIsSet = false;
}
std::vector<std::string> NFProfile::getIpv4Addresses() const {
return m_Ipv4Addresses;
}
void NFProfile::setIpv4Addresses(std::vector<std::string> const& value) {
m_Ipv4Addresses = value;
m_Ipv4AddressesIsSet = true;
}
bool NFProfile::ipv4AddressesIsSet() const {
return m_Ipv4AddressesIsSet;
}
void NFProfile::unsetIpv4Addresses() {
m_Ipv4AddressesIsSet = false;
}
std::vector<Ipv6Addr>& NFProfile::getIpv6Addresses() {
return m_Ipv6Addresses;
}
void NFProfile::setIpv6Addresses(std::vector<Ipv6Addr> const& value) {
m_Ipv6Addresses = value;
m_Ipv6AddressesIsSet = true;
}
bool NFProfile::ipv6AddressesIsSet() const {
return m_Ipv6AddressesIsSet;
}
void NFProfile::unsetIpv6Addresses() {
m_Ipv6AddressesIsSet = false;
}
// std::vector<PlmnId>& NFProfile::getAllowedPlmns() {
// return m_AllowedPlmns;
//}
// void NFProfile::setAllowedPlmns(std::vector<PlmnId> const& value) {
// m_AllowedPlmns = value;
// m_AllowedPlmnsIsSet = true;
//}
// bool NFProfile::allowedPlmnsIsSet() const {
// return m_AllowedPlmnsIsSet;
//}
// void NFProfile::unsetAllowedPlmns() {
// m_AllowedPlmnsIsSet = false;
//}
std::vector<std::string>& NFProfile::getAllowedNfTypes() {
return m_AllowedNfTypes;
}
void NFProfile::setAllowedNfTypes(std::vector<std::string> const& value) {
m_AllowedNfTypes = value;
m_AllowedNfTypesIsSet = true;
}
bool NFProfile::allowedNfTypesIsSet() const {
return m_AllowedNfTypesIsSet;
}
void NFProfile::unsetAllowedNfTypes() {
m_AllowedNfTypesIsSet = false;
}
std::vector<std::string>& NFProfile::getAllowedNfDomains() {
return m_AllowedNfDomains;
}
void NFProfile::setAllowedNfDomains(std::vector<std::string> const& value) {
m_AllowedNfDomains = value;
m_AllowedNfDomainsIsSet = true;
}
bool NFProfile::allowedNfDomainsIsSet() const {
return m_AllowedNfDomainsIsSet;
}
void NFProfile::unsetAllowedNfDomains() {
m_AllowedNfDomainsIsSet = false;
}
// std::vector<Snssai>& NFProfile::getAllowedNssais() {
// return m_AllowedNssais;
//}
// void NFProfile::setAllowedNssais(std::vector<Snssai> const& value) {
// m_AllowedNssais = value;
// m_AllowedNssaisIsSet = true;
//}
// bool NFProfile::allowedNssaisIsSet() const {
// return m_AllowedNssaisIsSet;
//}
// void NFProfile::unsetAllowedNssais() {
// m_AllowedNssaisIsSet = false;
//}
int32_t NFProfile::getPriority() const {
return m_Priority;
}
void NFProfile::setPriority(int32_t const value) {
m_Priority = value;
m_PriorityIsSet = true;
}
bool NFProfile::priorityIsSet() const {
return m_PriorityIsSet;
}
void NFProfile::unsetPriority() {
m_PriorityIsSet = false;
}
int32_t NFProfile::getCapacity() const {
return m_Capacity;
}
void NFProfile::setCapacity(int32_t const value) {
m_Capacity = value;
m_CapacityIsSet = true;
}
bool NFProfile::capacityIsSet() const {
return m_CapacityIsSet;
}
void NFProfile::unsetCapacity() {
m_CapacityIsSet = false;
}
int32_t NFProfile::getLoad() const {
return m_Load;
}
void NFProfile::setLoad(int32_t const value) {
m_Load = value;
m_LoadIsSet = true;
}
bool NFProfile::loadIsSet() const {
return m_LoadIsSet;
}
void NFProfile::unsetLoad() {
m_LoadIsSet = false;
}
std::string NFProfile::getLocality() const {
return m_Locality;
}
void NFProfile::setLocality(std::string const& value) {
m_Locality = value;
m_LocalityIsSet = true;
}
bool NFProfile::localityIsSet() const {
return m_LocalityIsSet;
}
void NFProfile::unsetLocality() {
m_LocalityIsSet = false;
}
UpfInfo NFProfile::getUpfInfo() const {
return m_UpfInfo;
}
void NFProfile::setUpfInfo(UpfInfo const& value) {
m_UpfInfo = value;
m_UpfInfoIsSet = true;
}
bool NFProfile::upfInfoIsSet() const {
return m_UpfInfoIsSet;
}
void NFProfile::unsetUpfInfo() {
m_UpfInfoIsSet = false;
}
std::vector<UpfInfo>& NFProfile::getUpfInfoExt() {
return m_UpfInfoExt;
}
void NFProfile::setUpfInfoExt(std::vector<UpfInfo> const& value) {
m_UpfInfoExt = value;
m_UpfInfoExtIsSet = true;
}
bool NFProfile::upfInfoExtIsSet() const {
return m_UpfInfoExtIsSet;
}
void NFProfile::unsetUpfInfoExt() {
m_UpfInfoExtIsSet = false;
}
std::string NFProfile::getRecoveryTime() const {
return m_RecoveryTime;
}
void NFProfile::setRecoveryTime(std::string const& value) {
m_RecoveryTime = value;
m_RecoveryTimeIsSet = true;
}
bool NFProfile::recoveryTimeIsSet() const {
return m_RecoveryTimeIsSet;
}
void NFProfile::unsetRecoveryTime() {
m_RecoveryTimeIsSet = false;
}
bool NFProfile::isNfServicePersistence() const {
return m_NfServicePersistence;
}
void NFProfile::setNfServicePersistence(bool const value) {
m_NfServicePersistence = value;
m_NfServicePersistenceIsSet = true;
}
bool NFProfile::nfServicePersistenceIsSet() const {
return m_NfServicePersistenceIsSet;
}
void NFProfile::unsetNfServicePersistence() {
m_NfServicePersistenceIsSet = false;
}
bool NFProfile::isNfProfileChangesSupportInd() const {
return m_NfProfileChangesSupportInd;
}
void NFProfile::setNfProfileChangesSupportInd(bool const value) {
m_NfProfileChangesSupportInd = value;
m_NfProfileChangesSupportIndIsSet = true;
}
bool NFProfile::nfProfileChangesSupportIndIsSet() const {
return m_NfProfileChangesSupportIndIsSet;
}
void NFProfile::unsetNfProfileChangesSupportInd() {
m_NfProfileChangesSupportIndIsSet = false;
}
bool NFProfile::isNfProfileChangesInd() const {
return m_NfProfileChangesInd;
}
void NFProfile::setNfProfileChangesInd(bool const value) {
m_NfProfileChangesInd = value;
m_NfProfileChangesIndIsSet = true;
}
bool NFProfile::nfProfileChangesIndIsSet() const {
return m_NfProfileChangesIndIsSet;
}
void NFProfile::unsetNfProfileChangesInd() {
m_NfProfileChangesIndIsSet = false;
}
} // namespace model
} // namespace amf
} // namespace oai
/**
* 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.
*/
/*
* NFProfile.h
*
*
*/
#ifndef NFProfile_H_
#define NFProfile_H_
//#include "BsfInfo.h"
//#include "PcfInfo.h"
//#include "NrfInfo.h"
//#include "UdmInfo.h"
#include "UpfInfo.h"
//#include "ChfInfo.h"
//#include "SmfInfo.h"
#include <string>
//#include "DefaultNotificationSubscription.h"
#include "Ipv6Addr.h"
//#include "NFStatus.h"
//#include "NFService.h"
//#include "PlmnId.h"
//#include "Snssai.h"
#include <vector>
//#include "AmfInfo.h"
//#include "UdrInfo.h"
//#include "NFType.h"
//#include "Object.h"
//#include "PlmnSnssai.h"
//#include "AusfInfo.h"
//#include "NwdafInfo.h"
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class NFProfile {
public:
NFProfile();
virtual ~NFProfile();
void validate();
/////////////////////////////////////////////
/// NFProfile members
/// <summary>
///
/// </summary>
std::string getNfInstanceId() const;
void setNfInstanceId(std::string const& value);
/// <summary>
///
/// </summary>
std::string getNfInstanceName() const;
void setNfInstanceName(std::string const& value);
bool nfInstanceNameIsSet() const;
void unsetNfInstanceName();
/// <summary>
///
/// </summary>
std::string getNfType() const;
void setNfType(std::string const& value);
/// <summary>
///
/// </summary>
std::string getNfStatus() const;
void setNfStatus(std::string const& value);
/// <summary>
///
/// </summary>
int32_t getHeartBeatTimer() const;
void setHeartBeatTimer(int32_t const value);
bool heartBeatTimerIsSet() const;
void unsetHeartBeatTimer();
/// <summary>
///
/// </summary>
// std::vector<PlmnId>& getPlmnList();
// void setPlmnList(std::vector<PlmnId> const& value);
// bool plmnListIsSet() const;
// void unsetPlmnList();
/// <summary>
///
/// </summary>
// std::vector<Snssai> getSNssais() const;
// void setSNssais(std::vector<Snssai> const& value);
// bool sNssaisIsSet() const;
// void unsetSNssais();
/// <summary>
///
/// </summary>
// std::vector<PlmnSnssai>& getPerPlmnSnssaiList();
// void setPerPlmnSnssaiList(std::vector<PlmnSnssai> const& value);
// bool perPlmnSnssaiListIsSet() const;
// void unsetPerPlmnSnssaiList();
/// <summary>
///
/// </summary>
std::vector<std::string>& getNsiList();
void setNsiList(std::vector<std::string> const& value);
bool nsiListIsSet() const;
void unsetNsiList();
/// <summary>
///
/// </summary>
std::string getFqdn() const;
void setFqdn(std::string const& value);
bool fqdnIsSet() const;
void unsetFqdn();
/// <summary>
///
/// </summary>
std::string getInterPlmnFqdn() const;
void setInterPlmnFqdn(std::string const& value);
bool interPlmnFqdnIsSet() const;
void unsetInterPlmnFqdn();
/// <summary>
///
/// </summary>
std::vector<std::string> getIpv4Addresses() const;
void setIpv4Addresses(std::vector<std::string> const& value);
bool ipv4AddressesIsSet() const;
void unsetIpv4Addresses();
/// <summary>
///
/// </summary>
std::vector<Ipv6Addr>& getIpv6Addresses();
void setIpv6Addresses(std::vector<Ipv6Addr> const& value);
bool ipv6AddressesIsSet() const;
void unsetIpv6Addresses();
/// <summary>
///
/// </summary>
// std::vector<PlmnId>& getAllowedPlmns();
// void setAllowedPlmns(std::vector<PlmnId> const& value);
// bool allowedPlmnsIsSet() const;
// void unsetAllowedPlmns();
/// <summary>
///
/// </summary>
std::vector<std::string>& getAllowedNfTypes();
void setAllowedNfTypes(std::vector<std::string> const& value);
bool allowedNfTypesIsSet() const;
void unsetAllowedNfTypes();
/// <summary>
///
/// </summary>
std::vector<std::string>& getAllowedNfDomains();
void setAllowedNfDomains(std::vector<std::string> const& value);
bool allowedNfDomainsIsSet() const;
void unsetAllowedNfDomains();
/// <summary>
///
/// </summary>
// std::vector<Snssai>& getAllowedNssais();
// void setAllowedNssais(std::vector<Snssai> const& value);
// bool allowedNssaisIsSet() const;
// void unsetAllowedNssais();
/// <summary>
///
/// </summary>
int32_t getPriority() const;
void setPriority(int32_t const value);
bool priorityIsSet() const;
void unsetPriority();
/// <summary>
///
/// </summary>
int32_t getCapacity() const;
void setCapacity(int32_t const value);
bool capacityIsSet() const;
void unsetCapacity();
/// <summary>
///
/// </summary>
int32_t getLoad() const;
void setLoad(int32_t const value);
bool loadIsSet() const;
void unsetLoad();
/// <summary>
///
/// </summary>
std::string getLocality() const;
void setLocality(std::string const& value);
bool localityIsSet() const;
void unsetLocality();
/// <summary>
///
/// </summary>
UpfInfo getUpfInfo() const;
void setUpfInfo(UpfInfo const& value);
bool upfInfoIsSet() const;
void unsetUpfInfo();
/// <summary>
///
/// </summary>
std::vector<UpfInfo>& getUpfInfoExt();
void setUpfInfoExt(std::vector<UpfInfo> const& value);
bool upfInfoExtIsSet() const;
void unsetUpfInfoExt();
std::string getRecoveryTime() const;
void setRecoveryTime(std::string const& value);
bool recoveryTimeIsSet() const;
void unsetRecoveryTime();
/// <summary>
///
/// </summary>
bool isNfServicePersistence() const;
void setNfServicePersistence(bool const value);
bool nfServicePersistenceIsSet() const;
void unsetNfServicePersistence();
/// <summary>
///
/// <summary>
///
/// </summary>
bool isNfProfileChangesSupportInd() const;
void setNfProfileChangesSupportInd(bool const value);
bool nfProfileChangesSupportIndIsSet() const;
void unsetNfProfileChangesSupportInd();
/// <summary>
///
/// </summary>
bool isNfProfileChangesInd() const;
void setNfProfileChangesInd(bool const value);
bool nfProfileChangesIndIsSet() const;
void unsetNfProfileChangesInd();
/// <summary>
///
/// </summary>
friend void to_json(nlohmann::json& j, const NFProfile& o);
friend void from_json(const nlohmann::json& j, NFProfile& o);
protected:
std::string m_NfInstanceId;
std::string m_NfInstanceName;
bool m_NfInstanceNameIsSet;
std::string m_NfType;
std::string m_NfStatus;
int32_t m_HeartBeatTimer;
bool m_HeartBeatTimerIsSet;
// std::vector<PlmnId> m_PlmnList;
// bool m_PlmnListIsSet;
// std::vector<Snssai> m_SNssais;
// bool m_SNssaisIsSet;
// std::vector<PlmnSnssai> m_PerPlmnSnssaiList;
// bool m_PerPlmnSnssaiListIsSet;
std::vector<std::string> m_NsiList;
bool m_NsiListIsSet;
std::string m_Fqdn;
bool m_FqdnIsSet;
std::string m_InterPlmnFqdn;
bool m_InterPlmnFqdnIsSet;
std::vector<std::string> m_Ipv4Addresses;
bool m_Ipv4AddressesIsSet;
std::vector<Ipv6Addr> m_Ipv6Addresses;
bool m_Ipv6AddressesIsSet;
// std::vector<PlmnId> m_AllowedPlmns;
// bool m_AllowedPlmnsIsSet;
std::vector<std::string> m_AllowedNfTypes;
bool m_AllowedNfTypesIsSet;
std::vector<std::string> m_AllowedNfDomains;
bool m_AllowedNfDomainsIsSet;
// std::vector<Snssai> m_AllowedNssais;
// bool m_AllowedNssaisIsSet;
int32_t m_Capacity;
bool m_CapacityIsSet;
int32_t m_Load;
bool m_LoadIsSet;
std::string m_Locality;
bool m_LocalityIsSet;
int32_t m_Priority;
bool m_PriorityIsSet;
UpfInfo m_UpfInfo;
bool m_UpfInfoIsSet;
std::vector<UpfInfo> m_UpfInfoExt;
bool m_UpfInfoExtIsSet;
std::string m_RecoveryTime;
bool m_RecoveryTimeIsSet;
bool m_NfServicePersistence;
bool m_NfServicePersistenceIsSet;
bool m_NfProfileChangesSupportInd;
bool m_NfProfileChangesSupportIndIsSet;
bool m_NfProfileChangesInd;
bool m_NfProfileChangesIndIsSet;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* NFProfile_H_ */
/**
* 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 "NFStatus.h"
namespace oai {
namespace amf_server {
namespace model {
NFStatus::NFStatus() {}
NFStatus::~NFStatus() {}
void NFStatus::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const NFStatus& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json& j, NFStatus& o) {}
} // namespace model
} // namespace amf_server
} // namespace oai
/**
* 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.
*/
/*
* NFStatus.h
*
*
*/
#ifndef NFStatus_H_
#define NFStatus_H_
#include <nlohmann/json.hpp>
namespace oai {
namespace amf_server {
namespace model {
/// <summary>
///
/// </summary>
class NFStatus {
public:
NFStatus();
virtual ~NFStatus();
void validate();
/////////////////////////////////////////////
/// NFStatus members
friend void to_json(nlohmann::json& j, const NFStatus& o);
friend void from_json(const nlohmann::json& j, NFStatus& o);
protected:
};
} // namespace model
} // namespace amf_server
} // namespace oai
#endif /* NFStatus_H_ */
/**
* Namf_EventExposure
* Session Management 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 "NamfEventExposure.h"
namespace oai {
namespace amf {
namespace model {
NamfEventExposure::NamfEventExposure() {
m_Supi = "";
m_SupiIsSet = false;
m_Gpsi = "";
m_GpsiIsSet = false;
m_AnyUeInd = false;
m_AnyUeIndIsSet = false;
m_GroupId = "";
m_GroupIdIsSet = false;
m_PduSeId = 0;
m_PduSeIdIsSet = false;
m_SubId = "";
m_SubIdIsSet = false;
m_NotifId = "";
m_NotifUri = "";
m_AltNotifIpv4AddrsIsSet = false;
m_AltNotifIpv6AddrsIsSet = false;
m_ImmeRep = false;
m_ImmeRepIsSet = false;
m_NotifMethodIsSet = false;
m_MaxReportNbr = 0;
m_MaxReportNbrIsSet = false;
m_Expiry = "";
m_ExpiryIsSet = false;
m_RepPeriod = 0;
m_RepPeriodIsSet = false;
m_GuamiIsSet = false;
m_ServiveName = "";
m_ServiveNameIsSet = false;
m_SupportedFeatures = "";
m_SupportedFeaturesIsSet = false;
}
NamfEventExposure::~NamfEventExposure() {}
void NamfEventExposure::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const NamfEventExposure& o) {
j = nlohmann::json();
if (o.supiIsSet()) j["supi"] = o.m_Supi;
if (o.gpsiIsSet()) j["gpsi"] = o.m_Gpsi;
if (o.anyUeIndIsSet()) j["anyUeInd"] = o.m_AnyUeInd;
if (o.groupIdIsSet()) j["groupId"] = o.m_GroupId;
if (o.pduSeIdIsSet()) j["pduSeId"] = o.m_PduSeId;
if (o.subIdIsSet()) j["subId"] = o.m_SubId;
j["notifId"] = o.m_NotifId;
j["notifUri"] = o.m_NotifUri;
if (o.altNotifIpv4AddrsIsSet() || !o.m_AltNotifIpv4Addrs.empty())
j["altNotifIpv4Addrs"] = o.m_AltNotifIpv4Addrs;
if (o.altNotifIpv6AddrsIsSet() || !o.m_AltNotifIpv6Addrs.empty())
j["altNotifIpv6Addrs"] = o.m_AltNotifIpv6Addrs;
j["eventSubs"] = o.m_EventSubs;
if (o.immeRepIsSet()) j["ImmeRep"] = o.m_ImmeRep;
if (o.notifMethodIsSet()) j["notifMethod"] = o.m_NotifMethod;
if (o.maxReportNbrIsSet()) j["maxReportNbr"] = o.m_MaxReportNbr;
if (o.expiryIsSet()) j["expiry"] = o.m_Expiry;
if (o.repPeriodIsSet()) j["repPeriod"] = o.m_RepPeriod;
if (o.guamiIsSet()) j["guami"] = o.m_Guami;
if (o.serviveNameIsSet()) j["serviveName"] = o.m_ServiveName;
if (o.supportedFeaturesIsSet())
j["supportedFeatures"] = o.m_SupportedFeatures;
}
void from_json(const nlohmann::json& j, NamfEventExposure& o) {
if (j.find("supi") != j.end()) {
j.at("supi").get_to(o.m_Supi);
o.m_SupiIsSet = true;
}
if (j.find("gpsi") != j.end()) {
j.at("gpsi").get_to(o.m_Gpsi);
o.m_GpsiIsSet = true;
}
if (j.find("anyUeInd") != j.end()) {
j.at("anyUeInd").get_to(o.m_AnyUeInd);
o.m_AnyUeIndIsSet = true;
}
if (j.find("groupId") != j.end()) {
j.at("groupId").get_to(o.m_GroupId);
o.m_GroupIdIsSet = true;
}
if (j.find("pduSeId") != j.end()) {
j.at("pduSeId").get_to(o.m_PduSeId);
o.m_PduSeIdIsSet = true;
}
if (j.find("subId") != j.end()) {
j.at("subId").get_to(o.m_SubId);
o.m_SubIdIsSet = true;
}
j.at("notifId").get_to(o.m_NotifId);
j.at("notifUri").get_to(o.m_NotifUri);
if (j.find("altNotifIpv4Addrs") != j.end()) {
j.at("altNotifIpv4Addrs").get_to(o.m_AltNotifIpv4Addrs);
o.m_AltNotifIpv4AddrsIsSet = true;
}
if (j.find("altNotifIpv6Addrs") != j.end()) {
j.at("altNotifIpv6Addrs").get_to(o.m_AltNotifIpv6Addrs);
o.m_AltNotifIpv6AddrsIsSet = true;
}
j.at("eventSubs").get_to(o.m_EventSubs);
if (j.find("ImmeRep") != j.end()) {
j.at("ImmeRep").get_to(o.m_ImmeRep);
o.m_ImmeRepIsSet = true;
}
if (j.find("notifMethod") != j.end()) {
j.at("notifMethod").get_to(o.m_NotifMethod);
o.m_NotifMethodIsSet = true;
}
if (j.find("maxReportNbr") != j.end()) {
j.at("maxReportNbr").get_to(o.m_MaxReportNbr);
o.m_MaxReportNbrIsSet = true;
}
if (j.find("expiry") != j.end()) {
j.at("expiry").get_to(o.m_Expiry);
o.m_ExpiryIsSet = true;
}
if (j.find("repPeriod") != j.end()) {
j.at("repPeriod").get_to(o.m_RepPeriod);
o.m_RepPeriodIsSet = true;
}
if (j.find("guami") != j.end()) {
j.at("guami").get_to(o.m_Guami);
o.m_GuamiIsSet = true;
}
if (j.find("serviveName") != j.end()) {
j.at("serviveName").get_to(o.m_ServiveName);
o.m_ServiveNameIsSet = true;
}
if (j.find("supportedFeatures") != j.end()) {
j.at("supportedFeatures").get_to(o.m_SupportedFeatures);
o.m_SupportedFeaturesIsSet = true;
}
}
std::string NamfEventExposure::getSupi() const {
return m_Supi;
}
void NamfEventExposure::setSupi(std::string const& value) {
m_Supi = value;
m_SupiIsSet = true;
}
bool NamfEventExposure::supiIsSet() const {
return m_SupiIsSet;
}
void NamfEventExposure::unsetSupi() {
m_SupiIsSet = false;
}
std::string NamfEventExposure::getGpsi() const {
return m_Gpsi;
}
void NamfEventExposure::setGpsi(std::string const& value) {
m_Gpsi = value;
m_GpsiIsSet = true;
}
bool NamfEventExposure::gpsiIsSet() const {
return m_GpsiIsSet;
}
void NamfEventExposure::unsetGpsi() {
m_GpsiIsSet = false;
}
bool NamfEventExposure::isAnyUeInd() const {
return m_AnyUeInd;
}
void NamfEventExposure::setAnyUeInd(bool const value) {
m_AnyUeInd = value;
m_AnyUeIndIsSet = true;
}
bool NamfEventExposure::anyUeIndIsSet() const {
return m_AnyUeIndIsSet;
}
void NamfEventExposure::unsetAnyUeInd() {
m_AnyUeIndIsSet = false;
}
std::string NamfEventExposure::getGroupId() const {
return m_GroupId;
}
void NamfEventExposure::setGroupId(std::string const& value) {
m_GroupId = value;
m_GroupIdIsSet = true;
}
bool NamfEventExposure::groupIdIsSet() const {
return m_GroupIdIsSet;
}
void NamfEventExposure::unsetGroupId() {
m_GroupIdIsSet = false;
}
int32_t NamfEventExposure::getPduSeId() const {
return m_PduSeId;
}
void NamfEventExposure::setPduSeId(int32_t const value) {
m_PduSeId = value;
m_PduSeIdIsSet = true;
}
bool NamfEventExposure::pduSeIdIsSet() const {
return m_PduSeIdIsSet;
}
void NamfEventExposure::unsetPduSeId() {
m_PduSeIdIsSet = false;
}
std::string NamfEventExposure::getSubId() const {
return m_SubId;
}
void NamfEventExposure::setSubId(std::string const& value) {
m_SubId = value;
m_SubIdIsSet = true;
}
bool NamfEventExposure::subIdIsSet() const {
return m_SubIdIsSet;
}
void NamfEventExposure::unsetSubId() {
m_SubIdIsSet = false;
}
std::string NamfEventExposure::getNotifId() const {
return m_NotifId;
}
void NamfEventExposure::setNotifId(std::string const& value) {
m_NotifId = value;
}
std::string NamfEventExposure::getNotifUri() const {
return m_NotifUri;
}
void NamfEventExposure::setNotifUri(std::string const& value) {
m_NotifUri = value;
}
std::vector<std::string>& NamfEventExposure::getAltNotifIpv4Addrs() {
return m_AltNotifIpv4Addrs;
}
void NamfEventExposure::setAltNotifIpv4Addrs(
std::vector<std::string> const& value) {
m_AltNotifIpv4Addrs = value;
m_AltNotifIpv4AddrsIsSet = true;
}
bool NamfEventExposure::altNotifIpv4AddrsIsSet() const {
return m_AltNotifIpv4AddrsIsSet;
}
void NamfEventExposure::unsetAltNotifIpv4Addrs() {
m_AltNotifIpv4AddrsIsSet = false;
}
std::vector<Ipv6Addr>& NamfEventExposure::getAltNotifIpv6Addrs() {
return m_AltNotifIpv6Addrs;
}
void NamfEventExposure::setAltNotifIpv6Addrs(
std::vector<Ipv6Addr> const& value) {
m_AltNotifIpv6Addrs = value;
m_AltNotifIpv6AddrsIsSet = true;
}
bool NamfEventExposure::altNotifIpv6AddrsIsSet() const {
return m_AltNotifIpv6AddrsIsSet;
}
void NamfEventExposure::unsetAltNotifIpv6Addrs() {
m_AltNotifIpv6AddrsIsSet = false;
}
std::vector<EventSubscription>& NamfEventExposure::getEventSubs() {
return m_EventSubs;
}
void NamfEventExposure::setEventSubs(
std::vector<EventSubscription> const& value) {
m_EventSubs = value;
}
bool NamfEventExposure::isImmeRep() const {
return m_ImmeRep;
}
void NamfEventExposure::setImmeRep(bool const value) {
m_ImmeRep = value;
m_ImmeRepIsSet = true;
}
bool NamfEventExposure::immeRepIsSet() const {
return m_ImmeRepIsSet;
}
void NamfEventExposure::unsetImmeRep() {
m_ImmeRepIsSet = false;
}
NotificationMethod NamfEventExposure::getNotifMethod() const {
return m_NotifMethod;
}
void NamfEventExposure::setNotifMethod(NotificationMethod const& value) {
m_NotifMethod = value;
m_NotifMethodIsSet = true;
}
bool NamfEventExposure::notifMethodIsSet() const {
return m_NotifMethodIsSet;
}
void NamfEventExposure::unsetNotifMethod() {
m_NotifMethodIsSet = false;
}
int32_t NamfEventExposure::getMaxReportNbr() const {
return m_MaxReportNbr;
}
void NamfEventExposure::setMaxReportNbr(int32_t const value) {
m_MaxReportNbr = value;
m_MaxReportNbrIsSet = true;
}
bool NamfEventExposure::maxReportNbrIsSet() const {
return m_MaxReportNbrIsSet;
}
void NamfEventExposure::unsetMaxReportNbr() {
m_MaxReportNbrIsSet = false;
}
std::string NamfEventExposure::getExpiry() const {
return m_Expiry;
}
void NamfEventExposure::setExpiry(std::string const& value) {
m_Expiry = value;
m_ExpiryIsSet = true;
}
bool NamfEventExposure::expiryIsSet() const {
return m_ExpiryIsSet;
}
void NamfEventExposure::unsetExpiry() {
m_ExpiryIsSet = false;
}
int32_t NamfEventExposure::getRepPeriod() const {
return m_RepPeriod;
}
void NamfEventExposure::setRepPeriod(int32_t const value) {
m_RepPeriod = value;
m_RepPeriodIsSet = true;
}
bool NamfEventExposure::repPeriodIsSet() const {
return m_RepPeriodIsSet;
}
void NamfEventExposure::unsetRepPeriod() {
m_RepPeriodIsSet = false;
}
Guami NamfEventExposure::getGuami() const {
return m_Guami;
}
void NamfEventExposure::setGuami(Guami const& value) {
m_Guami = value;
m_GuamiIsSet = true;
}
bool NamfEventExposure::guamiIsSet() const {
return m_GuamiIsSet;
}
void NamfEventExposure::unsetGuami() {
m_GuamiIsSet = false;
}
std::string NamfEventExposure::getServiveName() const {
return m_ServiveName;
}
void NamfEventExposure::setServiveName(std::string const& value) {
m_ServiveName = value;
m_ServiveNameIsSet = true;
}
bool NamfEventExposure::serviveNameIsSet() const {
return m_ServiveNameIsSet;
}
void NamfEventExposure::unsetServiveName() {
m_ServiveNameIsSet = false;
}
std::string NamfEventExposure::getSupportedFeatures() const {
return m_SupportedFeatures;
}
void NamfEventExposure::setSupportedFeatures(std::string const& value) {
m_SupportedFeatures = value;
m_SupportedFeaturesIsSet = true;
}
bool NamfEventExposure::supportedFeaturesIsSet() const {
return m_SupportedFeaturesIsSet;
}
void NamfEventExposure::unsetSupportedFeatures() {
m_SupportedFeaturesIsSet = false;
}
} // namespace model
} // namespace amf
} // namespace oai
/**
* Namf_EventExposure
* Session Management 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.
*/
/*
* NamfEventExposure.h
*
*
*/
#ifndef NamfEventExposure_H_
#define NamfEventExposure_H_
#include "EventSubscription.h"
#include "NotificationMethod.h"
#include <string>
#include "Ipv6Addr.h"
#include <vector>
#include "Guami.h"
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class NamfEventExposure {
public:
NamfEventExposure();
virtual ~NamfEventExposure();
void validate();
/////////////////////////////////////////////
/// NamfEventExposure members
/// <summary>
///
/// </summary>
std::string getSupi() const;
void setSupi(std::string const& value);
bool supiIsSet() const;
void unsetSupi();
/// <summary>
///
/// </summary>
std::string getGpsi() const;
void setGpsi(std::string const& value);
bool gpsiIsSet() const;
void unsetGpsi();
/// <summary>
/// Any UE indication. This IE shall be present if the event subscription is
/// applicable to any UE. Default value \&quot;FALSE\&quot; is used, if not
/// present.
/// </summary>
bool isAnyUeInd() const;
void setAnyUeInd(bool const value);
bool anyUeIndIsSet() const;
void unsetAnyUeInd();
/// <summary>
///
/// </summary>
std::string getGroupId() const;
void setGroupId(std::string const& value);
bool groupIdIsSet() const;
void unsetGroupId();
/// <summary>
///
/// </summary>
int32_t getPduSeId() const;
void setPduSeId(int32_t const value);
bool pduSeIdIsSet() const;
void unsetPduSeId();
/// <summary>
/// Identifies an Individual AMF Notification Subscription. To enable that the
/// value is used as part of a URI, the string shall only contain characters
/// allowed according to the \&quot;lower-with-hyphen\&quot; naming convention
/// defined in 3GPP TS 29.501 [2]. In an OpenAPI [10] schema, the format shall
/// be designated as \&quot;SubId\&quot;.
/// </summary>
std::string getSubId() const;
void setSubId(std::string const& value);
bool subIdIsSet() const;
void unsetSubId();
/// <summary>
/// Notification Correlation ID assigned by the NF service consumer.
/// </summary>
std::string getNotifId() const;
void setNotifId(std::string const& value);
/// <summary>
///
/// </summary>
std::string getNotifUri() const;
void setNotifUri(std::string const& value);
/// <summary>
/// Alternate or backup IPv4 Addess(es) where to send Notifications.
/// </summary>
std::vector<std::string>& getAltNotifIpv4Addrs();
void setAltNotifIpv4Addrs(std::vector<std::string> const& value);
bool altNotifIpv4AddrsIsSet() const;
void unsetAltNotifIpv4Addrs();
/// <summary>
/// Alternate or backup IPv6 Addess(es) where to send Notifications.
/// </summary>
std::vector<Ipv6Addr>& getAltNotifIpv6Addrs();
void setAltNotifIpv6Addrs(std::vector<Ipv6Addr> const& value);
bool altNotifIpv6AddrsIsSet() const;
void unsetAltNotifIpv6Addrs();
/// <summary>
/// Subscribed events
/// </summary>
std::vector<EventSubscription>& getEventSubs();
void setEventSubs(std::vector<EventSubscription> const& value);
/// <summary>
///
/// </summary>
bool isImmeRep() const;
void setImmeRep(bool const value);
bool immeRepIsSet() const;
void unsetImmeRep();
/// <summary>
///
/// </summary>
NotificationMethod getNotifMethod() const;
void setNotifMethod(NotificationMethod const& value);
bool notifMethodIsSet() const;
void unsetNotifMethod();
/// <summary>
///
/// </summary>
int32_t getMaxReportNbr() const;
void setMaxReportNbr(int32_t const value);
bool maxReportNbrIsSet() const;
void unsetMaxReportNbr();
/// <summary>
///
/// </summary>
std::string getExpiry() const;
void setExpiry(std::string const& value);
bool expiryIsSet() const;
void unsetExpiry();
/// <summary>
///
/// </summary>
int32_t getRepPeriod() const;
void setRepPeriod(int32_t const value);
bool repPeriodIsSet() const;
void unsetRepPeriod();
/// <summary>
///
/// </summary>
Guami getGuami() const;
void setGuami(Guami const& value);
bool guamiIsSet() const;
void unsetGuami();
/// <summary>
/// If the NF service consumer is an AMF, it should provide the name of a
/// service produced by the AMF that makes use of notifications about
/// subscribed events.
/// </summary>
std::string getServiveName() const;
void setServiveName(std::string const& value);
bool serviveNameIsSet() const;
void unsetServiveName();
/// <summary>
///
/// </summary>
std::string getSupportedFeatures() const;
void setSupportedFeatures(std::string const& value);
bool supportedFeaturesIsSet() const;
void unsetSupportedFeatures();
friend void to_json(nlohmann::json& j, const NamfEventExposure& o);
friend void from_json(const nlohmann::json& j, NamfEventExposure& o);
protected:
std::string m_Supi;
bool m_SupiIsSet;
std::string m_Gpsi;
bool m_GpsiIsSet;
bool m_AnyUeInd;
bool m_AnyUeIndIsSet;
std::string m_GroupId;
bool m_GroupIdIsSet;
int32_t m_PduSeId;
bool m_PduSeIdIsSet;
std::string m_SubId;
bool m_SubIdIsSet;
std::string m_NotifId;
std::string m_NotifUri;
std::vector<std::string> m_AltNotifIpv4Addrs;
bool m_AltNotifIpv4AddrsIsSet;
std::vector<Ipv6Addr> m_AltNotifIpv6Addrs;
bool m_AltNotifIpv6AddrsIsSet;
std::vector<EventSubscription> m_EventSubs;
bool m_ImmeRep;
bool m_ImmeRepIsSet;
NotificationMethod m_NotifMethod;
bool m_NotifMethodIsSet;
int32_t m_MaxReportNbr;
bool m_MaxReportNbrIsSet;
std::string m_Expiry;
bool m_ExpiryIsSet;
int32_t m_RepPeriod;
bool m_RepPeriodIsSet;
Guami m_Guami;
bool m_GuamiIsSet;
std::string m_ServiveName;
bool m_ServiveNameIsSet;
std::string m_SupportedFeatures;
bool m_SupportedFeaturesIsSet;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* NamfEventExposure_H_ */
/**
* 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 "NotificationData.h"
namespace oai {
namespace amf {
namespace model {
NotificationData::NotificationData() {
m_NfInstanceUri = "";
m_NfProfileIsSet = false;
m_ProfileChangesIsSet = false;
}
NotificationData::~NotificationData() {}
void NotificationData::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const NotificationData& o) {
j = nlohmann::json();
j["event"] = o.m_Event;
j["nfInstanceUri"] = o.m_NfInstanceUri;
if (o.nfProfileIsSet()) j["nfProfile"] = o.m_NfProfile;
if (o.profileChangesIsSet() || !o.m_ProfileChanges.empty())
j["profileChanges"] = o.m_ProfileChanges;
}
void from_json(const nlohmann::json& j, NotificationData& o) {
j.at("event").get_to(o.m_Event);
j.at("nfInstanceUri").get_to(o.m_NfInstanceUri);
if (j.find("nfProfile") != j.end()) {
j.at("nfProfile").get_to(o.m_NfProfile);
o.m_NfProfileIsSet = true;
}
if (j.find("profileChanges") != j.end()) {
j.at("profileChanges").get_to(o.m_ProfileChanges);
o.m_ProfileChangesIsSet = true;
}
}
std::string NotificationData::getEvent() const {
return m_Event;
}
void NotificationData::setEvent(std::string const& value) {
m_Event = value;
}
std::string NotificationData::getNfInstanceUri() const {
return m_NfInstanceUri;
}
void NotificationData::setNfInstanceUri(std::string const& value) {
m_NfInstanceUri = value;
}
NFProfile NotificationData::getNfProfile() const {
return m_NfProfile;
}
void NotificationData::setNfProfile(NFProfile const& value) {
m_NfProfile = value;
m_NfProfileIsSet = true;
}
bool NotificationData::nfProfileIsSet() const {
return m_NfProfileIsSet;
}
void NotificationData::unsetNfProfile() {
m_NfProfileIsSet = false;
}
std::vector<ChangeItem>& NotificationData::getProfileChanges() {
return m_ProfileChanges;
}
void NotificationData::setProfileChanges(std::vector<ChangeItem> const& value) {
m_ProfileChanges = value;
m_ProfileChangesIsSet = true;
}
bool NotificationData::profileChangesIsSet() const {
return m_ProfileChangesIsSet;
}
void NotificationData::unsetProfileChanges() {
m_ProfileChangesIsSet = false;
}
} // namespace model
} // namespace amf
} // namespace oai
/**
* 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.
*/
/*
* NotificationData.h
*
*
*/
#ifndef NotificationData_H_
#define NotificationData_H_
#include "NFProfile.h"
#include "ChangeItem.h"
#include <string>
#include "NotificationEventType.h"
#include <vector>
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class NotificationData {
public:
NotificationData();
virtual ~NotificationData();
void validate();
/////////////////////////////////////////////
/// NotificationData members
/// <summary>
///
/// </summary>
std::string getEvent() const;
void setEvent(std::string const& value);
/// <summary>
///
/// </summary>
std::string getNfInstanceUri() const;
void setNfInstanceUri(std::string const& value);
/// <summary>
///
/// </summary>
NFProfile getNfProfile() const;
void setNfProfile(NFProfile const& value);
bool nfProfileIsSet() const;
void unsetNfProfile();
/// <summary>
///
/// </summary>
std::vector<ChangeItem>& getProfileChanges();
void setProfileChanges(std::vector<ChangeItem> const& value);
bool profileChangesIsSet() const;
void unsetProfileChanges();
friend void to_json(nlohmann::json& j, const NotificationData& o);
friend void from_json(const nlohmann::json& j, NotificationData& o);
protected:
std::string m_Event;
std::string m_NfInstanceUri;
NFProfile m_NfProfile;
bool m_NfProfileIsSet;
std::vector<ChangeItem> m_ProfileChanges;
bool m_ProfileChangesIsSet;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* NotificationData_H_ */
/**
* 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 "NotificationEventType.h"
namespace oai {
namespace amf {
namespace model {
NotificationEventType::NotificationEventType() {}
NotificationEventType::~NotificationEventType() {}
void NotificationEventType::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const NotificationEventType& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json& j, NotificationEventType& o) {}
} // namespace model
} // namespace amf
} // namespace oai
/**
* 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.
*/
/*
* NotificationEventType.h
*
*
*/
#ifndef NotificationEventType_H_
#define NotificationEventType_H_
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class NotificationEventType {
public:
NotificationEventType();
virtual ~NotificationEventType();
void validate();
/////////////////////////////////////////////
/// NotificationEventType members
friend void to_json(nlohmann::json& j, const NotificationEventType& o);
friend void from_json(const nlohmann::json& j, NotificationEventType& o);
protected:
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* NotificationEventType_H_ */
/**
* Namf_EventExposure
* Session Management 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 "NotificationMethod.h"
namespace oai {
namespace amf {
namespace model {
NotificationMethod::NotificationMethod() {}
NotificationMethod::~NotificationMethod() {}
void NotificationMethod::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const NotificationMethod& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json& j, NotificationMethod& o) {}
} // namespace model
} // namespace amf
} // namespace oai
/**
* Namf_EventExposure
* Session Management 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.
*/
/*
* NotificationMethod.h
*
* Possible values are - PERIODIC - ONE_TIME - ON_EVENT_DETECTION
*/
#ifndef NotificationMethod_H_
#define NotificationMethod_H_
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
/// Possible values are - PERIODIC - ONE_TIME - ON_EVENT_DETECTION
/// </summary>
class NotificationMethod {
public:
NotificationMethod();
virtual ~NotificationMethod();
void validate();
/////////////////////////////////////////////
/// NotificationMethod members
friend void to_json(nlohmann::json& j, const NotificationMethod& o);
friend void from_json(const nlohmann::json& j, NotificationMethod& o);
protected:
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* NotificationMethod_H_ */
/**
* Namf_EventExposure
* Session Management 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 "RouteInformation.h"
namespace oai {
namespace amf {
namespace model {
RouteInformation::RouteInformation() {
m_Ipv4Addr = "";
m_Ipv4AddrIsSet = false;
m_Ipv6AddrIsSet = false;
m_PortNumber = 0;
}
RouteInformation::~RouteInformation() {}
void RouteInformation::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const RouteInformation& o) {
j = nlohmann::json();
if (o.ipv4AddrIsSet()) j["ipv4Addr"] = o.m_Ipv4Addr;
if (o.ipv6AddrIsSet()) j["ipv6Addr"] = o.m_Ipv6Addr;
j["portNumber"] = o.m_PortNumber;
}
void from_json(const nlohmann::json& j, RouteInformation& o) {
if (j.find("ipv4Addr") != j.end()) {
j.at("ipv4Addr").get_to(o.m_Ipv4Addr);
o.m_Ipv4AddrIsSet = true;
}
if (j.find("ipv6Addr") != j.end()) {
j.at("ipv6Addr").get_to(o.m_Ipv6Addr);
o.m_Ipv6AddrIsSet = true;
}
j.at("portNumber").get_to(o.m_PortNumber);
}
std::string RouteInformation::getIpv4Addr() const {
return m_Ipv4Addr;
}
void RouteInformation::setIpv4Addr(std::string const& value) {
m_Ipv4Addr = value;
m_Ipv4AddrIsSet = true;
}
bool RouteInformation::ipv4AddrIsSet() const {
return m_Ipv4AddrIsSet;
}
void RouteInformation::unsetIpv4Addr() {
m_Ipv4AddrIsSet = false;
}
Ipv6Addr RouteInformation::getIpv6Addr() const {
return m_Ipv6Addr;
}
void RouteInformation::setIpv6Addr(Ipv6Addr const& value) {
m_Ipv6Addr = value;
m_Ipv6AddrIsSet = true;
}
bool RouteInformation::ipv6AddrIsSet() const {
return m_Ipv6AddrIsSet;
}
void RouteInformation::unsetIpv6Addr() {
m_Ipv6AddrIsSet = false;
}
int32_t RouteInformation::getPortNumber() const {
return m_PortNumber;
}
void RouteInformation::setPortNumber(int32_t const value) {
m_PortNumber = value;
}
} // namespace model
} // namespace amf
} // namespace oai
/**
* Namf_EventExposure
* Session Management 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.
*/
/*
* RouteInformation.h
*
*
*/
#ifndef RouteInformation_H_
#define RouteInformation_H_
#include <string>
#include "Ipv6Addr.h"
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class RouteInformation {
public:
RouteInformation();
virtual ~RouteInformation();
void validate();
/////////////////////////////////////////////
/// RouteInformation members
/// <summary>
///
/// </summary>
std::string getIpv4Addr() const;
void setIpv4Addr(std::string const& value);
bool ipv4AddrIsSet() const;
void unsetIpv4Addr();
/// <summary>
///
/// </summary>
Ipv6Addr getIpv6Addr() const;
void setIpv6Addr(Ipv6Addr const& value);
bool ipv6AddrIsSet() const;
void unsetIpv6Addr();
/// <summary>
///
/// </summary>
int32_t getPortNumber() const;
void setPortNumber(int32_t const value);
friend void to_json(nlohmann::json& j, const RouteInformation& o);
friend void from_json(const nlohmann::json& j, RouteInformation& o);
protected:
std::string m_Ipv4Addr;
bool m_Ipv4AddrIsSet;
Ipv6Addr m_Ipv6Addr;
bool m_Ipv6AddrIsSet;
int32_t m_PortNumber;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* RouteInformation_H_ */
/**
* Namf_EventExposure
* Session Management 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 "RouteToLocation.h"
namespace oai {
namespace amf {
namespace model {
RouteToLocation::RouteToLocation() {
m_Dnai = "";
m_RouteInfoIsSet = false;
m_RouteProfId = "";
m_RouteProfIdIsSet = false;
}
RouteToLocation::~RouteToLocation() {}
void RouteToLocation::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const RouteToLocation& o) {
j = nlohmann::json();
j["dnai"] = o.m_Dnai;
if (o.routeInfoIsSet()) j["routeInfo"] = o.m_RouteInfo;
if (o.routeProfIdIsSet()) j["routeProfId"] = o.m_RouteProfId;
}
void from_json(const nlohmann::json& j, RouteToLocation& o) {
j.at("dnai").get_to(o.m_Dnai);
if (j.find("routeInfo") != j.end()) {
j.at("routeInfo").get_to(o.m_RouteInfo);
o.m_RouteInfoIsSet = true;
}
if (j.find("routeProfId") != j.end()) {
j.at("routeProfId").get_to(o.m_RouteProfId);
o.m_RouteProfIdIsSet = true;
}
}
std::string RouteToLocation::getDnai() const {
return m_Dnai;
}
void RouteToLocation::setDnai(std::string const& value) {
m_Dnai = value;
}
RouteInformation RouteToLocation::getRouteInfo() const {
return m_RouteInfo;
}
void RouteToLocation::setRouteInfo(RouteInformation const& value) {
m_RouteInfo = value;
m_RouteInfoIsSet = true;
}
bool RouteToLocation::routeInfoIsSet() const {
return m_RouteInfoIsSet;
}
void RouteToLocation::unsetRouteInfo() {
m_RouteInfoIsSet = false;
}
std::string RouteToLocation::getRouteProfId() const {
return m_RouteProfId;
}
void RouteToLocation::setRouteProfId(std::string const& value) {
m_RouteProfId = value;
m_RouteProfIdIsSet = true;
}
bool RouteToLocation::routeProfIdIsSet() const {
return m_RouteProfIdIsSet;
}
void RouteToLocation::unsetRouteProfId() {
m_RouteProfIdIsSet = false;
}
} // namespace model
} // namespace amf
} // namespace oai
/**
* Namf_EventExposure
* Session Management 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.
*/
/*
* RouteToLocation.h
*
*
*/
#ifndef RouteToLocation_H_
#define RouteToLocation_H_
#include <string>
#include "RouteInformation.h"
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class RouteToLocation {
public:
RouteToLocation();
virtual ~RouteToLocation();
void validate();
/////////////////////////////////////////////
/// RouteToLocation members
/// <summary>
///
/// </summary>
std::string getDnai() const;
void setDnai(std::string const& value);
/// <summary>
///
/// </summary>
RouteInformation getRouteInfo() const;
void setRouteInfo(RouteInformation const& value);
bool routeInfoIsSet() const;
void unsetRouteInfo();
/// <summary>
///
/// </summary>
std::string getRouteProfId() const;
void setRouteProfId(std::string const& value);
bool routeProfIdIsSet() const;
void unsetRouteProfId();
friend void to_json(nlohmann::json& j, const RouteToLocation& o);
friend void from_json(const nlohmann::json& j, RouteToLocation& o);
protected:
std::string m_Dnai;
RouteInformation m_RouteInfo;
bool m_RouteInfoIsSet;
std::string m_RouteProfId;
bool m_RouteProfIdIsSet;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* RouteToLocation_H_ */
/**
* 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 "SnssaiUpfInfoItem.h"
namespace oai {
namespace amf {
namespace model {
SnssaiUpfInfoItem::SnssaiUpfInfoItem() {}
SnssaiUpfInfoItem::~SnssaiUpfInfoItem() {}
void SnssaiUpfInfoItem::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const SnssaiUpfInfoItem& o) {
j = nlohmann::json();
j["sNssai"] = o.m_SNssai;
j["dnnUpfInfoList"] = o.m_DnnUpfInfoList;
}
void from_json(const nlohmann::json& j, SnssaiUpfInfoItem& o) {
j.at("sNssai").get_to(o.m_SNssai);
j.at("dnnUpfInfoList").get_to(o.m_DnnUpfInfoList);
}
Snssai SnssaiUpfInfoItem::getSNssai() const {
return m_SNssai;
}
void SnssaiUpfInfoItem::setSNssai(Snssai const& value) {
m_SNssai = value;
}
std::vector<DnnUpfInfoItem>& SnssaiUpfInfoItem::getDnnUpfInfoList() {
return m_DnnUpfInfoList;
}
void SnssaiUpfInfoItem::setDnnUpfInfoList(
std::vector<DnnUpfInfoItem> const& value) {
m_DnnUpfInfoList = value;
}
} // namespace model
} // namespace amf
} // namespace oai
/**
* 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.
*/
/*
* SnssaiUpfInfoItem.h
*
*
*/
#ifndef SnssaiUpfInfoItem_H_
#define SnssaiUpfInfoItem_H_
#include "DnnUpfInfoItem.h"
#include "Snssai.h"
#include <vector>
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class SnssaiUpfInfoItem {
public:
SnssaiUpfInfoItem();
virtual ~SnssaiUpfInfoItem();
void validate();
/////////////////////////////////////////////
/// SnssaiUpfInfoItem members
/// <summary>
///
/// </summary>
Snssai getSNssai() const;
void setSNssai(Snssai const& value);
/// <summary>
///
/// </summary>
std::vector<DnnUpfInfoItem>& getDnnUpfInfoList();
void setDnnUpfInfoList(std::vector<DnnUpfInfoItem> const& value);
friend void to_json(nlohmann::json& j, const SnssaiUpfInfoItem& o);
friend void from_json(const nlohmann::json& j, SnssaiUpfInfoItem& o);
protected:
Snssai m_SNssai;
std::vector<DnnUpfInfoItem> m_DnnUpfInfoList;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* SnssaiUpfInfoItem_H_ */
/**
* 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 "UPInterfaceType.h"
namespace oai {
namespace amf {
namespace model {
UPInterfaceType::UPInterfaceType() {}
UPInterfaceType::~UPInterfaceType() {}
void UPInterfaceType::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const UPInterfaceType& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json& j, UPInterfaceType& o) {}
} // namespace model
} // namespace amf
} // namespace oai
/**
* 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.
*/
/*
* UPInterfaceType.h
*
*
*/
#ifndef UPInterfaceType_H_
#define UPInterfaceType_H_
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class UPInterfaceType {
public:
UPInterfaceType();
virtual ~UPInterfaceType();
void validate();
/////////////////////////////////////////////
/// UPInterfaceType members
friend void to_json(nlohmann::json& j, const UPInterfaceType& o);
friend void from_json(const nlohmann::json& j, UPInterfaceType& o);
protected:
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* UPInterfaceType_H_ */
/**
* 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 "UpfInfo.h"
namespace oai {
namespace amf {
namespace model {
UpfInfo::UpfInfo() {
m_AmfServingAreaIsSet = false;
m_InterfaceUpfInfoListIsSet = false;
m_IwkEpsInd = false;
m_IwkEpsIndIsSet = false;
// m_PduSessionTypesIsSet = false;
m_AtsssCapabilityIsSet = false;
m_UeIpAddrInd = false;
m_UeIpAddrIndIsSet = false;
}
UpfInfo::~UpfInfo() {}
void UpfInfo::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const UpfInfo& o) {
j = nlohmann::json();
j["sNssaiUpfInfoList"] = o.m_SNssaiUpfInfoList;
if (o.amfServingAreaIsSet() || !o.m_AmfServingArea.empty())
j["amfServingArea"] = o.m_AmfServingArea;
if (o.interfaceUpfInfoListIsSet() || !o.m_InterfaceUpfInfoList.empty())
j["interfaceUpfInfoList"] = o.m_InterfaceUpfInfoList;
if (o.iwkEpsIndIsSet()) j["iwkEpsInd"] = o.m_IwkEpsInd;
// if (o.pduSessionTypesIsSet() || !o.m_PduSessionTypes.empty())
// j["pduSessionTypes"] = o.m_PduSessionTypes;
if (o.atsssCapabilityIsSet()) j["atsssCapability"] = o.m_AtsssCapability;
if (o.ueIpAddrIndIsSet()) j["ueIpAddrInd"] = o.m_UeIpAddrInd;
}
void from_json(const nlohmann::json& j, UpfInfo& o) {
j.at("sNssaiUpfInfoList").get_to(o.m_SNssaiUpfInfoList);
if (j.find("amfServingArea") != j.end()) {
j.at("amfServingArea").get_to(o.m_AmfServingArea);
o.m_AmfServingAreaIsSet = true;
}
if (j.find("interfaceUpfInfoList") != j.end()) {
j.at("interfaceUpfInfoList").get_to(o.m_InterfaceUpfInfoList);
o.m_InterfaceUpfInfoListIsSet = true;
}
if (j.find("iwkEpsInd") != j.end()) {
j.at("iwkEpsInd").get_to(o.m_IwkEpsInd);
o.m_IwkEpsIndIsSet = true;
}
// if (j.find("pduSessionTypes") != j.end()) {
// j.at("pduSessionTypes").get_to(o.m_PduSessionTypes);
// o.m_PduSessionTypesIsSet = true;
//}
if (j.find("atsssCapability") != j.end()) {
j.at("atsssCapability").get_to(o.m_AtsssCapability);
o.m_AtsssCapabilityIsSet = true;
}
if (j.find("ueIpAddrInd") != j.end()) {
j.at("ueIpAddrInd").get_to(o.m_UeIpAddrInd);
o.m_UeIpAddrIndIsSet = true;
}
}
std::vector<SnssaiUpfInfoItem>& UpfInfo::getSNssaiUpfInfoList() {
return m_SNssaiUpfInfoList;
}
void UpfInfo::setSNssaiUpfInfoList(
std::vector<SnssaiUpfInfoItem> const& value) {
m_SNssaiUpfInfoList = value;
}
std::vector<std::string>& UpfInfo::getAmfServingArea() {
return m_AmfServingArea;
}
void UpfInfo::setAmfServingArea(std::vector<std::string> const& value) {
m_AmfServingArea = value;
m_AmfServingAreaIsSet = true;
}
bool UpfInfo::amfServingAreaIsSet() const {
return m_AmfServingAreaIsSet;
}
void UpfInfo::unsetAmfServingArea() {
m_AmfServingAreaIsSet = false;
}
std::vector<InterfaceUpfInfoItem>& UpfInfo::getInterfaceUpfInfoList() {
return m_InterfaceUpfInfoList;
}
void UpfInfo::setInterfaceUpfInfoList(
std::vector<InterfaceUpfInfoItem> const& value) {
m_InterfaceUpfInfoList = value;
m_InterfaceUpfInfoListIsSet = true;
}
bool UpfInfo::interfaceUpfInfoListIsSet() const {
return m_InterfaceUpfInfoListIsSet;
}
void UpfInfo::unsetInterfaceUpfInfoList() {
m_InterfaceUpfInfoListIsSet = false;
}
bool UpfInfo::isIwkEpsInd() const {
return m_IwkEpsInd;
}
void UpfInfo::setIwkEpsInd(bool const value) {
m_IwkEpsInd = value;
m_IwkEpsIndIsSet = true;
}
bool UpfInfo::iwkEpsIndIsSet() const {
return m_IwkEpsIndIsSet;
}
void UpfInfo::unsetIwkEpsInd() {
m_IwkEpsIndIsSet = false;
}
// std::vector<PduSessionType>& UpfInfo::getPduSessionTypes() {
// return m_PduSessionTypes;
//}
// void UpfInfo::setPduSessionTypes(std::vector<PduSessionType> const& value) {
// m_PduSessionTypes = value;
// m_PduSessionTypesIsSet = true;
//}
// bool UpfInfo::pduSessionTypesIsSet() const {
// return m_PduSessionTypesIsSet;
//}
// void UpfInfo::unsetPduSessionTypes() {
// m_PduSessionTypesIsSet = false;
//}
AtsssCapability UpfInfo::getAtsssCapability() const {
return m_AtsssCapability;
}
void UpfInfo::setAtsssCapability(AtsssCapability const& value) {
m_AtsssCapability = value;
m_AtsssCapabilityIsSet = true;
}
bool UpfInfo::atsssCapabilityIsSet() const {
return m_AtsssCapabilityIsSet;
}
void UpfInfo::unsetAtsssCapability() {
m_AtsssCapabilityIsSet = false;
}
bool UpfInfo::isUeIpAddrInd() const {
return m_UeIpAddrInd;
}
void UpfInfo::setUeIpAddrInd(bool const value) {
m_UeIpAddrInd = value;
m_UeIpAddrIndIsSet = true;
}
bool UpfInfo::ueIpAddrIndIsSet() const {
return m_UeIpAddrIndIsSet;
}
void UpfInfo::unsetUeIpAddrInd() {
m_UeIpAddrIndIsSet = false;
}
} // namespace model
} // namespace amf
} // namespace oai
/**
* 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.
*/
/*
* UpfInfo.h
*
*
*/
#ifndef UpfInfo_H_
#define UpfInfo_H_
#include "AtsssCapability.h"
#include "InterfaceUpfInfoItem.h"
#include "SnssaiUpfInfoItem.h"
#include <string>
//#include "PduSessionType.h"
#include <vector>
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class UpfInfo {
public:
UpfInfo();
virtual ~UpfInfo();
void validate();
/////////////////////////////////////////////
/// UpfInfo members
/// <summary>
///
/// </summary>
std::vector<SnssaiUpfInfoItem>& getSNssaiUpfInfoList();
void setSNssaiUpfInfoList(std::vector<SnssaiUpfInfoItem> const& value);
/// <summary>
///
/// </summary>
std::vector<std::string>& getAmfServingArea();
void setAmfServingArea(std::vector<std::string> const& value);
bool amfServingAreaIsSet() const;
void unsetAmfServingArea();
/// <summary>
///
/// </summary>
std::vector<InterfaceUpfInfoItem>& getInterfaceUpfInfoList();
void setInterfaceUpfInfoList(std::vector<InterfaceUpfInfoItem> const& value);
bool interfaceUpfInfoListIsSet() const;
void unsetInterfaceUpfInfoList();
/// <summary>
///
/// </summary>
bool isIwkEpsInd() const;
void setIwkEpsInd(bool const value);
bool iwkEpsIndIsSet() const;
void unsetIwkEpsInd();
/// <summary>
///
/// </summary>
// std::vector<PduSessionType>& getPduSessionTypes();
// void setPduSessionTypes(std::vector<PduSessionType> const& value);
// bool pduSessionTypesIsSet() const;
// void unsetPduSessionTypes();
/// <summary>
///
/// </summary>
AtsssCapability getAtsssCapability() const;
void setAtsssCapability(AtsssCapability const& value);
bool atsssCapabilityIsSet() const;
void unsetAtsssCapability();
/// <summary>
///
/// </summary>
bool isUeIpAddrInd() const;
void setUeIpAddrInd(bool const value);
bool ueIpAddrIndIsSet() const;
void unsetUeIpAddrInd();
friend void to_json(nlohmann::json& j, const UpfInfo& o);
friend void from_json(const nlohmann::json& j, UpfInfo& o);
protected:
std::vector<SnssaiUpfInfoItem> m_SNssaiUpfInfoList;
std::vector<std::string> m_AmfServingArea;
bool m_AmfServingAreaIsSet;
std::vector<InterfaceUpfInfoItem> m_InterfaceUpfInfoList;
bool m_InterfaceUpfInfoListIsSet;
bool m_IwkEpsInd;
bool m_IwkEpsIndIsSet;
// std::vector<PduSessionType> m_PduSessionTypes;
// bool m_PduSessionTypesIsSet;
AtsssCapability m_AtsssCapability;
bool m_AtsssCapabilityIsSet;
bool m_UeIpAddrInd;
bool m_UeIpAddrIndIsSet;
};
} // namespace model
} // namespace amf
} // namespace oai
#endif /* UpfInfo_H_ */
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public License, Version 1.1 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the
* License at
*
* http://www.openairinterface.org/?page_id=698
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*-------------------------------------------------------------------------------
* For more information about the OpenAirInterface (OAI) Software Alliance:
* contact@openairinterface.org
*/
/*! \file 3gpp_conversions.cpp
* \brief
* \author Shivam Gandhi
* \company KCL
* \email: shivam.gandhi@kcl.ac.uk
*/
#include "3gpp_conversions.hpp"
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <ctype.h>
#include <inttypes.h>
#include "3gpp_29.500.h"
#include "conversions.hpp"
//------------------------------------------------------------------------------
void xgpp_conv::data_notification_from_openapi(
const oai::amf::model::NotificationData& nd,
amf::data_notification_msg& dn_msg) {
Logger::amf_app().debug(
"Convert NotificationData (OpenAPI) to "
"Data Notification Msg");
// dn_msg.set_notification_event_type(nd.getEvent());
// dn_msg.set_nf_instance_uri(nd.getNfInstanceUri());
std::shared_ptr<amf_application::nf_profile> p = {};
// Only support UPF for now
if (nd.getNfProfile().getNfType() == "UPF")
p = std::make_shared<amf_application::upf_profile>();
nlohmann::json pj = {};
to_json(pj, nd.getNfProfile());
p.get()->from_json(pj);
// dn_msg.set_profile(p);
}
//------------------------------------------------------------------------------
void xgpp_conv::amf_event_exposure_notification_from_openapi(
const oai::amf::model::NamfEventExposure& nee,
amf::event_exposure_msg& eem) {
Logger::amf_app().debug(
"Convert NamfEventExposure (OpenAPI) to "
"Event Exposure Msg");
// Supi
if (nee.supiIsSet()) {
supi_t supi = {.length = 0};
std::size_t pos = nee.getSupi().find("-");
std::string supi_str = nee.getSupi().substr(pos + 1);
std::string supi_prefix = nee.getSupi().substr(0, pos);
amf_string_to_supi(&supi, supi_str.c_str());
// eem.set_supi(supi);
// eem.set_supi_prefix(supi_prefix);
Logger::amf_server().debug(
"SUPI %s, SUPI Prefix %s, IMSI %s", nee.getSupi().c_str(),
supi_prefix.c_str(), supi_str.c_str());
}
// PDU session ID
// if (nee.pduSeIdIsSet()) {
// Logger::amf_server().debug("PDU Session ID %d", nee.getPduSeId());
// eem.set_pdu_session_id(nee.getPduSeId());
//}
// eem.set_notif_id(nee.getNotifId()); // NotifId
// eem.set_notif_uri(nee.getNotifUri()); // NotifUri
// EventSubscription: TODO
event_subscription_t event_subscription = {};
event_subscription.amf_event = amf_event_t::REACHABILITY_REPORT;
std::vector<event_subscription_t> event_subscriptions = {};
event_subscriptions.push_back(event_subscription);
// eem.set_event_subs(event_subscriptions);
// std::vector<EventSubscription> eventSubscriptions;
// for (auto it: nee.getEventSubs()){
// event_subscription.amf_event = it.getEvent();
// getDnaiChgType
// event_subscriptions.push_back(event_subscription);
//}
}
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public License, Version 1.1 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the
* License at
*
* http://www.openairinterface.org/?page_id=698
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*-------------------------------------------------------------------------------
* For more information about the OpenAirInterface (OAI) Software Alliance:
* contact@openairinterface.org
*/
/*! \file 3gpp_conversions.hpp
\brief
\author Shivam Gandhi
\company KCL
\email: shivam.gandhi@kcl.ac.uk
*/
#ifndef FILE_3GPP_CONVERSIONS_HPP_SEEN
#define FILE_3GPP_CONVERSIONS_HPP_SEEN
#include "NamfEventExposure.h"
#include "NotificationData.h"
#include "amf_msg.hpp"
namespace xgpp_conv {
/*
* Convert Data Notification from OpenAPI into Data Notification Msg
* @param [const NotificationData&] nd: Data
* Notification in OpenAPI
* @param [amf::data_notification_msg&] dn_msg: Data Notification msg
* @return void
*/
void data_notification_from_openapi(
const oai::amf::model::NotificationData& nd,
amf::data_notification_msg& dn_msg);
/*
* Convert NamfEventExposure from OpenAPI into Event Exposure Msg
* @param [const NamfEventExposure&] nee:
* NamfEventExposure in OpenAPI
* @param [amf::event_exposure_msg&] eem: Event Exposure Msg
* @return void
*/
void amf_event_exposure_notification_from_openapi(
const oai::amf::model::NamfEventExposure& nee,
amf::event_exposure_msg& eem);
} // namespace xgpp_conv
#endif /* FILE_3GPP_CONVERSIONS_HPP_SEEN */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment