modelgbp Generated OpFlex Model  1.7.0
modelgbp::gbpe::SNATIPPool Class Reference
Inheritance diagram for modelgbp::gbpe::SNATIPPool:

Public Member Functions

bool isAddressSet ()
 Check whether address has been set. More...
 
boost::optional< const
std::string & > 
getAddress ()
 Get the value of address if it has been set. More...
 
const std::string & getAddress (const std::string &defaultValue)
 Get the value of address if set, otherwise the value of default passed in. More...
 
modelgbp::gbpe::SNATIPPoolsetAddress (const std::string &newValue)
 Set address to the specified value in the currently-active mutator. More...
 
modelgbp::gbpe::SNATIPPoolunsetAddress ()
 Unset address in the currently-active mutator. More...
 
bool isNameSet ()
 Check whether name has been set. More...
 
boost::optional< const
std::string & > 
getName ()
 Get the value of name if it has been set. More...
 
const std::string & getName (const std::string &defaultValue)
 Get the value of name if set, otherwise the value of default passed in. More...
 
modelgbp::gbpe::SNATIPPoolsetName (const std::string &newValue)
 Set name to the specified value in the currently-active mutator. More...
 
modelgbp::gbpe::SNATIPPoolunsetName ()
 Unset name in the currently-active mutator. More...
 
bool isNatEpGroupSet ()
 Check whether natEpGroup has been set. More...
 
boost::optional< const
std::string & > 
getNatEpGroup ()
 Get the value of natEpGroup if it has been set. More...
 
const std::string & getNatEpGroup (const std::string &defaultValue)
 Get the value of natEpGroup if set, otherwise the value of default passed in. More...
 
modelgbp::gbpe::SNATIPPoolsetNatEpGroup (const std::string &newValue)
 Set natEpGroup to the specified value in the currently-active mutator. More...
 
modelgbp::gbpe::SNATIPPoolunsetNatEpGroup ()
 Unset natEpGroup in the currently-active mutator. More...
 
bool isPrefixLenSet ()
 Check whether prefixLen has been set. More...
 
boost::optional< const uint8_t > getPrefixLen ()
 Get the value of prefixLen if it has been set. More...
 
const uint8_t getPrefixLen (const uint8_t defaultValue)
 Get the value of prefixLen if set, otherwise the value of default passed in. More...
 
modelgbp::gbpe::SNATIPPoolsetPrefixLen (const uint8_t newValue)
 Set prefixLen to the specified value in the currently-active mutator. More...
 
modelgbp::gbpe::SNATIPPoolunsetPrefixLen ()
 Unset prefixLen in the currently-active mutator. More...
 
bool isTunnelEpUuidSet ()
 Check whether tunnelEpUuid has been set. More...
 
boost::optional< const
std::string & > 
getTunnelEpUuid ()
 Get the value of tunnelEpUuid if it has been set. More...
 
const std::string & getTunnelEpUuid (const std::string &defaultValue)
 Get the value of tunnelEpUuid if set, otherwise the value of default passed in. More...
 
modelgbp::gbpe::SNATIPPoolsetTunnelEpUuid (const std::string &newValue)
 Set tunnelEpUuid to the specified value in the currently-active mutator. More...
 
modelgbp::gbpe::SNATIPPoolunsetTunnelEpUuid ()
 Unset tunnelEpUuid in the currently-active mutator. More...
 
