modelgbp Generated OpFlex Model 1.7.0
SecGrpClassifierCounter.hpp
1
10#pragma once
11#ifndef GI_GBPE_SECGRPCLASSIFIERCOUNTER_HPP
12#define GI_GBPE_SECGRPCLASSIFIERCOUNTER_HPP
13
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
17
18namespace modelgbp {
19namespace gbpe {
20
22 : public opflex::modb::mointernal::MO
23{
24public:
25
29 static const opflex::modb::class_id_t CLASS_ID = 49;
30
36 {
37 return getObjectInstance().isSet(1605635ul, opflex::modb::PropertyInfo::STRING);
38 }
39
44 boost::optional<const std::string&> getClassifier()
45 {
46 if (isClassifierSet())
47 return getObjectInstance().getString(1605635ul);
48 return boost::none;
49 }
50
56 const std::string& getClassifier(const std::string& defaultValue)
57 {
58 return getClassifier().get_value_or(defaultValue);
59 }
60
70 {
71 getTLMutator().modify(getClassId(), getURI())->setString(1605635ul, newValue);
72 return *this;
73 }
74
82 {
83 getTLMutator().modify(getClassId(), getURI())->unset(1605635ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
84 return *this;
85 }
86
92 {
93 return getObjectInstance().isSet(1605634ul, opflex::modb::PropertyInfo::U64);
94 }
95
100 boost::optional<uint64_t> getGenId()
101 {
102 if (isGenIdSet())
103 return getObjectInstance().getUInt64(1605634ul);
104 return boost::none;
105 }
106
112 uint64_t getGenId(uint64_t defaultValue)
113 {
114 return getGenId().get_value_or(defaultValue);
115 }
116
126 {
127 getTLMutator().modify(getClassId(), getURI())->setUInt64(1605634ul, newValue);
128 return *this;
129 }
130
138 {
139 getTLMutator().modify(getClassId(), getURI())->unset(1605634ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
140 return *this;
141 }
142
148 {
149 return getObjectInstance().isSet(1605637ul, opflex::modb::PropertyInfo::U64);
150 }
151
156 boost::optional<uint64_t> getRxbytes()
157 {
158 if (isRxbytesSet())
159 return getObjectInstance().getUInt64(1605637ul);
160 return boost::none;
161 }
162
168 uint64_t getRxbytes(uint64_t defaultValue)
169 {
170 return getRxbytes().get_value_or(defaultValue);
171 }
172
182 {
183 getTLMutator().modify(getClassId(), getURI())->setUInt64(1605637ul, newValue);
184 return *this;
185 }
186
194 {
195 getTLMutator().modify(getClassId(), getURI())->unset(1605637ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
196 return *this;
197 }
198
204 {
205 return getObjectInstance().isSet(1605636ul, opflex::modb::PropertyInfo::U64);
206 }
207
212 boost::optional<uint64_t> getRxpackets()
213 {
214 if (isRxpacketsSet())
215 return getObjectInstance().getUInt64(1605636ul);
216 return boost::none;
217 }
218
224 uint64_t getRxpackets(uint64_t defaultValue)
225 {
226 return getRxpackets().get_value_or(defaultValue);
227 }
228
238 {
239 getTLMutator().modify(getClassId(), getURI())->setUInt64(1605636ul, newValue);
240 return *this;
241 }
242
250 {
251 getTLMutator().modify(getClassId(), getURI())->unset(1605636ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
252 return *this;
253 }
254
260 {
261 return getObjectInstance().isSet(1605639ul, opflex::modb::PropertyInfo::U64);
262 }
263
268 boost::optional<uint64_t> getTxbytes()
269 {
270 if (isTxbytesSet())
271 return getObjectInstance().getUInt64(1605639ul);
272 return boost::none;
273 }
274
280 uint64_t getTxbytes(uint64_t defaultValue)
281 {
282 return getTxbytes().get_value_or(defaultValue);
283 }
284
294 {
295 getTLMutator().modify(getClassId(), getURI())->setUInt64(1605639ul, newValue);
296 return *this;
297 }
298
306 {
307 getTLMutator().modify(getClassId(), getURI())->unset(1605639ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
308 return *this;
309 }
310
316 {
317 return getObjectInstance().isSet(1605638ul, opflex::modb::PropertyInfo::U64);
318 }
319
324 boost::optional<uint64_t> getTxpackets()
325 {
326 if (isTxpacketsSet())
327 return getObjectInstance().getUInt64(1605638ul);
328 return boost::none;
329 }
330
336 uint64_t getTxpackets(uint64_t defaultValue)
337 {
338 return getTxpackets().get_value_or(defaultValue);
339 }
340
350 {
351 getTLMutator().modify(getClassId(), getURI())->setUInt64(1605638ul, newValue);
352 return *this;
353 }
354
362 {
363 getTLMutator().modify(getClassId(), getURI())->unset(1605638ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
364 return *this;
365 }
366
372 {
373 return getObjectInstance().isSet(1605633ul, opflex::modb::PropertyInfo::STRING);
374 }
375
380 boost::optional<const std::string&> getUuid()
381 {
382 if (isUuidSet())
383 return getObjectInstance().getString(1605633ul);
384 return boost::none;
385 }
386
392 const std::string& getUuid(const std::string& defaultValue)
393 {
394 return getUuid().get_value_or(defaultValue);
395 }
396
406 {
407 getTLMutator().modify(getClassId(), getURI())->setString(1605633ul, newValue);
408 return *this;
409 }
410
418 {
419 getTLMutator().modify(getClassId(), getURI())->unset(1605633ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
420 return *this;
421 }
422
434 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::SecGrpClassifierCounter> > resolve(
435 opflex::ofcore::OFFramework& framework,
436 const opflex::modb::URI& uri)
437 {
438 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::SecGrpClassifierCounter>(framework, CLASS_ID, uri);
439 }
440
452 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::SecGrpClassifierCounter> > resolve(
453 const opflex::modb::URI& uri)
454 {
455 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::SecGrpClassifierCounter>(opflex::ofcore::OFFramework::defaultInstance(), CLASS_ID, uri);
456 }
457
478 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::SecGrpClassifierCounter> > resolve(
479 opflex::ofcore::OFFramework& framework,
480 const std::string& gbpeSecGrpClassifierCounterUuid,
481 uint64_t gbpeSecGrpClassifierCounterGenId,
482 const std::string& gbpeSecGrpClassifierCounterClassifier)
483 {
484 return resolve(framework,opflex::modb::URIBuilder().addElement("ObserverPolicyStatUniverse").addElement("GbpeSecGrpClassifierCounter").addElement(gbpeSecGrpClassifierCounterUuid).addElement(gbpeSecGrpClassifierCounterGenId).addElement(gbpeSecGrpClassifierCounterClassifier).build());
485 }
486
506 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::SecGrpClassifierCounter> > resolve(
507 const std::string& gbpeSecGrpClassifierCounterUuid,
508 uint64_t gbpeSecGrpClassifierCounterGenId,
509 const std::string& gbpeSecGrpClassifierCounterClassifier)
510 {
511 return resolve(opflex::ofcore::OFFramework::defaultInstance(),gbpeSecGrpClassifierCounterUuid,gbpeSecGrpClassifierCounterGenId,gbpeSecGrpClassifierCounterClassifier);
512 }
513
522 void remove()
523 {
524 getTLMutator().remove(CLASS_ID, getURI());
525 }
526
537 static void remove(opflex::ofcore::OFFramework& framework,
538 const opflex::modb::URI& uri)
539 {
540 MO::remove(framework, CLASS_ID, uri);
541 }
542
553 static void remove(const opflex::modb::URI& uri)
554 {
555 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
556 }
557
576 static void remove(
577 opflex::ofcore::OFFramework& framework,
578 const std::string& gbpeSecGrpClassifierCounterUuid,
579 uint64_t gbpeSecGrpClassifierCounterGenId,
580 const std::string& gbpeSecGrpClassifierCounterClassifier)
581 {
582 MO::remove(framework, CLASS_ID, opflex::modb::URIBuilder().addElement("ObserverPolicyStatUniverse").addElement("GbpeSecGrpClassifierCounter").addElement(gbpeSecGrpClassifierCounterUuid).addElement(gbpeSecGrpClassifierCounterGenId).addElement(gbpeSecGrpClassifierCounterClassifier).build());
583 }
584
603 static void remove(
604 const std::string& gbpeSecGrpClassifierCounterUuid,
605 uint64_t gbpeSecGrpClassifierCounterGenId,
606 const std::string& gbpeSecGrpClassifierCounterClassifier)
607 {
608 remove(opflex::ofcore::OFFramework::defaultInstance(),gbpeSecGrpClassifierCounterUuid,gbpeSecGrpClassifierCounterGenId,gbpeSecGrpClassifierCounterClassifier);
609 }
610
622 static void registerListener(
623 opflex::ofcore::OFFramework& framework,
624 opflex::modb::ObjectListener* listener)
625 {
626 opflex::modb::mointernal
627 ::MO::registerListener(framework, listener, CLASS_ID);
628 }
629
641 static void registerListener(
642 opflex::modb::ObjectListener* listener)
643 {
644 registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
645 }
646
654 opflex::ofcore::OFFramework& framework,
655 opflex::modb::ObjectListener* listener)
656 {
657 opflex::modb::mointernal
658 ::MO::unregisterListener(framework, listener, CLASS_ID);
659 }
660
668 opflex::modb::ObjectListener* listener)
669 {
670 unregisterListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
671 }
672
678 opflex::ofcore::OFFramework& framework,
679 const opflex::modb::URI& uri,
680 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
681 : MO(framework, CLASS_ID, uri, oi) { }
682}; // class SecGrpClassifierCounter
683
684} // namespace gbpe
685} // namespace modelgbp
686#endif // GI_GBPE_SECGRPCLASSIFIERCOUNTER_HPP
Definition SecGrpClassifierCounter.hpp:23
modelgbp::gbpe::SecGrpClassifierCounter & unsetGenId()
Unset genId in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:137
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::SecGrpClassifierCounter > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of SecGrpClassifierCounter from the managed object store using the default frame...
Definition SecGrpClassifierCounter.hpp:452
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition SecGrpClassifierCounter.hpp:653
bool isClassifierSet()
Check whether classifier has been set.
Definition SecGrpClassifierCounter.hpp:35
boost::optional< uint64_t > getGenId()
Get the value of genId if it has been set.
Definition SecGrpClassifierCounter.hpp:100
uint64_t getTxbytes(uint64_t defaultValue)
Get the value of txbytes if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:280
static void remove(const opflex::modb::URI &uri)
Remove the SecGrpClassifierCounter object with the specified URI using the currently-active mutator a...
Definition SecGrpClassifierCounter.hpp:553
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 SecGrpClassifierCounter.hpp:622
modelgbp::gbpe::SecGrpClassifierCounter & unsetRxpackets()
Unset rxpackets in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:249
modelgbp::gbpe::SecGrpClassifierCounter & unsetTxpackets()
Unset txpackets in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:361
modelgbp::gbpe::SecGrpClassifierCounter & setGenId(uint64_t newValue)
Set genId to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:125
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for SecGrpClassifierCounter.
Definition SecGrpClassifierCounter.hpp:29
bool isRxpacketsSet()
Check whether rxpackets has been set.
Definition SecGrpClassifierCounter.hpp:203
boost::optional< const std::string & > getClassifier()
Get the value of classifier if it has been set.
Definition SecGrpClassifierCounter.hpp:44
uint64_t getGenId(uint64_t defaultValue)
Get the value of genId if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:112
modelgbp::gbpe::SecGrpClassifierCounter & unsetClassifier()
Unset classifier in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:81
bool isUuidSet()
Check whether uuid has been set.
Definition SecGrpClassifierCounter.hpp:371
static void remove(const std::string &gbpeSecGrpClassifierCounterUuid, uint64_t gbpeSecGrpClassifierCounterGenId, const std::string &gbpeSecGrpClassifierCounterClassifier)
Remove the SecGrpClassifierCounter object with the specified path elements from the managed object st...
Definition SecGrpClassifierCounter.hpp:603
const std::string & getUuid(const std::string &defaultValue)
Get the value of uuid if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:392
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the SecGrpClassifierCounter object with the specified URI using the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:537
boost::optional< uint64_t > getRxpackets()
Get the value of rxpackets if it has been set.
Definition SecGrpClassifierCounter.hpp:212
void remove()
Remove this instance using the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:522
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::SecGrpClassifierCounter > > resolve(const std::string &gbpeSecGrpClassifierCounterUuid, uint64_t gbpeSecGrpClassifierCounterGenId, const std::string &gbpeSecGrpClassifierCounterClassifier)
Retrieve an instance of SecGrpClassifierCounter from the default managed object store by constructing...
Definition SecGrpClassifierCounter.hpp:506
modelgbp::gbpe::SecGrpClassifierCounter & unsetRxbytes()
Unset rxbytes in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:193
static void remove(opflex::ofcore::OFFramework &framework, const std::string &gbpeSecGrpClassifierCounterUuid, uint64_t gbpeSecGrpClassifierCounterGenId, const std::string &gbpeSecGrpClassifierCounterClassifier)
Remove the SecGrpClassifierCounter object with the specified path elements from the managed object st...
Definition SecGrpClassifierCounter.hpp:576
bool isTxpacketsSet()
Check whether txpackets has been set.
Definition SecGrpClassifierCounter.hpp:315
bool isTxbytesSet()
Check whether txbytes has been set.
Definition SecGrpClassifierCounter.hpp:259
bool isRxbytesSet()
Check whether rxbytes has been set.
Definition SecGrpClassifierCounter.hpp:147
boost::optional< uint64_t > getTxpackets()
Get the value of txpackets if it has been set.
Definition SecGrpClassifierCounter.hpp:324
modelgbp::gbpe::SecGrpClassifierCounter & setTxbytes(uint64_t newValue)
Set txbytes to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:293
boost::optional< uint64_t > getRxbytes()
Get the value of rxbytes if it has been set.
Definition SecGrpClassifierCounter.hpp:156
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::SecGrpClassifierCounter > > resolve(opflex::ofcore::OFFramework &framework, const std::string &gbpeSecGrpClassifierCounterUuid, uint64_t gbpeSecGrpClassifierCounterGenId, const std::string &gbpeSecGrpClassifierCounterClassifier)
Retrieve an instance of SecGrpClassifierCounter from the managed object store by constructing its URI...
Definition SecGrpClassifierCounter.hpp:478
modelgbp::gbpe::SecGrpClassifierCounter & setRxpackets(uint64_t newValue)
Set rxpackets to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:237
boost::optional< uint64_t > getTxbytes()
Get the value of txbytes if it has been set.
Definition SecGrpClassifierCounter.hpp:268
modelgbp::gbpe::SecGrpClassifierCounter & setUuid(const std::string &newValue)
Set uuid to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:405
modelgbp::gbpe::SecGrpClassifierCounter & setClassifier(const std::string &newValue)
Set classifier to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:69
uint64_t getRxbytes(uint64_t defaultValue)
Get the value of rxbytes if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:168
const std::string & getClassifier(const std::string &defaultValue)
Get the value of classifier if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:56
modelgbp::gbpe::SecGrpClassifierCounter & unsetUuid()
Unset uuid in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:417
uint64_t getTxpackets(uint64_t defaultValue)
Get the value of txpackets if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:336
SecGrpClassifierCounter(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of SecGrpClassifierCounter.
Definition SecGrpClassifierCounter.hpp:677
modelgbp::gbpe::SecGrpClassifierCounter & setTxpackets(uint64_t newValue)
Set txpackets to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:349
modelgbp::gbpe::SecGrpClassifierCounter & unsetTxbytes()
Unset txbytes in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:305
boost::optional< const std::string & > getUuid()
Get the value of uuid if it has been set.
Definition SecGrpClassifierCounter.hpp:380
uint64_t getRxpackets(uint64_t defaultValue)
Get the value of rxpackets if set, otherwise the value of default passed in.
Definition SecGrpClassifierCounter.hpp:224
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 SecGrpClassifierCounter.hpp:641
modelgbp::gbpe::SecGrpClassifierCounter & setRxbytes(uint64_t newValue)
Set rxbytes to the specified value in the currently-active mutator.
Definition SecGrpClassifierCounter.hpp:181
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::SecGrpClassifierCounter > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of SecGrpClassifierCounter from the managed object store.
Definition SecGrpClassifierCounter.hpp:434
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition SecGrpClassifierCounter.hpp:667
bool isGenIdSet()
Check whether genId has been set.
Definition SecGrpClassifierCounter.hpp:91
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12