youtube  v3
Public Member Functions | Static Public Member Functions | List of all members
google_youtube_api::Sponsor Class Reference

#include <sponsor.h>

Inheritance diagram for google_youtube_api::Sponsor:

Public Member Functions

 Sponsor (const Json::Value &storage)
 
 Sponsor (Json::Value *storage)
 
virtual ~Sponsor ()
 
const StringPiece GetTypeName () const
 
bool has_etag () const
 
void clear_etag ()
 
const StringPiece get_etag () const
 
void set_etag (const StringPiece &value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_snippet () const
 
void clear_snippet ()
 
const SponsorSnippet get_snippet () const
 
SponsorSnippet mutable_snippet ()
 

Static Public Member Functions

static SponsorNew ()
 

Detailed Description

A sponsor resource represents a sponsor for a YouTube channel. A sponsor provides recurring monetary support to a creator and receives special benefits.

Constructor & Destructor Documentation

◆ Sponsor() [1/2]

google_youtube_api::Sponsor::Sponsor ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ Sponsor() [2/2]

google_youtube_api::Sponsor::Sponsor ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~Sponsor()

google_youtube_api::Sponsor::~Sponsor ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_etag()

void google_youtube_api::Sponsor::clear_etag ( )
inline

Clears the 'etag' attribute.

◆ clear_kind()

void google_youtube_api::Sponsor::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_snippet()

void google_youtube_api::Sponsor::clear_snippet ( )
inline

Clears the 'snippet' attribute.

◆ get_etag()

const StringPiece google_youtube_api::Sponsor::get_etag ( ) const
inline

Get the value of the 'etag' attribute.

◆ get_kind()

const StringPiece google_youtube_api::Sponsor::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_snippet()

const SponsorSnippet google_youtube_api::Sponsor::get_snippet ( ) const

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

◆ GetTypeName()

const StringPiece google_youtube_api::Sponsor::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_youtube_api::Sponsor

◆ has_etag()

bool google_youtube_api::Sponsor::has_etag ( ) const
inline

Determine if the 'etag' attribute was set.

Returns
true if the 'etag' attribute was set.

◆ has_kind()

bool google_youtube_api::Sponsor::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_snippet()

bool google_youtube_api::Sponsor::has_snippet ( ) const
inline

Determine if the 'snippet' attribute was set.

Returns
true if the 'snippet' attribute was set.

◆ mutable_snippet()

SponsorSnippet google_youtube_api::Sponsor::mutable_snippet ( )

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

The snippet object contains basic details about the sponsor.

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

◆ New()

Sponsor * google_youtube_api::Sponsor::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_etag()

void google_youtube_api::Sponsor::set_etag ( const StringPiece &  value)
inline

Change the 'etag' attribute.

Etag of this resource.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_youtube_api::Sponsor::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

Identifies what kind of resource this is. Value: the fixed string "youtube#sponsor".

Parameters
[in]valueThe new value.

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