void remove ()
 Remove this instance using the currently-active mutator. More...
 
 SNATIPPool (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
 Construct an instance of SNATIPPool. More...
 

Static Public Member Functions

static boost::optional
< OF_SHARED_PTR
< modelgbp::gbpe::SNATIPPool > > 
resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
 Retrieve an instance of SNATIPPool from the managed object store. More...
 
static boost::optional
< OF_SHARED_PTR
< modelgbp::gbpe::SNATIPPool > > 
resolve (const opflex::modb::URI &uri)
 Retrieve an instance of SNATIPPool from the managed object store using the default framework instance. More...
 
static boost::optional
< OF_SHARED_PTR
< modelgbp::gbpe::SNATIPPool > > 
resolve (opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &gbpeSNATIPPoolName)
 Retrieve an instance of SNATIPPool from the managed object store by constructing its URI from the path elements that lead to it. More...
 
static boost::optional
< OF_SHARED_PTR
< modelgbp::gbpe::SNATIPPool > > 
resolve (const std::string &platformConfigName, const std::string &gbpeSNATIPPoolName)
 Retrieve an instance of SNATIPPool from the default managed object store by constructing its URI from the path elements that lead to it. More...
 
static void remove (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
 Remove the SNATIPPool object with the specified URI using the currently-active mutator. More...
 
static void remove (const opflex::modb::URI &uri)
 Remove the SNATIPPool object with the specified URI using the currently-active mutator and the default framework instance. More...
 
static void remove (opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &gbpeSNATIPPoolName)
 Remove the SNATIPPool object with the specified path elements from the managed object store. More...
 
static void remove (const std::string &platformConfigName, const std::string &gbpeSNATIPPoolName)
 Remove the SNATIPPool object with the specified path elements from the managed object store using the default framework instance. More...
 
static void registerListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
 Register a listener that will get called for changes related to this class. More...
 
static void registerListener (opflex::modb::ObjectListener *listener)
 Register a listener that will get called for changes related to this class with the default framework instance. More...
 
static void unregisterListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
 Unregister a listener from updates to this class. More...
 
static void unregisterListener (opflex::modb::ObjectListener *listener)
 Unregister a listener from updates to this class from the default framework instance. More...
 

Static Public Attributes

static const
opflex::modb::class_id_t 
CLASS_ID = 46
 The unique class ID for SNATIPPool.
 

Constructor & Destructor Documentation

modelgbp::gbpe::SNATIPPool::SNATIPPool ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri,
const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &  oi 
)
inline

Construct an instance of SNATIPPool.

This should not typically be called from user code.

Member Function Documentation

boost::optional<const std::string&> modelgbp::gbpe::SNATIPPool::getAddress ( )
inline

Get the value of address if it has been set.

Returns
the value of address or boost::none if not set

References isAddressSet().

Referenced by getAddress().

const std::string& modelgbp::gbpe::SNATIPPool::getAddress ( const std::string &  defaultValue)
inline

Get the value of address if set, otherwise the value of default passed in.

Parameters
defaultValuedefault value returned if the property is not set
Returns
the value of address if set, otherwise the value of default passed in

References getAddress().

boost::optional<const std::string&> modelgbp::gbpe::SNATIPPool::getName ( )
inline

Get the value of name if it has been set.

Returns
the value of name or boost::none if not set

References isNameSet().

Referenced by getName().

const std::string& modelgbp::gbpe::SNATIPPool::getName ( const std::string &  defaultValue)
inline

Get the value of name if set, otherwise the value of default passed in.

Parameters
defaultValuedefault value returned if the property is not set
Returns
the value of name if set, otherwise the value of default passed in

References getName().

boost::optional<const std::string&> modelgbp::gbpe::SNATIPPool::getNatEpGroup ( )
inline

Get the value of natEpGroup if it has been set.

Returns
the value of natEpGroup or boost::none if not set

References isNatEpGroupSet().

Referenced by getNatEpGroup().

const std::string& modelgbp::gbpe::SNATIPPool::getNatEpGroup ( const std::string &  defaultValue)
inline

Get the value of natEpGroup if set, otherwise the value of default passed in.

Parameters
defaultValuedefault value returned if the property is not set
Returns
the value of natEpGroup if set, otherwise the value of default passed in

References getNatEpGroup().

boost::optional<const uint8_t> modelgbp::gbpe::SNATIPPool::getPrefixLen ( )
inline

Get the value of prefixLen if it has been set.

Returns
the value of prefixLen or boost::none if not set

References isPrefixLenSet().

Referenced by getPrefixLen().

const uint8_t modelgbp::gbpe::SNATIPPool::getPrefixLen ( const uint8_t  defaultValue)
inline

Get the value of prefixLen if set, otherwise the value of default passed in.

Parameters
defaultValuedefault value returned if the property is not set
Returns
the value of prefixLen if set, otherwise the value of default passed in

References getPrefixLen().

boost::optional<const std::string&> modelgbp::gbpe::SNATIPPool::getTunnelEpUuid ( )
inline

Get the value of tunnelEpUuid if it has been set.

Returns
the value of tunnelEpUuid or boost::none if not set

References isTunnelEpUuidSet().

Referenced by getTunnelEpUuid().

const std::string& modelgbp::gbpe::SNATIPPool::getTunnelEpUuid ( const std::string &  defaultValue)
inline

Get the value of tunnelEpUuid if set, otherwise the value of default passed in.

Parameters
defaultValuedefault value returned if the property is not set
Returns
the value of tunnelEpUuid if set, otherwise the value of default passed in

References getTunnelEpUuid().

bool modelgbp::gbpe::SNATIPPool::isAddressSet ( )
inline

Check whether address has been set.

Returns
true if address has been set

Referenced by getAddress().

bool modelgbp::gbpe::SNATIPPool::isNameSet ( )
inline

Check whether name has been set.

Returns
true if name has been set

Referenced by getName().

bool modelgbp::gbpe::SNATIPPool::isNatEpGroupSet ( )
inline

Check whether natEpGroup has been set.

Returns
true if natEpGroup has been set

Referenced by getNatEpGroup().

bool modelgbp::gbpe::SNATIPPool::isPrefixLenSet ( )
inline

Check whether prefixLen has been set.

Returns
true if prefixLen has been set

Referenced by getPrefixLen().

bool modelgbp::gbpe::SNATIPPool::isTunnelEpUuidSet ( )
inline

Check whether tunnelEpUuid has been set.

Returns
true if tunnelEpUuid has been set

Referenced by getTunnelEpUuid().

static void modelgbp::gbpe::SNATIPPool::registerListener ( opflex::ofcore::OFFramework &  framework,
opflex::modb::ObjectListener *  listener 
)
inlinestatic

Register a listener that will get called for changes related to this class.

This listener will be called for any modifications of this class or any transitive children of this class.

Parameters
frameworkthe framework instance
listenerthe listener functional object that should be called when changes occur related to the class. This memory is owned by the caller and should be freed only after it has been unregistered.

References CLASS_ID.

Referenced by registerListener().

static void modelgbp::gbpe::SNATIPPool::registerListener ( opflex::modb::ObjectListener *  listener)
inlinestatic

Register a listener that will get called for changes related to this class with the default framework instance.

This listener will be called for any modifications of this class or any transitive children of this class.

Parameters
listenerthe listener functional object that should be called when changes occur related to the class. This memory is owned by the caller and should be freed only after it has been unregistered.

References registerListener().

void modelgbp::gbpe::SNATIPPool::remove ( )
inline

Remove this instance using the currently-active mutator.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

static void modelgbp::gbpe::SNATIPPool::remove ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri 
)
inlinestatic

