UePolicySetPatch.h 3.37 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/*
 * 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
 */
yangjian's avatar
yangjian committed
21
/**
22 23 24 25 26 27 28 29 30 31 32
 * Nudr_DataRepository API OpenAPI file
 * Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
 * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
 *
 * The version of the OpenAPI document: 2.1.2
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator
 * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
 * the class manually.
 */
yangjian's avatar
yangjian committed
33 34 35 36 37 38 39 40 41 42 43
/*
 * UePolicySetPatch.h
 *
 * Contains the UE policy set for a given subscriber.
 */

#ifndef UePolicySetPatch_H_
#define UePolicySetPatch_H_

#include <map>
#include <nlohmann/json.hpp>
44 45 46 47
#include <string>
#include <vector>

#include "UePolicySection.h"
yangjian's avatar
yangjian committed
48

Tien-Thinh Nguyen's avatar
Tien-Thinh Nguyen committed
49
namespace oai::udr::model {
yangjian's avatar
yangjian committed
50 51 52 53

/// <summary>
/// Contains the UE policy set for a given subscriber.
/// </summary>
54 55 56 57
class UePolicySetPatch {
 public:
  UePolicySetPatch();
  virtual ~UePolicySetPatch();
yangjian's avatar
yangjian committed
58

59
  void validate();
yangjian's avatar
yangjian committed
60

61 62
  /////////////////////////////////////////////
  /// UePolicySetPatch members
yangjian's avatar
yangjian committed
63

64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
  /// <summary>
  ///
  /// </summary>
  std::map<std::string, UePolicySection>& getUePolicySections();
  void setUePolicySections(std::map<std::string, UePolicySection> const& value);
  bool uePolicySectionsIsSet() const;
  void unsetUePolicySections();
  /// <summary>
  ///
  /// </summary>
  std::vector<std::string>& getUpsis();
  void setUpsis(std::vector<std::string> const& value);
  bool upsisIsSet() const;
  void unsetUpsis();
  /// <summary>
  ///
  /// </summary>
  bool isAndspInd() const;
  void setAndspInd(bool const value);
  bool andspIndIsSet() const;
  void unsetAndspInd();
  /// <summary>
  ///
  /// </summary>
  std::string getPei() const;
  void setPei(std::string const& value);
  bool peiIsSet() const;
  void unsetPei();
  /// <summary>
  ///
  /// </summary>
  std::vector<std::string>& getOsIds();
  void setOsIds(std::vector<std::string> const& value);
  bool osIdsIsSet() const;
  void unsetOsIds();
Tien-Thinh Nguyen's avatar
Tien-Thinh Nguyen committed
99

100 101
  friend void to_json(nlohmann::json& j, const UePolicySetPatch& o);
  friend void from_json(const nlohmann::json& j, UePolicySetPatch& o);
Tien-Thinh Nguyen's avatar
Tien-Thinh Nguyen committed
102

103 104 105 106 107 108 109 110 111 112 113 114
 protected:
  std::map<std::string, UePolicySection> m_UePolicySections;
  bool m_UePolicySectionsIsSet;
  std::vector<std::string> m_Upsis;
  bool m_UpsisIsSet;
  bool m_AndspInd;
  bool m_AndspIndIsSet;
  std::string m_Pei;
  bool m_PeiIsSet;
  std::vector<std::string> m_OsIds;
  bool m_OsIdsIsSet;
};
Tien-Thinh Nguyen's avatar
Tien-Thinh Nguyen committed
115

116
}  // namespace oai::udr::model
yangjian's avatar
yangjian committed
117 118

#endif /* UePolicySetPatch_H_ */