11#ifndef GI_INV_IPMAPPINGFROMGROUPRTGT_HPP
12#define GI_INV_IPMAPPINGFROMGROUPRTGT_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 = 126;
37 return getObjectInstance().isSet(4128770ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(4128770ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(4128770ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(4128770ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(4128771ul, opflex::modb::PropertyInfo::STRING);
103 return getObjectInstance().getString(4128771ul);
112 const std::string&
getSource(
const std::string& defaultValue)
114 return getSource().get_value_or(defaultValue);
127 getTLMutator().modify(getClassId(), getURI())->setString(4128771ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(4128771ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
149 return getObjectInstance().isSet(4128769ul, opflex::modb::PropertyInfo::ENUM8);
159 return (
const uint8_t)getObjectInstance().getUInt64(4128769ul);
168 const uint8_t
getType(
const uint8_t defaultValue)
170 return getType().get_value_or(defaultValue);
183 getTLMutator().modify(getClassId(), getURI())->setUInt64(4128769ul, newValue);
195 getTLMutator().modify(getClassId(), getURI())->unset(4128769ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
210 static boost::optional<OF_SHARED_PTR<modelgbp::inv::IpMappingFromGroupRTgt> >
resolve(
211 opflex::ofcore::OFFramework& framework,
212 const opflex::modb::URI& uri)
214 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::IpMappingFromGroupRTgt>(framework,
CLASS_ID, uri);
228 static boost::optional<OF_SHARED_PTR<modelgbp::inv::IpMappingFromGroupRTgt> >
resolve(
229 const opflex::modb::URI& uri)
231 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::IpMappingFromGroupRTgt>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
254 static boost::optional<OF_SHARED_PTR<modelgbp::inv::IpMappingFromGroupRTgt> >
resolve(
255 opflex::ofcore::OFFramework& framework,
256 const std::string& policySpaceName,
257 const std::string& gbpEpGroupName,
258 const std::string& invIpMappingFromGroupRTgtSource)
260 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpEpGroup").addElement(gbpEpGroupName).addElement(
"InvIpMappingFromGroupRTgt").addElement(invIpMappingFromGroupRTgtSource).build());
282 static boost::optional<OF_SHARED_PTR<modelgbp::inv::IpMappingFromGroupRTgt> >
resolve(
283 const std::string& policySpaceName,
284 const std::string& gbpEpGroupName,
285 const std::string& invIpMappingFromGroupRTgtSource)
287 return resolve(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName,gbpEpGroupName,invIpMappingFromGroupRTgtSource);
300 getTLMutator().remove(
CLASS_ID, getURI());
313 static void remove(opflex::ofcore::OFFramework& framework,
314 const opflex::modb::URI& uri)
316 MO::remove(framework,
CLASS_ID, uri);
329 static void remove(
const opflex::modb::URI& uri)
331 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
353 opflex::ofcore::OFFramework& framework,
354 const std::string& policySpaceName,
355 const std::string& gbpEpGroupName,
356 const std::string& invIpMappingFromGroupRTgtSource)
358 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpEpGroup").addElement(gbpEpGroupName).addElement(
"InvIpMappingFromGroupRTgt").addElement(invIpMappingFromGroupRTgtSource).build());
380 const std::string& policySpaceName,
381 const std::string& gbpEpGroupName,
382 const std::string& invIpMappingFromGroupRTgtSource)
384 remove(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName,gbpEpGroupName,invIpMappingFromGroupRTgtSource);
399 opflex::ofcore::OFFramework& framework,
400 opflex::modb::ObjectListener* listener)
402 opflex::modb::mointernal
403 ::MO::registerListener(framework, listener,
CLASS_ID);
418 opflex::modb::ObjectListener* listener)
430 opflex::ofcore::OFFramework& framework,
431 opflex::modb::ObjectListener* listener)
433 opflex::modb::mointernal
434 ::MO::unregisterListener(framework, listener,
CLASS_ID);
444 opflex::modb::ObjectListener* listener)
454 opflex::ofcore::OFFramework& framework,
455 const opflex::modb::URI& uri,
456 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
457 : MO(framework,
CLASS_ID, uri, oi) { }
Definition IpMappingFromGroupRTgt.hpp:23
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition IpMappingFromGroupRTgt.hpp:56
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 IpMappingFromGroupRTgt.hpp:398
static boost::optional< OF_SHARED_PTR< modelgbp::inv::IpMappingFromGroupRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of IpMappingFromGroupRTgt from the managed object store.
Definition IpMappingFromGroupRTgt.hpp:210
boost::optional< const std::string & > getSource()
Get the value of source if it has been set.
Definition IpMappingFromGroupRTgt.hpp:100
static void remove(const std::string &policySpaceName, const std::string &gbpEpGroupName, const std::string &invIpMappingFromGroupRTgtSource)
Remove the IpMappingFromGroupRTgt object with the specified path elements from the managed object sto...
Definition IpMappingFromGroupRTgt.hpp:379
modelgbp::inv::IpMappingFromGroupRTgt & setSource(const std::string &newValue)
Set source to the specified value in the currently-active mutator.
Definition IpMappingFromGroupRTgt.hpp:125
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 IpMappingFromGroupRTgt.hpp:417
modelgbp::inv::IpMappingFromGroupRTgt & unsetType()
Unset type in the currently-active mutator.
Definition IpMappingFromGroupRTgt.hpp:193
modelgbp::inv::IpMappingFromGroupRTgt & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition IpMappingFromGroupRTgt.hpp:69
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpEpGroupName, const std::string &invIpMappingFromGroupRTgtSource)
Remove the IpMappingFromGroupRTgt object with the specified path elements from the managed object sto...
Definition IpMappingFromGroupRTgt.hpp:352
modelgbp::inv::IpMappingFromGroupRTgt & unsetSource()
Unset source in the currently-active mutator.
Definition IpMappingFromGroupRTgt.hpp:137
void remove()
Remove this instance using the currently-active mutator.
Definition IpMappingFromGroupRTgt.hpp:298
bool isRoleSet()
Check whether role has been set.
Definition IpMappingFromGroupRTgt.hpp:35
const std::string & getSource(const std::string &defaultValue)
Get the value of source if set, otherwise the value of default passed in.
Definition IpMappingFromGroupRTgt.hpp:112
modelgbp::inv::IpMappingFromGroupRTgt & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition IpMappingFromGroupRTgt.hpp:181
modelgbp::inv::IpMappingFromGroupRTgt & unsetRole()
Unset role in the currently-active mutator.
Definition IpMappingFromGroupRTgt.hpp:81
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the IpMappingFromGroupRTgt object with the specified URI using the currently-active mutator.
Definition IpMappingFromGroupRTgt.hpp:313
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition IpMappingFromGroupRTgt.hpp:443
static boost::optional< OF_SHARED_PTR< modelgbp::inv::IpMappingFromGroupRTgt > > resolve(const std::string &policySpaceName, const std::string &gbpEpGroupName, const std::string &invIpMappingFromGroupRTgtSource)
Retrieve an instance of IpMappingFromGroupRTgt from the default managed object store by constructing ...
Definition IpMappingFromGroupRTgt.hpp:282
IpMappingFromGroupRTgt(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of IpMappingFromGroupRTgt.
Definition IpMappingFromGroupRTgt.hpp:453
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for IpMappingFromGroupRTgt.
Definition IpMappingFromGroupRTgt.hpp:29
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition IpMappingFromGroupRTgt.hpp:44
bool isTypeSet()
Check whether type has been set.
Definition IpMappingFromGroupRTgt.hpp:147
static boost::optional< OF_SHARED_PTR< modelgbp::inv::IpMappingFromGroupRTgt > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpEpGroupName, const std::string &invIpMappingFromGroupRTgtSource)
Retrieve an instance of IpMappingFromGroupRTgt from the managed object store by constructing its URI ...
Definition IpMappingFromGroupRTgt.hpp:254
bool isSourceSet()
Check whether source has been set.
Definition IpMappingFromGroupRTgt.hpp:91
static void remove(const opflex::modb::URI &uri)
Remove the IpMappingFromGroupRTgt object with the specified URI using the currently-active mutator an...
Definition IpMappingFromGroupRTgt.hpp:329
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition IpMappingFromGroupRTgt.hpp:429
static boost::optional< OF_SHARED_PTR< modelgbp::inv::IpMappingFromGroupRTgt > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of IpMappingFromGroupRTgt from the managed object store using the default framew...
Definition IpMappingFromGroupRTgt.hpp:228
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition IpMappingFromGroupRTgt.hpp:168
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition IpMappingFromGroupRTgt.hpp:156
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12