androidenterprise  v1
Public Member Functions | Static Public Member Functions | List of all members
google_androidenterprise_api::ManagedProperty Class Reference

#include <managed_property.h>

Inheritance diagram for google_androidenterprise_api::ManagedProperty:

Public Member Functions

 ManagedProperty (const Json::Value &storage)
 
 ManagedProperty (Json::Value *storage)
 
virtual ~ManagedProperty ()
 
const StringPiece GetTypeName () const
 
bool has_key () const
 
void clear_key ()
 
const StringPiece get_key () const
 
void set_key (const StringPiece &value)
 
bool has_value_bool () const
 
void clear_value_bool ()
 
bool get_value_bool () const
 
void set_value_bool (bool value)
 
bool has_value_bundle () const
 
void clear_value_bundle ()
 
const ManagedPropertyBundle get_value_bundle () const
 
ManagedPropertyBundle mutable_valueBundle ()
 
bool has_value_bundle_array () const
 
void clear_value_bundle_array ()
 
const client::JsonCppArray< ManagedPropertyBundleget_value_bundle_array () const
 
client::JsonCppArray< ManagedPropertyBundlemutable_valueBundleArray ()
 
bool has_value_integer () const
 
void clear_value_integer ()
 
int32 get_value_integer () const
 
void set_value_integer (int32 value)
 
bool has_value_string () const
 
void clear_value_string ()
 
const StringPiece get_value_string () const
 
void set_value_string (const StringPiece &value)
 
bool has_value_string_array () const
 
void clear_value_string_array ()
 
const client::JsonCppArray< string > get_value_string_array () const
 
client::JsonCppArray< string > mutable_valueStringArray ()
 

Static Public Member Functions

static ManagedPropertyNew ()
 

Detailed Description

A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema.

Constructor & Destructor Documentation

◆ ManagedProperty() [1/2]

google_androidenterprise_api::ManagedProperty::ManagedProperty ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ManagedProperty() [2/2]

google_androidenterprise_api::ManagedProperty::ManagedProperty ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~ManagedProperty()

google_androidenterprise_api::ManagedProperty::~ManagedProperty ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_key()

void google_androidenterprise_api::ManagedProperty::clear_key ( )
inline

Clears the 'key' attribute.

◆ clear_value_bool()

void google_androidenterprise_api::ManagedProperty::clear_value_bool ( )
inline

Clears the 'valueBool' attribute.

◆ clear_value_bundle()

void google_androidenterprise_api::ManagedProperty::clear_value_bundle ( )
inline

Clears the 'valueBundle' attribute.

◆ clear_value_bundle_array()

void google_androidenterprise_api::ManagedProperty::clear_value_bundle_array ( )
inline

Clears the 'valueBundleArray' attribute.

◆ clear_value_integer()

void google_androidenterprise_api::ManagedProperty::clear_value_integer ( )
inline

Clears the 'valueInteger' attribute.

◆ clear_value_string()

void google_androidenterprise_api::ManagedProperty::clear_value_string ( )
inline

Clears the 'valueString' attribute.

◆ clear_value_string_array()

void google_androidenterprise_api::ManagedProperty::clear_value_string_array ( )
inline

Clears the 'valueStringArray' attribute.

◆ get_key()

const StringPiece google_androidenterprise_api::ManagedProperty::get_key ( ) const
inline

Get the value of the 'key' attribute.

◆ get_value_bool()

bool google_androidenterprise_api::ManagedProperty::get_value_bool ( ) const
inline

Get the value of the 'valueBool' attribute.

◆ get_value_bundle()

const ManagedPropertyBundle google_androidenterprise_api::ManagedProperty::get_value_bundle ( ) const

Get a reference to the value of the 'valueBundle' attribute.

◆ get_value_bundle_array()

const client::JsonCppArray<ManagedPropertyBundle > google_androidenterprise_api::ManagedProperty::get_value_bundle_array ( ) const

Get a reference to the value of the 'valueBundleArray' attribute.

◆ get_value_integer()

int32 google_androidenterprise_api::ManagedProperty::get_value_integer ( ) const
inline

Get the value of the 'valueInteger' attribute.

