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

#include <attachment.h>

Inheritance diagram for google_classroom_api::Attachment:

Public Member Functions

 Attachment (const Json::Value &storage)
 
 Attachment (Json::Value *storage)
 
virtual ~Attachment ()
 
const StringPiece GetTypeName () const
 
bool has_drive_file () const
 
void clear_drive_file ()
 
const DriveFile get_drive_file () const
 
DriveFile 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_you_tube_video () const
 
void clear_you_tube_video ()
 
const YouTubeVideo get_you_tube_video () const
 
YouTubeVideo mutable_youTubeVideo ()
 

Static Public Member Functions

static AttachmentNew ()
 

Detailed Description

Attachment added to student assignment work.

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

Constructor & Destructor Documentation

◆ Attachment() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ Attachment() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~Attachment()

google_classroom_api::Attachment::~Attachment ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_drive_file()

void google_classroom_api::Attachment::clear_drive_file ( )
inline

Clears the 'driveFile' attribute.

◆ clear_form()

void google_classroom_api::Attachment::clear_form ( )
inline

Clears the 'form' attribute.

◆ clear_link()

void google_classroom_api::Attachment::clear_link ( )
inline

Clears the 'link' attribute.

◆ clear_you_tube_video()

void google_classroom_api::Attachment::clear_you_tube_video ( )
inline

Clears the 'youTubeVideo' attribute.

◆ get_drive_file()

const DriveFile google_classroom_api::Attachment::get_drive_file ( ) const

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

◆ get_form()

const Form google_classroom_api::Attachment::get_form ( ) const

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

◆ get_link()

const Link google_classroom_api::Attachment::get_link ( ) const

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

◆ get_you_tube_video()

const YouTubeVideo google_classroom_api::Attachment::get_you_tube_video ( ) const

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

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_classroom_api::Attachment

◆ has_drive_file()

bool google_classroom_api::Attachment::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::Attachment::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::Attachment::has_link ( ) const
inline

Determine if the 'link' attribute was set.

Returns
true if the 'link' attribute was set.

◆ has_you_tube_video()

bool google_classroom_api::Attachment::has_you_tube_video ( ) const
inline

Determine if the 'youTubeVideo' attribute was set.

Returns
true if the 'youTubeVideo' attribute was set.

◆ mutable_driveFile()

DriveFile google_classroom_api::Attachment::mutable_driveFile ( )

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

Google Drive file attachment.

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

◆ mutable_form()

Form google_classroom_api::Attachment::mutable_form ( )

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

Google Forms attachment.

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

◆ mutable_link()

Link google_classroom_api::Attachment::mutable_link ( )

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

Link attachment.

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

◆ mutable_youTubeVideo()

YouTubeVideo google_classroom_api::Attachment::mutable_youTubeVideo ( )

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

Youtube video attachment.

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

◆ New()

Attachment * google_classroom_api::Attachment::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: