11#ifndef GI_GBP_L3EXTERNALNETWORKTOCONSCONTRACTRSRC_HPP
12#define GI_GBP_L3EXTERNALNETWORKTOCONSCONTRACTRSRC_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 = 173;
93 return getObjectInstance().isSet(5668867ul, opflex::modb::PropertyInfo::REFERENCE);
186 getTLMutator().modify(
getClassId(),
getURI())->unset(5668867ul, opflex::modb::PropertyInfo::REFERENCE, opflex::modb::PropertyInfo::SCALAR);
257 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::L3ExternalNetworkToConsContractRSrc> >
resolve(
259 const opflex::modb::URI&
uri)
261 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::L3ExternalNetworkToConsContractRSrc>(
framework,
CLASS_ID,
uri);
275 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::L3ExternalNetworkToConsContractRSrc> >
resolve(
276 const opflex::modb::URI&
uri)
278 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::L3ExternalNetworkToConsContractRSrc>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
307 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::L3ExternalNetworkToConsContractRSrc> >
resolve(
344 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::L3ExternalNetworkToConsContractRSrc> >
resolve(
379 const opflex::modb::URI&
uri)
396 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
483 opflex::modb::ObjectListener*
listener)
485 opflex::modb::mointernal
501 opflex::modb::ObjectListener*
listener)
514 opflex::modb::ObjectListener*
listener)
516 opflex::modb::mointernal
527 opflex::modb::ObjectListener*
listener)
538 const opflex::modb::URI&
uri,
Definition L3ExternalNetworkToConsContractRSrc.hpp:23
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::L3ExternalNetworkToConsContractRSrc > > resolve(const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &gbpL3ExternalDomainName, const std::string &gbpL3ExternalNetworkName, uint16_t gbpL3ExternalNetworkToConsContractRSrcTargetClass, const std::string &gbpL3ExternalNetworkToConsContractRSrcTargetName)
Retrieve an instance of L3ExternalNetworkToConsContractRSrc from the default managed object store by ...
Definition L3ExternalNetworkToConsContractRSrc.hpp:344
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition L3ExternalNetworkToConsContractRSrc.hpp:44
static void remove(const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &gbpL3ExternalDomainName, const std::string &gbpL3ExternalNetworkName, uint16_t gbpL3ExternalNetworkToConsContractRSrcTargetClass, const std::string &gbpL3ExternalNetworkToConsContractRSrcTargetName)
Remove the L3ExternalNetworkToConsContractRSrc object with the specified path elements from the manag...
Definition L3ExternalNetworkToConsContractRSrc.hpp:459
bool isRoleSet()
Check whether role has been set.
Definition L3ExternalNetworkToConsContractRSrc.hpp:35
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition L3ExternalNetworkToConsContractRSrc.hpp:203
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition L3ExternalNetworkToConsContractRSrc.hpp:526
modelgbp::gbp::L3ExternalNetworkToConsContractRSrc & unsetType()
Unset type in the currently-active mutator.
Definition L3ExternalNetworkToConsContractRSrc.hpp:240
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::L3ExternalNetworkToConsContractRSrc > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of L3ExternalNetworkToConsContractRSrc from the managed object store using the d...
Definition L3ExternalNetworkToConsContractRSrc.hpp:275
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the L3ExternalNetworkToConsContractRSrc object with the specified URI using the currently-acti...
Definition L3ExternalNetworkToConsContractRSrc.hpp:378
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 L3ExternalNetworkToConsContractRSrc.hpp:481
modelgbp::gbp::L3ExternalNetworkToConsContractRSrc & unsetTarget()
Unset target in the currently-active mutator.
Definition L3ExternalNetworkToConsContractRSrc.hpp:184
boost::optional< opflex::modb::class_id_t > getTargetClass()
Get the value of targetClass if it has been set.
Definition L3ExternalNetworkToConsContractRSrc.hpp:100
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::L3ExternalNetworkToConsContractRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of L3ExternalNetworkToConsContractRSrc from the managed object store.
Definition L3ExternalNetworkToConsContractRSrc.hpp:257
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition L3ExternalNetworkToConsContractRSrc.hpp:512
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for L3ExternalNetworkToConsContractRSrc.
Definition L3ExternalNetworkToConsContractRSrc.hpp:29
boost::optional< opflex::modb::URI > getTargetURI()
Get the value of targetURI if it has been set.
Definition L3ExternalNetworkToConsContractRSrc.hpp:111
modelgbp::gbp::L3ExternalNetworkToConsContractRSrc & setTargetContract(const std::string &policySpaceName, const std::string &gbpContractName)
Set the reference to point to an instance of Contract in the currently-active mutator by constructing...
Definition L3ExternalNetworkToConsContractRSrc.hpp:170
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 L3ExternalNetworkToConsContractRSrc.hpp:123
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition L3ExternalNetworkToConsContractRSrc.hpp:215
modelgbp::gbp::L3ExternalNetworkToConsContractRSrc & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition L3ExternalNetworkToConsContractRSrc.hpp:69
modelgbp::gbp::L3ExternalNetworkToConsContractRSrc & unsetRole()
Unset role in the currently-active mutator.
Definition L3ExternalNetworkToConsContractRSrc.hpp:81
void remove()
Remove this instance using the currently-active mutator.
Definition L3ExternalNetworkToConsContractRSrc.hpp:363
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &gbpL3ExternalDomainName, const std::string &gbpL3ExternalNetworkName, uint16_t gbpL3ExternalNetworkToConsContractRSrcTargetClass, const std::string &gbpL3ExternalNetworkToConsContractRSrcTargetName)
Remove the L3ExternalNetworkToConsContractRSrc object with the specified path elements from the manag...
Definition L3ExternalNetworkToConsContractRSrc.hpp:423
bool isTargetSet()
Check whether target has been set.
Definition L3ExternalNetworkToConsContractRSrc.hpp:91
modelgbp::gbp::L3ExternalNetworkToConsContractRSrc & setTargetContract(const opflex::modb::URI &uri)
Set the reference to point to an instance of Contract with the specified URI.
Definition L3ExternalNetworkToConsContractRSrc.hpp:147
bool isTypeSet()
Check whether type has been set.
Definition L3ExternalNetworkToConsContractRSrc.hpp:194
opflex::modb::URI getTargetURI(opflex::modb::URI defaultValue)
Get the value of targetURI if set, otherwise the value of default passed in.
Definition L3ExternalNetworkToConsContractRSrc.hpp:133
static void remove(const opflex::modb::URI &uri)
Remove the L3ExternalNetworkToConsContractRSrc object with the specified URI using the currently-acti...
Definition L3ExternalNetworkToConsContractRSrc.hpp:394
L3ExternalNetworkToConsContractRSrc(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of L3ExternalNetworkToConsContractRSrc.
Definition L3ExternalNetworkToConsContractRSrc.hpp:536
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 L3ExternalNetworkToConsContractRSrc.hpp:500
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::L3ExternalNetworkToConsContractRSrc > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &gbpL3ExternalDomainName, const std::string &gbpL3ExternalNetworkName, uint16_t gbpL3ExternalNetworkToConsContractRSrcTargetClass, const std::string &gbpL3ExternalNetworkToConsContractRSrcTargetName)
Retrieve an instance of L3ExternalNetworkToConsContractRSrc from the managed object store by construc...
Definition L3ExternalNetworkToConsContractRSrc.hpp:307
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition L3ExternalNetworkToConsContractRSrc.hpp:56
modelgbp::gbp::L3ExternalNetworkToConsContractRSrc & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition L3ExternalNetworkToConsContractRSrc.hpp:228
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12