11#ifndef GI_GBPE_ATTRIBUTEMAPPINGRULE_HPP
12#define GI_GBPE_ATTRIBUTEMAPPINGRULE_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/gbpe/MappingRuleToGroupRSrc.hpp"
26 :
public opflex::modb::mointernal::MO
33 static const opflex::modb::class_id_t
CLASS_ID = 33;
143 getTLMutator().modify(
getClassId(),
getURI())->unset(1081350ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
255 getTLMutator().modify(
getClassId(),
getURI())->unset(1081345ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
382 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::AttributeMappingRule> >
resolve(
384 const opflex::modb::URI&
uri)
386 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::AttributeMappingRule>(
framework,
CLASS_ID,
uri);
400 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::AttributeMappingRule> >
resolve(
401 const opflex::modb::URI&
uri)
403 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::AttributeMappingRule>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
565 const opflex::modb::URI&
uri)
582 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
692 opflex::modb::ObjectListener*
listener)
694 opflex::modb::mointernal
710 opflex::modb::ObjectListener*
listener)
723 opflex::modb::ObjectListener*
listener)
725 opflex::modb::mointernal
736 opflex::modb::ObjectListener*
listener)
747 const opflex::modb::URI&
uri,
Definition AttributeMappingRule.hpp:27
static void removeUnderPolicyUniverseGbpeMappingRuleSet(opflex::ofcore::OFFramework &framework, const std::string &gbpeMappingRuleSetName, const std::string &gbpeAttributeMappingRuleName)
Remove the AttributeMappingRule object with the specified path elements from the managed object store...
Definition AttributeMappingRule.hpp:648
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition AttributeMappingRule.hpp:216
boost::optional< const std::string & > getAttributeName()
Get the value of attributeName if it has been set.
Definition AttributeMappingRule.hpp:48
boost::optional< const uint8_t > getMatchType()
Get the value of matchType if it has been set.
Definition AttributeMappingRule.hpp:160
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleToGroupRSrc > > resolveGbpeMappingRuleToGroupRSrc()
Retrieve the child object with the specified naming properties.
Definition AttributeMappingRule.hpp:515
modelgbp::gbpe::AttributeMappingRule & unsetMatchString()
Unset matchString in the currently-active mutator.
Definition AttributeMappingRule.hpp:141
static void remove(const opflex::modb::URI &uri)
Remove the AttributeMappingRule object with the specified URI using the currently-active mutator and ...
Definition AttributeMappingRule.hpp:580
boost::optional< uint32_t > getOrder()
Get the value of order if it has been set.
Definition AttributeMappingRule.hpp:328
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of AttributeMappingRule from the managed object store.
Definition AttributeMappingRule.hpp:382
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > resolveUnderPolicyUniverseGbpeEpgMapping(opflex::ofcore::OFFramework &framework, const std::string &gbpeEpgMappingName, const std::string &gbpeAttributeMappingRuleName)
Retrieve an instance of AttributeMappingRule from the managed object store by constructing its URI fr...
Definition AttributeMappingRule.hpp:424
modelgbp::gbpe::AttributeMappingRule & unsetAttributeName()
Unset attributeName in the currently-active mutator.
Definition AttributeMappingRule.hpp:85
static void removeUnderPolicyUniverseGbpeMappingRuleSet(const std::string &gbpeMappingRuleSetName, const std::string &gbpeAttributeMappingRuleName)
Remove the AttributeMappingRule object with the specified path elements from the managed object store...
Definition AttributeMappingRule.hpp:672
modelgbp::gbpe::AttributeMappingRule & setMatchString(const std::string &newValue)
Set matchString to the specified value in the currently-active mutator.
Definition AttributeMappingRule.hpp:129
bool isAttributeNameSet()
Check whether attributeName has been set.
Definition AttributeMappingRule.hpp:39
modelgbp::gbpe::AttributeMappingRule & setNegated(const uint8_t newValue)
Set negated to the specified value in the currently-active mutator.
Definition AttributeMappingRule.hpp:297
OF_SHARED_PTR< modelgbp::gbpe::MappingRuleToGroupRSrc > addGbpeMappingRuleToGroupRSrc()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition AttributeMappingRule.hpp:531
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > resolveUnderPolicyUniverseGbpeMappingRuleSet(opflex::ofcore::OFFramework &framework, const std::string &gbpeMappingRuleSetName, const std::string &gbpeAttributeMappingRuleName)
Retrieve an instance of AttributeMappingRule from the managed object store by constructing its URI fr...
Definition AttributeMappingRule.hpp:474
modelgbp::gbpe::AttributeMappingRule & unsetOrder()
Unset order in the currently-active mutator.
Definition AttributeMappingRule.hpp:365
bool isNameSet()
Check whether name has been set.
Definition AttributeMappingRule.hpp:207
modelgbp::gbpe::AttributeMappingRule & setOrder(uint32_t newValue)
Set order to the specified value in the currently-active mutator.
Definition AttributeMappingRule.hpp:353
const std::string & getAttributeName(const std::string &defaultValue)
Get the value of attributeName if set, otherwise the value of default passed in.
Definition AttributeMappingRule.hpp:60
modelgbp::gbpe::AttributeMappingRule & setMatchType(const uint8_t newValue)
Set matchType to the specified value in the currently-active mutator.
Definition AttributeMappingRule.hpp:185
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition AttributeMappingRule.hpp:228
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the AttributeMappingRule object with the specified URI using the currently-active mutator.
Definition AttributeMappingRule.hpp:564
const uint8_t getMatchType(const uint8_t defaultValue)
Get the value of matchType if set, otherwise the value of default passed in.
Definition AttributeMappingRule.hpp:172
void remove()
Remove this instance using the currently-active mutator.
Definition AttributeMappingRule.hpp:549
bool isNegatedSet()
Check whether negated has been set.
Definition AttributeMappingRule.hpp:263
modelgbp::gbpe::AttributeMappingRule & unsetMatchType()
Unset matchType in the currently-active mutator.
Definition AttributeMappingRule.hpp:197
bool isOrderSet()
Check whether order has been set.
Definition AttributeMappingRule.hpp:319
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition AttributeMappingRule.hpp:735
modelgbp::gbpe::AttributeMappingRule & unsetName()
Unset name in the currently-active mutator.
Definition AttributeMappingRule.hpp:253
modelgbp::gbpe::AttributeMappingRule & setAttributeName(const std::string &newValue)
Set attributeName to the specified value in the currently-active mutator.
Definition AttributeMappingRule.hpp:73
modelgbp::gbpe::AttributeMappingRule & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition AttributeMappingRule.hpp:241
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for AttributeMappingRule.
Definition AttributeMappingRule.hpp:33
const std::string & getMatchString(const std::string &defaultValue)
Get the value of matchString if set, otherwise the value of default passed in.
Definition AttributeMappingRule.hpp:116
boost::optional< const std::string & > getMatchString()
Get the value of matchString if it has been set.
Definition AttributeMappingRule.hpp:104
static void removeUnderPolicyUniverseGbpeEpgMapping(const std::string &gbpeEpgMappingName, const std::string &gbpeAttributeMappingRuleName)
Remove the AttributeMappingRule object with the specified path elements from the managed object store...
Definition AttributeMappingRule.hpp:625
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of AttributeMappingRule from the managed object store using the default framewor...
Definition AttributeMappingRule.hpp:400
modelgbp::gbpe::AttributeMappingRule & unsetNegated()
Unset negated in the currently-active mutator.
Definition AttributeMappingRule.hpp:309
uint32_t getOrder(uint32_t defaultValue)
Get the value of order if set, otherwise the value of default passed in.
Definition AttributeMappingRule.hpp:340
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition AttributeMappingRule.hpp:721
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > resolveUnderPolicyUniverseGbpeMappingRuleSet(const std::string &gbpeMappingRuleSetName, const std::string &gbpeAttributeMappingRuleName)
Retrieve an instance of AttributeMappingRule from the default managed object store by constructing it...
Definition AttributeMappingRule.hpp:499
AttributeMappingRule(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of AttributeMappingRule.
Definition AttributeMappingRule.hpp:745
const uint8_t getNegated(const uint8_t defaultValue)
Get the value of negated if set, otherwise the value of default passed in.
Definition AttributeMappingRule.hpp:284
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > resolveUnderPolicyUniverseGbpeEpgMapping(const std::string &gbpeEpgMappingName, const std::string &gbpeAttributeMappingRuleName)
Retrieve an instance of AttributeMappingRule from the default managed object store by constructing it...
Definition AttributeMappingRule.hpp:449
static void registerListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class.
Definition AttributeMappingRule.hpp:690
static void registerListener(opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class with the default framework...
Definition AttributeMappingRule.hpp:709
bool isMatchTypeSet()
Check whether matchType has been set.
Definition AttributeMappingRule.hpp:151
bool isMatchStringSet()
Check whether matchString has been set.
Definition AttributeMappingRule.hpp:95
static void removeUnderPolicyUniverseGbpeEpgMapping(opflex::ofcore::OFFramework &framework, const std::string &gbpeEpgMappingName, const std::string &gbpeAttributeMappingRuleName)
Remove the AttributeMappingRule object with the specified path elements from the managed object store...
Definition AttributeMappingRule.hpp:601
boost::optional< const uint8_t > getNegated()
Get the value of negated if it has been set.
Definition AttributeMappingRule.hpp:272
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleToGroupRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of MappingRuleToGroupRSrc from the managed object store.
Definition MappingRuleToGroupRSrc.hpp:257
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12