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

#include <keyed_app_state.h>

Inheritance diagram for google_androidenterprise_api::KeyedAppState:

Public Member Functions

 KeyedAppState (const Json::Value &storage)
 
 KeyedAppState (Json::Value *storage)
 
virtual ~KeyedAppState ()
 
const StringPiece GetTypeName () const
 
bool has_data () const
 
void clear_data ()
 
const StringPiece get_data () const
 
void set_data (const StringPiece &value)
 
bool has_key () const
 
void clear_key ()
 
const StringPiece get_key () const
 
void set_key (const StringPiece &value)
 
bool has_message () const
 
void clear_message ()
 
const StringPiece get_message () const
 
void set_message (const StringPiece &value)
 
bool has_severity () const
 
void clear_severity ()
 
const StringPiece get_severity () const
 
void set_severity (const StringPiece &value)
 
bool has_state_timestamp_millis () const
 
void clear_state_timestamp_millis ()
 
int64 get_state_timestamp_millis () const
 
void set_state_timestamp_millis (int64 value)
 

Static Public Member Functions

static KeyedAppStateNew ()
 

Detailed Description

Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data.

Constructor & Destructor Documentation

◆ KeyedAppState() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ KeyedAppState() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~KeyedAppState()

google_androidenterprise_api::KeyedAppState::~KeyedAppState ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_data()

void google_androidenterprise_api::KeyedAppState::clear_data ( )
inline

Clears the 'data' attribute.

◆ clear_key()

void google_androidenterprise_api::KeyedAppState::clear_key ( )
inline

Clears the 'key' attribute.

◆ clear_message()

void google_androidenterprise_api::KeyedAppState::clear_message ( )
inline

Clears the 'message' attribute.

◆ clear_severity()

void google_androidenterprise_api::KeyedAppState::clear_severity ( )
inline

Clears the 'severity' attribute.

◆ clear_state_timestamp_millis()

void google_androidenterprise_api::KeyedAppState::clear_state_timestamp_millis ( )
inline

Clears the 'stateTimestampMillis' attribute.

◆ get_data()

const StringPiece google_androidenterprise_api::KeyedAppState::get_data ( ) const
inline

Get the value of the 'data' attribute.

◆ get_key()

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

Get the value of the 'key' attribute.

◆ get_message()

const StringPiece google_androidenterprise_api::KeyedAppState::get_message ( ) const
inline

Get the value of the 'message' attribute.

◆ get_severity()

const StringPiece google_androidenterprise_api::KeyedAppState::get_severity ( ) const
inline

Get the value of the 'severity' attribute.

◆ get_state_timestamp_millis()

int64 google_androidenterprise_api::KeyedAppState::get_state_timestamp_millis ( ) const
inline

Get the value of the 'stateTimestampMillis' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_androidenterprise_api::KeyedAppState

◆ has_data()

bool google_androidenterprise_api::KeyedAppState::has_data ( ) const
inline

Determine if the 'data' attribute was set.

Returns
true if the 'data' attribute was set.

◆ has_key()

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

Determine if the 'key' attribute was set.

Returns
true if the 'key' attribute was set.

◆ has_message()

bool google_androidenterprise_api::KeyedAppState::has_message ( ) const
inline

Determine if the 'message' attribute was set.

Returns
true if the 'message' attribute was set.

◆ has_severity()

bool google_androidenterprise_api::KeyedAppState::has_severity ( ) const
inline

Determine if the 'severity' attribute was set.

Returns
true if the 'severity' attribute was set.

◆ has_state_timestamp_millis()

bool google_androidenterprise_api::KeyedAppState::has_state_timestamp_millis ( ) const
inline

Determine if the 'stateTimestampMillis' attribute was set.

Returns
true if the 'stateTimestampMillis' attribute was set.

◆ New()

KeyedAppState * google_androidenterprise_api::KeyedAppState::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_data()

void google_androidenterprise_api::KeyedAppState::set_data ( const StringPiece &  value)
inline

Change the 'data' attribute.

Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it.

Parameters
[in]valueThe new value.

◆ set_key()

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

Change the 'key' attribute.

Key indicating what the app is providing a state for. The content of the key is set by the app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present.

Parameters
[in]valueThe new value.

◆ set_message()

void google_androidenterprise_api::KeyedAppState::set_message ( const StringPiece &  value)
inline

Change the 'message' attribute.

Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it.

Parameters
[in]valueThe new value.

◆ set_severity()

void google_androidenterprise_api::KeyedAppState::set_severity ( const StringPiece &  value)
inline

Change the 'severity' attribute.

Severity of the app state. This field will always be present.

Parameters
[in]valueThe new value.

◆ set_state_timestamp_millis()

void google_androidenterprise_api::KeyedAppState::set_state_timestamp_millis ( int64  value)
inline

Change the 'stateTimestampMillis' attribute.

Timestamp of when the app set the state in milliseconds since epoch. This field will always be present.

Parameters
[in]valueThe new value.

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