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

#include <device_state.h>

Inheritance diagram for google_androidenterprise_api::DeviceState:

Public Member Functions

 DeviceState (const Json::Value &storage)
 
 DeviceState (Json::Value *storage)
 
virtual ~DeviceState ()
 
const StringPiece GetTypeName () const
 
bool has_account_state () const
 
void clear_account_state ()
 
const StringPiece get_account_state () const
 
void set_account_state (const StringPiece &value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 

Static Public Member Functions

static DeviceStateNew ()
 

Detailed Description

The state of a user's device, as accessed by the getState and setState methods on device resources.

Constructor & Destructor Documentation

◆ DeviceState() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ DeviceState() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~DeviceState()

google_androidenterprise_api::DeviceState::~DeviceState ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_account_state()

void google_androidenterprise_api::DeviceState::clear_account_state ( )
inline

Clears the 'accountState' attribute.

◆ clear_kind()

void google_androidenterprise_api::DeviceState::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ get_account_state()

const StringPiece google_androidenterprise_api::DeviceState::get_account_state ( ) const
inline

Get the value of the 'accountState' attribute.

◆ get_kind()

const StringPiece google_androidenterprise_api::DeviceState::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_androidenterprise_api::DeviceState

◆ has_account_state()

bool google_androidenterprise_api::DeviceState::has_account_state ( ) const
inline

Determine if the 'accountState' attribute was set.

Returns
true if the 'accountState' attribute was set.

◆ has_kind()

bool google_androidenterprise_api::DeviceState::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ New()

DeviceState * google_androidenterprise_api::DeviceState::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_account_state()

void google_androidenterprise_api::DeviceState::set_account_state ( const StringPiece &  value)
inline

Change the 'accountState' attribute.

The state of the Google account on the device. "enabled" indicates that the Google account on the device can be used to access Google services (including Google Play), while "disabled" means that it cannot. A new device is initially in the "disabled" state.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_androidenterprise_api::DeviceState::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

Parameters
[in]valueThe new value.

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