11#ifndef GI_GBP_ALLOWDENYACTION_HPP
12#define GI_GBP_ALLOWDENYACTION_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/gbp/RuleFromActionRTgt.hpp"
26 :
public opflex::modb::mointernal::MO
33 static const opflex::modb::class_id_t
CLASS_ID = 141;
143 getTLMutator().modify(
getClassId(),
getURI())->unset(4620289ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
214 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::AllowDenyAction> >
resolve(
216 const opflex::modb::URI&
uri)
218 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::AllowDenyAction>(
framework,
CLASS_ID,
uri);
232 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::AllowDenyAction> >
resolve(
233 const opflex::modb::URI&
uri)
235 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::AllowDenyAction>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
256 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::AllowDenyAction> >
resolve(
281 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::AllowDenyAction> >
resolve(
344 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::RuleFromActionRTgt>(
372 const opflex::modb::URI&
uri)
389 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
452 opflex::modb::ObjectListener*
listener)
454 opflex::modb::mointernal
470 opflex::modb::ObjectListener*
listener)
483 opflex::modb::ObjectListener*
listener)
485 opflex::modb::mointernal
496 opflex::modb::ObjectListener*
listener)
507 const opflex::modb::URI&
uri,
Definition AllowDenyAction.hpp:27
boost::optional< OF_SHARED_PTR< modelgbp::gbp::RuleFromActionRTgt > > resolveGbpRuleFromActionRTgt(const std::string &gbpRuleFromActionRTgtSource)
Retrieve the child object with the specified naming properties.
Definition AllowDenyAction.hpp:299
OF_SHARED_PTR< modelgbp::gbp::RuleFromActionRTgt > addGbpRuleFromActionRTgt(const std::string &gbpRuleFromActionRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition AllowDenyAction.hpp:317
modelgbp::gbp::AllowDenyAction & unsetName()
Unset name in the currently-active mutator.
Definition AllowDenyAction.hpp:141
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition AllowDenyAction.hpp:495
const uint8_t getAllow(const uint8_t defaultValue)
Get the value of allow if set, otherwise the value of default passed in.
Definition AllowDenyAction.hpp:60
bool isOrderSet()
Check whether order has been set.
Definition AllowDenyAction.hpp:151
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::AllowDenyAction > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of AllowDenyAction from the managed object store using the default framework ins...
Definition AllowDenyAction.hpp:232
uint32_t getOrder(uint32_t defaultValue)
Get the value of order if set, otherwise the value of default passed in.
Definition AllowDenyAction.hpp:172
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 AllowDenyAction.hpp:469
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition AllowDenyAction.hpp:481
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for AllowDenyAction.
Definition AllowDenyAction.hpp:33
modelgbp::gbp::AllowDenyAction & setAllow(const uint8_t newValue)
Set allow to the specified value in the currently-active mutator.
Definition AllowDenyAction.hpp:73
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition AllowDenyAction.hpp:116
modelgbp::gbp::AllowDenyAction & unsetAllow()
Unset allow in the currently-active mutator.
Definition AllowDenyAction.hpp:85
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition AllowDenyAction.hpp:104
bool isAllowSet()
Check whether allow has been set.
Definition AllowDenyAction.hpp:39
AllowDenyAction(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of AllowDenyAction.
Definition AllowDenyAction.hpp:505
boost::optional< const uint8_t > getAllow()
Get the value of allow if it has been set.
Definition AllowDenyAction.hpp:48
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::AllowDenyAction > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of AllowDenyAction from the managed object store.
Definition AllowDenyAction.hpp:214
bool isNameSet()
Check whether name has been set.
Definition AllowDenyAction.hpp:95
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpAllowDenyActionName)
Remove the AllowDenyAction object with the specified path elements from the managed object store.
Definition AllowDenyAction.hpp:408
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::AllowDenyAction > > resolve(const std::string &policySpaceName, const std::string &gbpAllowDenyActionName)
Retrieve an instance of AllowDenyAction from the default managed object store by constructing its URI...
Definition AllowDenyAction.hpp:281
boost::optional< uint32_t > getOrder()
Get the value of order if it has been set.
Definition AllowDenyAction.hpp:160
modelgbp::gbp::AllowDenyAction & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition AllowDenyAction.hpp:129
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the AllowDenyAction object with the specified URI using the currently-active mutator.
Definition AllowDenyAction.hpp:371
modelgbp::gbp::AllowDenyAction & setOrder(uint32_t newValue)
Set order to the specified value in the currently-active mutator.
Definition AllowDenyAction.hpp:185
modelgbp::gbp::AllowDenyAction & unsetOrder()
Unset order in the currently-active mutator.
Definition AllowDenyAction.hpp:197
void resolveGbpRuleFromActionRTgt(std::vector< OF_SHARED_PTR< modelgbp::gbp::RuleFromActionRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::RuleFromActionRTgt.
Definition AllowDenyAction.hpp:342
void remove()
Remove this instance using the currently-active mutator.
Definition AllowDenyAction.hpp:356
static void remove(const std::string &policySpaceName, const std::string &gbpAllowDenyActionName)
Remove the AllowDenyAction object with the specified path elements from the managed object store usin...
Definition AllowDenyAction.hpp:432
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::AllowDenyAction > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpAllowDenyActionName)
Retrieve an instance of AllowDenyAction from the managed object store by constructing its URI from th...
Definition AllowDenyAction.hpp:256
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 AllowDenyAction.hpp:450
static void remove(const opflex::modb::URI &uri)
Remove the AllowDenyAction object with the specified URI using the currently-active mutator and the d...
Definition AllowDenyAction.hpp:387
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::RuleFromActionRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of RuleFromActionRTgt from the managed object store.
Definition RuleFromActionRTgt.hpp:210
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12