◆ get_value_string()

const StringPiece google_androidenterprise_api::ManagedProperty::get_value_string ( ) const
inline

Get the value of the 'valueString' attribute.

◆ get_value_string_array()

const client::JsonCppArray<string > google_androidenterprise_api::ManagedProperty::get_value_string_array ( ) const
inline

Get a reference to the value of the 'valueStringArray' attribute.

◆ GetTypeName()

const StringPiece google_androidenterprise_api::ManagedProperty::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_androidenterprise_api::ManagedProperty

◆ has_key()

bool google_androidenterprise_api::ManagedProperty::has_key ( ) const
inline

Determine if the 'key' attribute was set.

Returns
true if the 'key' attribute was set.

◆ has_value_bool()

bool google_androidenterprise_api::ManagedProperty::has_value_bool ( ) const
inline

Determine if the 'valueBool' attribute was set.

Returns
true if the 'valueBool' attribute was set.

◆ has_value_bundle()

bool google_androidenterprise_api::ManagedProperty::has_value_bundle ( ) const
inline

Determine if the 'valueBundle' attribute was set.

Returns
true if the 'valueBundle' attribute was set.

◆ has_value_bundle_array()

bool google_androidenterprise_api::ManagedProperty::has_value_bundle_array ( ) const
inline

Determine if the 'valueBundleArray' attribute was set.

Returns
true if the 'valueBundleArray' attribute was set.

◆ has_value_integer()

bool google_androidenterprise_api::ManagedProperty::has_value_integer ( ) const
inline

Determine if the 'valueInteger' attribute was set.

Returns
true if the 'valueInteger' attribute was set.

◆ has_value_string()

bool google_androidenterprise_api::ManagedProperty::has_value_string ( ) const
inline

Determine if the 'valueString' attribute was set.

Returns
true if the 'valueString' attribute was set.

◆ has_value_string_array()

bool google_androidenterprise_api::ManagedProperty::has_value_string_array ( ) const
inline

Determine if the 'valueStringArray' attribute was set.

Returns
true if the 'valueStringArray' attribute was set.

◆ mutable_valueBundle()

ManagedPropertyBundle google_androidenterprise_api::ManagedProperty::mutable_valueBundle ( )

Gets a reference to a mutable value of the 'valueBundle' property.

The bundle of managed properties - this will only be present if type of the property is bundle.

Returns
The result can be modified to change the attribute value.

◆ mutable_valueBundleArray()

client::JsonCppArray<ManagedPropertyBundle > google_androidenterprise_api::ManagedProperty::mutable_valueBundleArray ( )

Gets a reference to a mutable value of the 'valueBundleArray' property.

The list of bundles of properties - this will only be present if type of the property is bundle_array.

Returns
The result can be modified to change the attribute value.

◆ mutable_valueStringArray()

client::JsonCppArray<string > google_androidenterprise_api::ManagedProperty::mutable_valueStringArray ( )
inline

Gets a reference to a mutable value of the 'valueStringArray' property.

The list of string values - this will only be present if type of the property is multiselect.

Returns
The result can be modified to change the attribute value.

◆ New()

ManagedProperty * google_androidenterprise_api::ManagedProperty::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_key()

void google_androidenterprise_api::ManagedProperty::set_key ( const StringPiece &  value)
inline

Change the 'key' attribute.

The unique key that identifies the property.

Parameters
[in]valueThe new value.

◆ set_value_bool()

void google_androidenterprise_api::ManagedProperty::set_value_bool ( bool  value)
inline

Change the 'valueBool' attribute.

The boolean value - this will only be present if type of the property is bool.

Parameters
[in]valueThe new value.

◆ set_value_integer()

void google_androidenterprise_api::ManagedProperty::set_value_integer ( int32  value)
inline

Change the 'valueInteger' attribute.

The integer value - this will only be present if type of the property is integer.

Parameters
[in]valueThe new value.

◆ set_value_string()

void google_androidenterprise_api::ManagedProperty::set_value_string ( const StringPiece &  value)
inline

Change the 'valueString' attribute.

The string value - this will only be present if type of the property is string, choice or hidden.

Parameters
[in]valueThe new value.

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