Remove the SNATIPPool object with the specified URI using the currently-active mutator.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Parameters
frameworkthe framework instance to use
urithe URI of the object to remove
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

static void modelgbp::gbpe::SNATIPPool::remove ( const opflex::modb::URI &  uri)
inlinestatic

Remove the SNATIPPool object with the specified URI using the currently-active mutator and the default framework instance.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Parameters
urithe URI of the object to remove
Exceptions
std::logic_errorif no mutator is active
static void modelgbp::gbpe::SNATIPPool::remove ( opflex::ofcore::OFFramework &  framework,
const std::string &  platformConfigName,
const std::string &  gbpeSNATIPPoolName 
)
inlinestatic

Remove the SNATIPPool object with the specified path elements from the managed object store.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /PolicyUniverse/PlatformConfig/[platformConfigName]/GbpeSNATIPPool/[gbpeSNATIPPoolName]

Parameters
frameworkthe framework instance to use
platformConfigNamethe value of platformConfigName, a naming property for Config
gbpeSNATIPPoolNamethe value of gbpeSNATIPPoolName, a naming property for SNATIPPool
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

static void modelgbp::gbpe::SNATIPPool::remove ( const std::string &  platformConfigName,
const std::string &  gbpeSNATIPPoolName 
)
inlinestatic

Remove the SNATIPPool object with the specified path elements from the managed object store using the default framework instance.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /PolicyUniverse/PlatformConfig/[platformConfigName]/GbpeSNATIPPool/[gbpeSNATIPPoolName]

Parameters
platformConfigNamethe value of platformConfigName, a naming property for Config
gbpeSNATIPPoolNamethe value of gbpeSNATIPPoolName, a naming property for SNATIPPool
Exceptions
std::logic_errorif no mutator is active
static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::SNATIPPool> > modelgbp::gbpe::SNATIPPool::resolve ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri 
)
inlinestatic

Retrieve an instance of SNATIPPool from the managed object store.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
frameworkthe framework instance to use
urithe URI of the object to retrieve
Returns
a shared pointer to the object or boost::none if it does not exist.

References CLASS_ID.

Referenced by resolve(), and modelgbp::platform::Config::resolveGbpeSNATIPPool().

static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::SNATIPPool> > modelgbp::gbpe::SNATIPPool::resolve ( const opflex::modb::URI &  uri)
inlinestatic

Retrieve an instance of SNATIPPool from the managed object store using the default framework instance.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
urithe URI of the object to retrieve
Returns
a shared pointer to the object or boost::none if it does not exist.

References CLASS_ID.

static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::SNATIPPool> > modelgbp::gbpe::SNATIPPool::resolve ( opflex::ofcore::OFFramework &  framework,
const std::string &  platformConfigName,
const std::string &  gbpeSNATIPPoolName 
)
inlinestatic

Retrieve an instance of SNATIPPool from the managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /PolicyUniverse/PlatformConfig/[platformConfigName]/GbpeSNATIPPool/[gbpeSNATIPPoolName]

