classroom  v1
Public Member Functions | Static Public Member Functions | List of all members
google_classroom_api::Link Class Reference

#include <link.h>

Inheritance diagram for google_classroom_api::Link:

Public Member Functions

 Link (const Json::Value &storage)
 
 Link (Json::Value *storage)
 
virtual ~Link ()
 
const StringPiece GetTypeName () const
 
bool has_thumbnail_url () const
 
void clear_thumbnail_url ()
 
const StringPiece get_thumbnail_url () const
 
void set_thumbnail_url (const StringPiece &value)
 
bool has_title () const
 
void clear_title ()
 
const StringPiece get_title () const
 
void set_title (const StringPiece &value)
 
bool has_url () const
 
void clear_url ()
 
const StringPiece get_url () const
 
void set_url (const StringPiece &value)
 

Static Public Member Functions

static LinkNew ()
 

Detailed Description

URL item.

Constructor & Destructor Documentation

◆ Link() [1/2]

google_classroom_api::Link::Link ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ Link() [2/2]

google_classroom_api::Link::Link ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~Link()

google_classroom_api::Link::~Link ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_thumbnail_url()

void google_classroom_api::Link::clear_thumbnail_url ( )
inline

Clears the 'thumbnailUrl' attribute.

◆ clear_title()

void google_classroom_api::Link::clear_title ( )
inline

Clears the 'title' attribute.

◆ clear_url()

void google_classroom_api::Link::clear_url ( )
inline

Clears the 'url' attribute.

◆ get_thumbnail_url()

const StringPiece google_classroom_api::Link::get_thumbnail_url ( ) const
inline

Get the value of the 'thumbnailUrl' attribute.

◆ get_title()

const StringPiece google_classroom_api::Link::get_title ( ) const
inline

Get the value of the 'title' attribute.

◆ get_url()

const StringPiece google_classroom_api::Link::get_url ( ) const
inline

Get the value of the 'url' attribute.

◆ GetTypeName()

const StringPiece google_classroom_api::Link::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_classroom_api::Link

◆ has_thumbnail_url()

bool google_classroom_api::Link::has_thumbnail_url ( ) const
inline

Determine if the 'thumbnailUrl' attribute was set.

Returns
true if the 'thumbnailUrl' attribute was set.

◆ has_title()

bool google_classroom_api::Link::has_title ( ) const
inline

Determine if the 'title' attribute was set.

Returns
true if the 'title' attribute was set.

◆ has_url()

bool google_classroom_api::Link::has_url ( ) const
inline

Determine if the 'url' attribute was set.

Returns
true if the 'url' attribute was set.

◆ New()

Link * google_classroom_api::Link::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_thumbnail_url()

void google_classroom_api::Link::set_thumbnail_url ( const StringPiece &  value)
inline

Change the 'thumbnailUrl' attribute.

URL of a thumbnail image of the target URL.

Read-only.

Parameters
[in]valueThe new value.

◆ set_title()

void google_classroom_api::Link::set_title ( const StringPiece &  value)
inline

Change the 'title' attribute.

Title of the target of the URL.

Read-only.

Parameters
[in]valueThe new value.

◆ set_url()

void google_classroom_api::Link::set_url ( const StringPiece &  value)
inline

Change the 'url' attribute.

URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters.

Parameters
[in]valueThe new value.

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