11#ifndef GI_DCI_ROUTETARGETPDEF_HPP
12#define GI_DCI_ROUTETARGETPDEF_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/dci/RouteTargetDef.hpp"
26 :
public opflex::modb::mointernal::MO
33 static const opflex::modb::class_id_t
CLASS_ID = 91;
48 boost::optional<const uint8_t>
getAf()
143 getTLMutator().modify(
getClassId(),
getURI())->unset(2981889ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
158 static boost::optional<OF_SHARED_PTR<modelgbp::dci::RouteTargetPdef> >
resolve(
160 const opflex::modb::URI&
uri)
162 return opflex::modb::mointernal::MO::resolve<modelgbp::dci::RouteTargetPdef>(
framework,
CLASS_ID,
uri);
176 static boost::optional<OF_SHARED_PTR<modelgbp::dci::RouteTargetPdef> >
resolve(
177 const opflex::modb::URI&
uri)
179 return opflex::modb::mointernal::MO::resolve<modelgbp::dci::RouteTargetPdef>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
202 static boost::optional<OF_SHARED_PTR<modelgbp::dci::RouteTargetPdef> >
resolve(
230 static boost::optional<OF_SHARED_PTR<modelgbp::dci::RouteTargetPdef> >
resolve(
294 opflex::modb::mointernal::MO::resolveChildren<modelgbp::dci::RouteTargetDef>(
322 const opflex::modb::URI&
uri)
339 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
408 opflex::modb::ObjectListener*
listener)
410 opflex::modb::mointernal
426 opflex::modb::ObjectListener*
listener)
439 opflex::modb::ObjectListener*
listener)
441 opflex::modb::mointernal
452 opflex::modb::ObjectListener*
listener)
463 const opflex::modb::URI&
uri,
static boost::optional< OF_SHARED_PTR< modelgbp::dci::RouteTargetDef > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of RouteTargetDef from the managed object store.
Definition RouteTargetDef.hpp:378
Definition RouteTargetPdef.hpp:27
OF_SHARED_PTR< modelgbp::dci::RouteTargetDef > addDciRouteTargetDef(const std::string &dciRouteTargetDefName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition RouteTargetPdef.hpp:267
modelgbp::dci::RouteTargetPdef & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition RouteTargetPdef.hpp:129
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 RouteTargetPdef.hpp:406
static boost::optional< OF_SHARED_PTR< modelgbp::dci::RouteTargetPdef > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of RouteTargetPdef from the managed object store using the default framework ins...
Definition RouteTargetPdef.hpp:176
boost::optional< OF_SHARED_PTR< modelgbp::dci::RouteTargetDef > > resolveDciRouteTargetDef(const std::string &dciRouteTargetDefName)
Retrieve the child object with the specified naming properties.
Definition RouteTargetPdef.hpp:249
modelgbp::dci::RouteTargetPdef & unsetAf()
Unset af in the currently-active mutator.
Definition RouteTargetPdef.hpp:85
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition RouteTargetPdef.hpp:104
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the RouteTargetPdef object with the specified URI using the currently-active mutator.
Definition RouteTargetPdef.hpp:321
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition RouteTargetPdef.hpp:451
modelgbp::dci::RouteTargetPdef & setAf(const uint8_t newValue)
Set af to the specified value in the currently-active mutator.
Definition RouteTargetPdef.hpp:73
bool isNameSet()
Check whether name has been set.
Definition RouteTargetPdef.hpp:95
bool isAfSet()
Check whether af has been set.
Definition RouteTargetPdef.hpp:39
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 RouteTargetPdef.hpp:425
static boost::optional< OF_SHARED_PTR< modelgbp::dci::RouteTargetPdef > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of RouteTargetPdef from the managed object store.
Definition RouteTargetPdef.hpp:158
boost::optional< const uint8_t > getAf()
Get the value of af if it has been set.
Definition RouteTargetPdef.hpp:48
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition RouteTargetPdef.hpp:116
static void remove(const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &dciRouteTargetPdefName)
Remove the RouteTargetPdef object with the specified path elements from the managed object store usin...
Definition RouteTargetPdef.hpp:387
static boost::optional< OF_SHARED_PTR< modelgbp::dci::RouteTargetPdef > > resolve(const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &dciRouteTargetPdefName)
Retrieve an instance of RouteTargetPdef from the default managed object store by constructing its URI...
Definition RouteTargetPdef.hpp:230
void resolveDciRouteTargetDef(std::vector< OF_SHARED_PTR< modelgbp::dci::RouteTargetDef > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::dci::RouteTargetDef.
Definition RouteTargetPdef.hpp:292
RouteTargetPdef(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of RouteTargetPdef.
Definition RouteTargetPdef.hpp:461
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &dciRouteTargetPdefName)
Remove the RouteTargetPdef object with the specified path elements from the managed object store.
Definition RouteTargetPdef.hpp:360
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition RouteTargetPdef.hpp:437
modelgbp::dci::RouteTargetPdef & unsetName()
Unset name in the currently-active mutator.
Definition RouteTargetPdef.hpp:141
static boost::optional< OF_SHARED_PTR< modelgbp::dci::RouteTargetPdef > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &dciRouteTargetPdefName)
Retrieve an instance of RouteTargetPdef from the managed object store by constructing its URI from th...
Definition RouteTargetPdef.hpp:202
static void remove(const opflex::modb::URI &uri)
Remove the RouteTargetPdef object with the specified URI using the currently-active mutator and the d...
Definition RouteTargetPdef.hpp:337
void remove()
Remove this instance using the currently-active mutator.
Definition RouteTargetPdef.hpp:306
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for RouteTargetPdef.
Definition RouteTargetPdef.hpp:33
const uint8_t getAf(const uint8_t defaultValue)
Get the value of af if set, otherwise the value of default passed in.
Definition RouteTargetPdef.hpp:60
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12