Parameters
frameworkthe framework instance to use
platformConfigNamethe value of platformConfigName, a naming property for Config
gbpeSNATIPPoolNamethe value of gbpeSNATIPPoolName, a naming property for SNATIPPool
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::SNATIPPool> > modelgbp::gbpe::SNATIPPool::resolve ( const std::string &  platformConfigName,
const std::string &  gbpeSNATIPPoolName 
)
inlinestatic

Retrieve an instance of SNATIPPool from the default managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /PolicyUniverse/PlatformConfig/[platformConfigName]/GbpeSNATIPPool/[gbpeSNATIPPoolName]

Parameters
platformConfigNamethe value of platformConfigName, a naming property for Config
gbpeSNATIPPoolNamethe value of gbpeSNATIPPoolName, a naming property for SNATIPPool
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

modelgbp::gbpe::SNATIPPool& modelgbp::gbpe::SNATIPPool::setAddress ( const std::string &  newValue)
inline

Set address to the specified value in the currently-active mutator.

Parameters
newValuethe new value to set.
Returns
a reference to the current object
Exceptions
std::logic_errorif no mutator is active
See Also
opflex::modb::Mutator
modelgbp::gbpe::SNATIPPool& modelgbp::gbpe::SNATIPPool::setName ( const std::string &  newValue)
inline

Set name to the specified value in the currently-active mutator.

Parameters
newValuethe new value to set.
Returns
a reference to the current object
Exceptions
std::logic_errorif no mutator is active
See Also
opflex::modb::Mutator
modelgbp::gbpe::SNATIPPool& modelgbp::gbpe::SNATIPPool::setNatEpGroup ( const std::string &  newValue)
inline

Set natEpGroup to the specified value in the currently-active mutator.

Parameters
newValuethe new value to set.
Returns
a reference to the current object
Exceptions
std::logic_errorif no mutator is active
See Also
opflex::modb::Mutator
modelgbp::gbpe::SNATIPPool& modelgbp::gbpe::SNATIPPool::setPrefixLen ( const uint8_t  newValue)
inline

Set prefixLen to the specified value in the currently-active mutator.

Parameters
newValuethe new value to set.
Returns
a reference to the current object
Exceptions
std::logic_errorif no mutator is active
See Also
opflex::modb::Mutator
modelgbp::gbpe::SNATIPPool& modelgbp::gbpe::SNATIPPool::setTunnelEpUuid ( const std::string &  newValue)
inline

Set tunnelEpUuid to the specified value in the currently-active mutator.

Parameters
newValuethe new value to set.
Returns
a reference to the current object
Exceptions
std::logic_errorif no mutator is active
See Also
opflex::modb::Mutator
static void modelgbp::gbpe::SNATIPPool::unregisterListener ( opflex::ofcore::OFFramework &  framework,
opflex::modb::ObjectListener *  listener 
)
inlinestatic

Unregister a listener from updates to this class.

Parameters
frameworkthe framework instance
listenerThe listener to unregister.

References CLASS_ID.

Referenced by unregisterListener().

static void modelgbp::gbpe::SNATIPPool::unregisterListener ( opflex::modb::ObjectListener *  listener)
inlinestatic

Unregister a listener from updates to this class from the default framework instance.

Parameters
listenerThe listener to unregister.

References unregisterListener().

modelgbp::gbpe::SNATIPPool& modelgbp::gbpe::SNATIPPool::unsetAddress ( )
inline

Unset address in the currently-active mutator.

Exceptions
std::logic_errorif no mutator is active
Returns
a reference to the current object
See Also
opflex::modb::Mutator
modelgbp::gbpe::SNATIPPool& modelgbp::gbpe::SNATIPPool::unsetName ( )
inline

Unset name in the currently-active mutator.

Exceptions
std::logic_errorif no mutator is active
Returns
a reference to the current object
See Also
opflex::modb::Mutator
modelgbp::gbpe::SNATIPPool& modelgbp::gbpe::SNATIPPool::unsetNatEpGroup ( )
inline

Unset natEpGroup in the currently-active mutator.

Exceptions
std::logic_errorif no mutator is active
Returns
a reference to the current object
See Also
opflex::modb::Mutator
modelgbp::gbpe::SNATIPPool& modelgbp::gbpe::SNATIPPool::unsetPrefixLen ( )
inline

Unset prefixLen in the currently-active mutator.

Exceptions
std::logic_errorif no mutator is active
Returns
a reference to the current object
See Also
opflex::modb::Mutator
modelgbp::gbpe::SNATIPPool& modelgbp::gbpe::SNATIPPool::unsetTunnelEpUuid ( )
inline

Unset tunnelEpUuid in the currently-active mutator.

Exceptions
std::logic_errorif no mutator is active
Returns
a reference to the current object
See Also
opflex::modb::Mutator

The documentation for this class was generated from the following file: