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

#include <material.h>

Inheritance diagram for google_classroom_api::Material:

Public Member Functions

 Material (const Json::Value &storage)
 
 Material (Json::Value *storage)
 
virtual ~Material ()
 
const StringPiece GetTypeName () const
 
bool has_drive_file () const
 
void clear_drive_file ()
 
const SharedDriveFile get_drive_file () const
 
SharedDriveFile mutable_driveFile ()
 
bool has_form () const
 
void clear_form ()
 
const Form get_form () const
 
Form mutable_form ()
 
bool has_link () const
 
void clear_link ()
 
const Link get_link () const
 
Link mutable_link ()
 
bool has_youtube_video () const
 
void clear_youtube_video ()
 
const YouTubeVideo get_youtube_video () const
 
YouTubeVideo mutable_youtubeVideo ()
 

Static Public Member Functions

static MaterialNew ()
 

Detailed Description

Material attached to course work.

When creating attachments, setting the form field is not supported.

Constructor & Destructor Documentation

◆ Material() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ Material() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~Material()

google_classroom_api::Material::~Material ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_drive_file()

void google_classroom_api::Material::clear_drive_file ( )
inline

Clears the 'driveFile' attribute.

◆ clear_form()

void google_classroom_api::Material::clear_form ( )
inline

Clears the 'form' attribute.

◆ clear_link()

void google_classroom_api::Material::clear_link ( )
inline

Clears the 'link' attribute.

◆ clear_youtube_video()

void google_classroom_api::Material::clear_youtube_video ( )
inline

Clears the 'youtubeVideo' attribute.

◆ get_drive_file()

const SharedDriveFile google_classroom_api::Material::get_drive_file ( ) const

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

◆ get_form()

const Form google_classroom_api::Material::get_form ( ) const

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

◆ get_link()

const Link google_classroom_api::Material::get_link ( ) const

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

◆ get_youtube_video()

const YouTubeVideo google_classroom_api::Material::get_youtube_video ( ) const

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

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_classroom_api::Material

◆ has_drive_file()

bool google_classroom_api::Material::has_drive_file ( ) const
inline

Determine if the 'driveFile' attribute was set.

Returns
true if the 'driveFile' attribute was set.

◆ has_form()

bool google_classroom_api::Material::has_form ( ) const
inline

Determine if the 'form' attribute was set.

Returns
true if the 'form' attribute was set.

◆ has_link()

bool google_classroom_api::Material::has_link ( ) const
inline

Determine if the 'link' attribute was set.

Returns
true if the 'link' attribute was set.

◆ has_youtube_video()

bool google_classroom_api::Material::has_youtube_video ( ) const
inline

Determine if the 'youtubeVideo' attribute was set.

Returns
true if the 'youtubeVideo' attribute was set.

◆ mutable_driveFile()

SharedDriveFile google_classroom_api::Material::mutable_driveFile ( )

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

Google Drive file material.

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

◆ mutable_form()

Form google_classroom_api::Material::mutable_form ( )

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

Google Forms material.

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

◆ mutable_link()

Link google_classroom_api::Material::mutable_link ( )

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

Link material. On creation, will be upgraded to a more appropriate type if possible, and this will be reflected in the response.

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

◆ mutable_youtubeVideo()

YouTubeVideo google_classroom_api::Material::mutable_youtubeVideo ( )

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

YouTube video material.

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

◆ New()

Material * google_classroom_api::Material::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

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