11#ifndef GI_INV_DHCPV6CONFIG_HPP
12#define GI_INV_DHCPV6CONFIG_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/inv/DNSServer.hpp"
24#include "modelgbp/inv/SearchListEntry.hpp"
30 :
public opflex::modb::mointernal::MO
37 static const opflex::modb::class_id_t
CLASS_ID = 134;
274 static boost::optional<OF_SHARED_PTR<modelgbp::inv::DHCPv6Config> >
resolve(
276 const opflex::modb::URI&
uri)
278 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::DHCPv6Config>(
framework,
CLASS_ID,
uri);
292 static boost::optional<OF_SHARED_PTR<modelgbp::inv::DHCPv6Config> >
resolve(
293 const opflex::modb::URI&
uri)
295 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::DHCPv6Config>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
316 static boost::optional<OF_SHARED_PTR<modelgbp::inv::DHCPv6Config> >
resolve(
341 static boost::optional<OF_SHARED_PTR<modelgbp::inv::DHCPv6Config> >
resolve(
404 opflex::modb::mointernal::MO::resolveChildren<modelgbp::inv::DNSServer>(
464 opflex::modb::mointernal::MO::resolveChildren<modelgbp::inv::SearchListEntry>(
492 const opflex::modb::URI&
uri)
509 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
572 opflex::modb::ObjectListener*
listener)
574 opflex::modb::mointernal
590 opflex::modb::ObjectListener*
listener)
603 opflex::modb::ObjectListener*
listener)
605 opflex::modb::mointernal
616 opflex::modb::ObjectListener*
listener)
627 const opflex::modb::URI&
uri,
Definition DHCPv6Config.hpp:31
DHCPv6Config(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of DHCPv6Config.
Definition DHCPv6Config.hpp:625
modelgbp::inv::DHCPv6Config & setValidLifetime(uint32_t newValue)
Set validLifetime to the specified value in the currently-active mutator.
Definition DHCPv6Config.hpp:245
static boost::optional< OF_SHARED_PTR< modelgbp::inv::DHCPv6Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of DHCPv6Config from the managed object store.
Definition DHCPv6Config.hpp:274
boost::optional< OF_SHARED_PTR< modelgbp::inv::DNSServer > > resolveInvDNSServer(const std::string &invDNSServerName)
Retrieve the child object with the specified naming properties.
Definition DHCPv6Config.hpp:359
modelgbp::inv::DHCPv6Config & unsetT1()
Unset t1 in the currently-active mutator.
Definition DHCPv6Config.hpp:145
OF_SHARED_PTR< modelgbp::inv::DNSServer > addInvDNSServer(const std::string &invDNSServerName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition DHCPv6Config.hpp:377
OF_SHARED_PTR< modelgbp::inv::SearchListEntry > addInvSearchListEntry(const std::string &invSearchListEntryName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition DHCPv6Config.hpp:437
static boost::optional< OF_SHARED_PTR< modelgbp::inv::DHCPv6Config > > resolve(const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid)
Retrieve an instance of DHCPv6Config from the default managed object store by constructing its URI fr...
Definition DHCPv6Config.hpp:341
modelgbp::inv::DHCPv6Config & unsetValidLifetime()
Unset validLifetime in the currently-active mutator.
Definition DHCPv6Config.hpp:257
uint32_t getT2(uint32_t defaultValue)
Get the value of t2 if set, otherwise the value of default passed in.
Definition DHCPv6Config.hpp:176
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for DHCPv6Config.
Definition DHCPv6Config.hpp:37
bool isPreferredLifetimeSet()
Check whether preferredLifetime has been set.
Definition DHCPv6Config.hpp:43
void resolveInvDNSServer(std::vector< OF_SHARED_PTR< modelgbp::inv::DNSServer > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::inv::DNSServer.
Definition DHCPv6Config.hpp:402
boost::optional< OF_SHARED_PTR< modelgbp::inv::SearchListEntry > > resolveInvSearchListEntry(const std::string &invSearchListEntryName)
Retrieve the child object with the specified naming properties.
Definition DHCPv6Config.hpp:419
bool isT1Set()
Check whether t1 has been set.
Definition DHCPv6Config.hpp:99
bool isValidLifetimeSet()
Check whether validLifetime has been set.
Definition DHCPv6Config.hpp:211
modelgbp::inv::DHCPv6Config & setPreferredLifetime(uint32_t newValue)
Set preferredLifetime to the specified value in the currently-active mutator.
Definition DHCPv6Config.hpp:77
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 DHCPv6Config.hpp:570
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the DHCPv6Config object with the specified URI using the currently-active mutator.
Definition DHCPv6Config.hpp:491
modelgbp::inv::DHCPv6Config & setT1(uint32_t newValue)
Set t1 to the specified value in the currently-active mutator.
Definition DHCPv6Config.hpp:133
void resolveInvSearchListEntry(std::vector< OF_SHARED_PTR< modelgbp::inv::SearchListEntry > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::inv::SearchListEntry.
Definition DHCPv6Config.hpp:462
uint32_t getPreferredLifetime(uint32_t defaultValue)
Get the value of preferredLifetime if set, otherwise the value of default passed in.
Definition DHCPv6Config.hpp:64
bool isT2Set()
Check whether t2 has been set.
Definition DHCPv6Config.hpp:155
modelgbp::inv::DHCPv6Config & unsetPreferredLifetime()
Unset preferredLifetime in the currently-active mutator.
Definition DHCPv6Config.hpp:89
uint32_t getValidLifetime(uint32_t defaultValue)
Get the value of validLifetime if set, otherwise the value of default passed in.
Definition DHCPv6Config.hpp:232
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition DHCPv6Config.hpp:601
boost::optional< uint32_t > getPreferredLifetime()
Get the value of preferredLifetime if it has been set.
Definition DHCPv6Config.hpp:52
modelgbp::inv::DHCPv6Config & unsetT2()
Unset t2 in the currently-active mutator.
Definition DHCPv6Config.hpp:201
static boost::optional< OF_SHARED_PTR< modelgbp::inv::DHCPv6Config > > resolve(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid)
Retrieve an instance of DHCPv6Config from the managed object store by constructing its URI from the p...
Definition DHCPv6Config.hpp:316
static void remove(const opflex::modb::URI &uri)
Remove the DHCPv6Config object with the specified URI using the currently-active mutator and the defa...
Definition DHCPv6Config.hpp:507
boost::optional< uint32_t > getT2()
Get the value of t2 if it has been set.
Definition DHCPv6Config.hpp:164
static void remove(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid)
Remove the DHCPv6Config object with the specified path elements from the managed object store.
Definition DHCPv6Config.hpp:528
modelgbp::inv::DHCPv6Config & setT2(uint32_t newValue)
Set t2 to the specified value in the currently-active mutator.
Definition DHCPv6Config.hpp:189
static boost::optional< OF_SHARED_PTR< modelgbp::inv::DHCPv6Config > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of DHCPv6Config from the managed object store using the default framework instan...
Definition DHCPv6Config.hpp:292
uint32_t getT1(uint32_t defaultValue)
Get the value of t1 if set, otherwise the value of default passed in.
Definition DHCPv6Config.hpp:120
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 DHCPv6Config.hpp:589
void remove()
Remove this instance using the currently-active mutator.
Definition DHCPv6Config.hpp:476
boost::optional< uint32_t > getT1()
Get the value of t1 if it has been set.
Definition DHCPv6Config.hpp:108
boost::optional< uint32_t > getValidLifetime()
Get the value of validLifetime if it has been set.
Definition DHCPv6Config.hpp:220
static void remove(const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid)
Remove the DHCPv6Config object with the specified path elements from the managed object store using t...
Definition DHCPv6Config.hpp:552
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition DHCPv6Config.hpp:615
static boost::optional< OF_SHARED_PTR< modelgbp::inv::DNSServer > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of DNSServer from the managed object store.
Definition DNSServer.hpp:98
static boost::optional< OF_SHARED_PTR< modelgbp::inv::SearchListEntry > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of SearchListEntry from the managed object store.
Definition SearchListEntry.hpp:98
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12