11#ifndef GI_GBP_EPGROUPTONETWORKRSRC_HPP
12#define GI_GBP_EPGROUPTONETWORKRSRC_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
22 :
public opflex::modb::mointernal::MO
29 static const opflex::modb::class_id_t
CLASS_ID = 153;
37 return getObjectInstance().isSet(5013506ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(5013506ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(5013506ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(5013506ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(5013507ul, opflex::modb::PropertyInfo::REFERENCE);
103 return getObjectInstance().getReference(5013507ul).first;
114 return getObjectInstance().getReference(5013507ul).second;
149 getTLMutator().modify(getClassId(), getURI())->setReference(5013507ul, 181, uri);
171 const std::string& policySpaceName,
172 const std::string& gbpBridgeDomainName)
174 getTLMutator().modify(getClassId(), getURI())->setReference(5013507ul, 181, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpBridgeDomain").addElement(gbpBridgeDomainName).build());
189 getTLMutator().modify(getClassId(), getURI())->setReference(5013507ul, 185, uri);
211 const std::string& policySpaceName,
212 const std::string& gbpFloodDomainName)
214 getTLMutator().modify(getClassId(), getURI())->setReference(5013507ul, 185, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpFloodDomain").addElement(gbpFloodDomainName).build());
229 getTLMutator().modify(getClassId(), getURI())->setReference(5013507ul, 190, uri);
251 const std::string& policySpaceName,
252 const std::string& gbpRoutingDomainName)
254 getTLMutator().modify(getClassId(), getURI())->setReference(5013507ul, 190, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpRoutingDomain").addElement(gbpRoutingDomainName).build());
266 getTLMutator().modify(getClassId(), getURI())->unset(5013507ul, opflex::modb::PropertyInfo::REFERENCE, opflex::modb::PropertyInfo::SCALAR);
276 return getObjectInstance().isSet(5013505ul, opflex::modb::PropertyInfo::ENUM8);
286 return (
const uint8_t)getObjectInstance().getUInt64(5013505ul);
295 const uint8_t
getType(
const uint8_t defaultValue)
297 return getType().get_value_or(defaultValue);
310 getTLMutator().modify(getClassId(), getURI())->setUInt64(5013505ul, newValue);
322 getTLMutator().modify(getClassId(), getURI())->unset(5013505ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
337 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::EpGroupToNetworkRSrc> >
resolve(
338 opflex::ofcore::OFFramework& framework,
339 const opflex::modb::URI& uri)
341 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::EpGroupToNetworkRSrc>(framework,
CLASS_ID, uri);
355 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::EpGroupToNetworkRSrc> >
resolve(
356 const opflex::modb::URI& uri)
358 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::EpGroupToNetworkRSrc>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
379 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::EpGroupToNetworkRSrc> >
resolve(
380 opflex::ofcore::OFFramework& framework,
381 const std::string& policySpaceName,
382 const std::string& gbpEpGroupName)
384 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpEpGroup").addElement(gbpEpGroupName).addElement(
"GbpEpGroupToNetworkRSrc").build());
404 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::EpGroupToNetworkRSrc> >
resolve(
405 const std::string& policySpaceName,
406 const std::string& gbpEpGroupName)
408 return resolve(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName,gbpEpGroupName);
421 getTLMutator().remove(
CLASS_ID, getURI());
434 static void remove(opflex::ofcore::OFFramework& framework,
435 const opflex::modb::URI& uri)
437 MO::remove(framework,
CLASS_ID, uri);
450 static void remove(
const opflex::modb::URI& uri)
452 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
472 opflex::ofcore::OFFramework& framework,
473 const std::string& policySpaceName,
474 const std::string& gbpEpGroupName)
476 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpEpGroup").addElement(gbpEpGroupName).addElement(
"GbpEpGroupToNetworkRSrc").build());
496 const std::string& policySpaceName,
497 const std::string& gbpEpGroupName)
499 remove(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName,gbpEpGroupName);
514 opflex::ofcore::OFFramework& framework,
515 opflex::modb::ObjectListener* listener)
517 opflex::modb::mointernal
518 ::MO::registerListener(framework, listener,
CLASS_ID);
533 opflex::modb::ObjectListener* listener)
545 opflex::ofcore::OFFramework& framework,
546 opflex::modb::ObjectListener* listener)
548 opflex::modb::mointernal
549 ::MO::unregisterListener(framework, listener,
CLASS_ID);
559 opflex::modb::ObjectListener* listener)
569 opflex::ofcore::OFFramework& framework,
570 const opflex::modb::URI& uri,
571 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
572 : MO(framework,
CLASS_ID, uri, oi) { }
Definition EpGroupToNetworkRSrc.hpp:23
modelgbp::gbp::EpGroupToNetworkRSrc & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition EpGroupToNetworkRSrc.hpp:69
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition EpGroupToNetworkRSrc.hpp:544
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::EpGroupToNetworkRSrc > > resolve(const std::string &policySpaceName, const std::string &gbpEpGroupName)
Retrieve an instance of EpGroupToNetworkRSrc from the default managed object store by constructing it...
Definition EpGroupToNetworkRSrc.hpp:404
modelgbp::gbp::EpGroupToNetworkRSrc & setTargetBridgeDomain(const std::string &policySpaceName, const std::string &gbpBridgeDomainName)
Set the reference to point to an instance of BridgeDomain in the currently-active mutator by construc...
Definition EpGroupToNetworkRSrc.hpp:170
modelgbp::gbp::EpGroupToNetworkRSrc & unsetTarget()
Unset target in the currently-active mutator.
Definition EpGroupToNetworkRSrc.hpp:264
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the EpGroupToNetworkRSrc object with the specified URI using the currently-active mutator.
Definition EpGroupToNetworkRSrc.hpp:434
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 EpGroupToNetworkRSrc.hpp:513
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition EpGroupToNetworkRSrc.hpp:283
modelgbp::gbp::EpGroupToNetworkRSrc & setTargetRoutingDomain(const opflex::modb::URI &uri)
Set the reference to point to an instance of RoutingDomain with the specified URI.
Definition EpGroupToNetworkRSrc.hpp:227
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 EpGroupToNetworkRSrc.hpp:532
bool isRoleSet()
Check whether role has been set.
Definition EpGroupToNetworkRSrc.hpp:35
modelgbp::gbp::EpGroupToNetworkRSrc & unsetType()
Unset type in the currently-active mutator.
Definition EpGroupToNetworkRSrc.hpp:320
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition EpGroupToNetworkRSrc.hpp:295
boost::optional< opflex::modb::URI > getTargetURI()
Get the value of targetURI if it has been set.
Definition EpGroupToNetworkRSrc.hpp:111
void remove()
Remove this instance using the currently-active mutator.
Definition EpGroupToNetworkRSrc.hpp:419
modelgbp::gbp::EpGroupToNetworkRSrc & setTargetBridgeDomain(const opflex::modb::URI &uri)
Set the reference to point to an instance of BridgeDomain with the specified URI.
Definition EpGroupToNetworkRSrc.hpp:147
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for EpGroupToNetworkRSrc.
Definition EpGroupToNetworkRSrc.hpp:29
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::EpGroupToNetworkRSrc > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of EpGroupToNetworkRSrc from the managed object store using the default framewor...
Definition EpGroupToNetworkRSrc.hpp:355
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::EpGroupToNetworkRSrc > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpEpGroupName)
Retrieve an instance of EpGroupToNetworkRSrc from the managed object store by constructing its URI fr...
Definition EpGroupToNetworkRSrc.hpp:379
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpEpGroupName)
Remove the EpGroupToNetworkRSrc object with the specified path elements from the managed object store...
Definition EpGroupToNetworkRSrc.hpp:471
bool isTargetSet()
Check whether target has been set.
Definition EpGroupToNetworkRSrc.hpp:91
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition EpGroupToNetworkRSrc.hpp:44
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition EpGroupToNetworkRSrc.hpp:56
opflex::modb::URI getTargetURI(opflex::modb::URI defaultValue)
Get the value of targetURI if set, otherwise the value of default passed in.
Definition EpGroupToNetworkRSrc.hpp:133
modelgbp::gbp::EpGroupToNetworkRSrc & setTargetFloodDomain(const opflex::modb::URI &uri)
Set the reference to point to an instance of FloodDomain with the specified URI.
Definition EpGroupToNetworkRSrc.hpp:187
boost::optional< opflex::modb::class_id_t > getTargetClass()
Get the value of targetClass if it has been set.
Definition EpGroupToNetworkRSrc.hpp:100
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition EpGroupToNetworkRSrc.hpp:558
static void remove(const opflex::modb::URI &uri)
Remove the EpGroupToNetworkRSrc object with the specified URI using the currently-active mutator and ...
Definition EpGroupToNetworkRSrc.hpp:450
bool isTypeSet()
Check whether type has been set.
Definition EpGroupToNetworkRSrc.hpp:274
opflex::modb::class_id_t getTargetClass(opflex::modb::class_id_t defaultValue)
Get the value of targetClass if set, otherwise the value of default passed in.
Definition EpGroupToNetworkRSrc.hpp:123
EpGroupToNetworkRSrc(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of EpGroupToNetworkRSrc.
Definition EpGroupToNetworkRSrc.hpp:568
static void remove(const std::string &policySpaceName, const std::string &gbpEpGroupName)
Remove the EpGroupToNetworkRSrc object with the specified path elements from the managed object store...
Definition EpGroupToNetworkRSrc.hpp:495
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::EpGroupToNetworkRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpGroupToNetworkRSrc from the managed object store.
Definition EpGroupToNetworkRSrc.hpp:337
modelgbp::gbp::EpGroupToNetworkRSrc & setTargetRoutingDomain(const std::string &policySpaceName, const std::string &gbpRoutingDomainName)
Set the reference to point to an instance of RoutingDomain in the currently-active mutator by constru...
Definition EpGroupToNetworkRSrc.hpp:250
modelgbp::gbp::EpGroupToNetworkRSrc & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition EpGroupToNetworkRSrc.hpp:308
modelgbp::gbp::EpGroupToNetworkRSrc & setTargetFloodDomain(const std::string &policySpaceName, const std::string &gbpFloodDomainName)
Set the reference to point to an instance of FloodDomain in the currently-active mutator by construct...
Definition EpGroupToNetworkRSrc.hpp:210
modelgbp::gbp::EpGroupToNetworkRSrc & unsetRole()
Unset role in the currently-active mutator.
Definition EpGroupToNetworkRSrc.hpp:81
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12