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

#include <app_restrictions_schema_restriction.h>

Inheritance diagram for google_androidenterprise_api::AppRestrictionsSchemaRestriction:

Public Member Functions

 AppRestrictionsSchemaRestriction (const Json::Value &storage)
 
 AppRestrictionsSchemaRestriction (Json::Value *storage)
 
virtual ~AppRestrictionsSchemaRestriction ()
 
const StringPiece GetTypeName () const
 
bool has_default_value () const
 
void clear_default_value ()
 
const AppRestrictionsSchemaRestrictionRestrictionValue get_default_value () const
 
AppRestrictionsSchemaRestrictionRestrictionValue mutable_defaultValue ()
 
bool has_description () const
 
void clear_description ()
 
const StringPiece get_description () const
 
void set_description (const StringPiece &value)
 
bool has_entry () const
 
void clear_entry ()
 
const client::JsonCppArray< string > get_entry () const
 
client::JsonCppArray< string > mutable_entry ()
 
bool has_entry_value () const
 
void clear_entry_value ()
 
const client::JsonCppArray< string > get_entry_value () const
 
client::JsonCppArray< string > mutable_entryValue ()
 
bool has_key () const
 
void clear_key ()
 
const StringPiece get_key () const
 
void set_key (const StringPiece &value)
 
bool has_nested_restriction () const
 
void clear_nested_restriction ()
 
const client::JsonCppArray< AppRestrictionsSchemaRestrictionget_nested_restriction () const
 
client::JsonCppArray< AppRestrictionsSchemaRestrictionmutable_nestedRestriction ()
 
bool has_restriction_type () const
 
void clear_restriction_type ()
 
const StringPiece get_restriction_type () const
 
void set_restriction_type (const StringPiece &value)
 
bool has_title () const
 
void clear_title ()
 
const StringPiece get_title () const
 
void set_title (const StringPiece &value)
 

Static Public Member Functions

static AppRestrictionsSchemaRestrictionNew ()
 

Detailed Description

A restriction in the App Restriction Schema represents a piece of configuration that may be pre-applied.

Constructor & Destructor Documentation

◆ AppRestrictionsSchemaRestriction() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ AppRestrictionsSchemaRestriction() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~AppRestrictionsSchemaRestriction()

google_androidenterprise_api::AppRestrictionsSchemaRestriction::~AppRestrictionsSchemaRestriction ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_default_value()

void google_androidenterprise_api::AppRestrictionsSchemaRestriction::clear_default_value ( )
inline

Clears the 'defaultValue' attribute.

◆ clear_description()

void google_androidenterprise_api::AppRestrictionsSchemaRestriction::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_entry()

void google_androidenterprise_api::AppRestrictionsSchemaRestriction::clear_entry ( )
inline

Clears the 'entry' attribute.

◆ clear_entry_value()

void google_androidenterprise_api::AppRestrictionsSchemaRestriction::clear_entry_value ( )
inline

Clears the 'entryValue' attribute.

◆ clear_key()

void google_androidenterprise_api::AppRestrictionsSchemaRestriction::clear_key ( )
inline

Clears the 'key' attribute.

◆ clear_nested_restriction()

void google_androidenterprise_api::AppRestrictionsSchemaRestriction::clear_nested_restriction ( )
inline

Clears the 'nestedRestriction' attribute.

◆ clear_restriction_type()

void google_androidenterprise_api::AppRestrictionsSchemaRestriction::clear_restriction_type ( )
inline

Clears the 'restrictionType' attribute.

◆ clear_title()

void google_androidenterprise_api::AppRestrictionsSchemaRestriction::clear_title ( )
inline

Clears the 'title' attribute.

◆ get_default_value()

const AppRestrictionsSchemaRestrictionRestrictionValue google_androidenterprise_api::AppRestrictionsSchemaRestriction::get_default_value ( ) const

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

◆ get_description()

const StringPiece google_androidenterprise_api::AppRestrictionsSchemaRestriction::get_description ( ) const
inline

Get the value of the 'description' attribute.

◆ get_entry()

const client::JsonCppArray<string > google_androidenterprise_api::AppRestrictionsSchemaRestriction::get_entry ( ) const
inline

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

◆ get_entry_value()

const client::JsonCppArray<string > google_androidenterprise_api::AppRestrictionsSchemaRestriction::get_entry_value ( ) const
inline

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

◆ get_key()

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

Get the value of the 'key' attribute.

◆ get_nested_restriction()

const client::JsonCppArray<AppRestrictionsSchemaRestriction > google_androidenterprise_api::AppRestrictionsSchemaRestriction::get_nested_restriction ( ) const

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

◆ get_restriction_type()

const StringPiece google_androidenterprise_api::AppRestrictionsSchemaRestriction::get_restriction_type ( ) const
inline

Get the value of the 'restrictionType' attribute.

◆ get_title()

const StringPiece google_androidenterprise_api::AppRestrictionsSchemaRestriction::get_title ( ) const
inline

Get the value of the 'title' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_androidenterprise_api::AppRestrictionsSchemaRestriction

◆ has_default_value()

bool google_androidenterprise_api::AppRestrictionsSchemaRestriction::has_default_value ( ) const
inline

Determine if the 'defaultValue' attribute was set.

Returns
true if the 'defaultValue' attribute was set.

◆ has_description()

bool google_androidenterprise_api::AppRestrictionsSchemaRestriction::has_description ( ) const
inline

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_entry()

bool google_androidenterprise_api::AppRestrictionsSchemaRestriction::has_entry ( ) const
inline

Determine if the 'entry' attribute was set.

Returns
true if the 'entry' attribute was set.

◆ has_entry_value()

bool google_androidenterprise_api::AppRestrictionsSchemaRestriction::has_entry_value ( ) const
inline

Determine if the 'entryValue' attribute was set.

Returns
true if the 'entryValue' attribute was set.

◆ has_key()

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

Determine if the 'key' attribute was set.

Returns
true if the 'key' attribute was set.

◆ has_nested_restriction()

bool google_androidenterprise_api::AppRestrictionsSchemaRestriction::has_nested_restriction ( ) const
inline

Determine if the 'nestedRestriction' attribute was set.

Returns
true if the 'nestedRestriction' attribute was set.

◆ has_restriction_type()

bool google_androidenterprise_api::AppRestrictionsSchemaRestriction::has_restriction_type ( ) const
inline

Determine if the 'restrictionType' attribute was set.

Returns
true if the 'restrictionType' attribute was set.

◆ has_title()

bool google_androidenterprise_api::AppRestrictionsSchemaRestriction::has_title ( ) const
inline

Determine if the 'title' attribute was set.

Returns
true if the 'title' attribute was set.

◆ mutable_defaultValue()

AppRestrictionsSchemaRestrictionRestrictionValue google_androidenterprise_api::AppRestrictionsSchemaRestriction::mutable_defaultValue ( )

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

The default value of the restriction. bundle and bundleArray restrictions never have a default value.

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

◆ mutable_entry()

client::JsonCppArray<string > google_androidenterprise_api::AppRestrictionsSchemaRestriction::mutable_entry ( )
inline

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

For choice or multiselect restrictions, the list of possible entries' human-readable names.

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

◆ mutable_entryValue()

client::JsonCppArray<string > google_androidenterprise_api::AppRestrictionsSchemaRestriction::mutable_entryValue ( )
inline

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

For choice or multiselect restrictions, the list of possible entries' machine-readable values. These values should be used in the configuration, either as a single string value for a choice restriction or in a stringArray for a multiselect restriction.

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

◆ mutable_nestedRestriction()

client::JsonCppArray<AppRestrictionsSchemaRestriction > google_androidenterprise_api::AppRestrictionsSchemaRestriction::mutable_nestedRestriction ( )

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

For bundle or bundleArray restrictions, the list of nested restrictions. A bundle restriction is always nested within a bundleArray restriction, and a bundleArray restriction is at most two levels deep.

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

◆ New()

AppRestrictionsSchemaRestriction * google_androidenterprise_api::AppRestrictionsSchemaRestriction::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_description()

void google_androidenterprise_api::AppRestrictionsSchemaRestriction::set_description ( const StringPiece &  value)
inline

Change the 'description' attribute.

A longer description of the restriction, giving more detail of what it affects.

Parameters
[in]valueThe new value.

◆ set_key()

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

Change the 'key' attribute.

The unique key that the product uses to identify the restriction, e.g. "com.google.android.gm.fieldname".

Parameters
[in]valueThe new value.

◆ set_restriction_type()

void google_androidenterprise_api::AppRestrictionsSchemaRestriction::set_restriction_type ( const StringPiece &  value)
inline

Change the 'restrictionType' attribute.

The type of the restriction.

Parameters
[in]valueThe new value.

◆ set_title()

void google_androidenterprise_api::AppRestrictionsSchemaRestriction::set_title ( const StringPiece &  value)
inline

Change the 'title' attribute.

The name of the restriction.

Parameters
[in]valueThe new value.

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