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

#include <access_policy.h>

Inheritance diagram for google_youtube_api::AccessPolicy:

Public Member Functions

 AccessPolicy (const Json::Value &storage)
 
 AccessPolicy (Json::Value *storage)
 
virtual ~AccessPolicy ()
 
const StringPiece GetTypeName () const
 
bool has_allowed () const
 
void clear_allowed ()
 
bool get_allowed () const
 
void set_allowed (bool value)
 
bool has_exception () const
 
void clear_exception ()
 
const client::JsonCppArray< string > get_exception () const
 
client::JsonCppArray< string > mutable_exception ()
 

Static Public Member Functions

static AccessPolicyNew ()
 

Detailed Description

Rights management policy for YouTube resources.

Constructor & Destructor Documentation

◆ AccessPolicy() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ AccessPolicy() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~AccessPolicy()

google_youtube_api::AccessPolicy::~AccessPolicy ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_allowed()

void google_youtube_api::AccessPolicy::clear_allowed ( )
inline

Clears the 'allowed' attribute.

◆ clear_exception()

void google_youtube_api::AccessPolicy::clear_exception ( )
inline

Clears the 'exception' attribute.

◆ get_allowed()

bool google_youtube_api::AccessPolicy::get_allowed ( ) const
inline

Get the value of the 'allowed' attribute.

◆ get_exception()

const client::JsonCppArray<string > google_youtube_api::AccessPolicy::get_exception ( ) const
inline

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

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_youtube_api::AccessPolicy

◆ has_allowed()

bool google_youtube_api::AccessPolicy::has_allowed ( ) const
inline

Determine if the 'allowed' attribute was set.

Returns
true if the 'allowed' attribute was set.

◆ has_exception()

bool google_youtube_api::AccessPolicy::has_exception ( ) const
inline

Determine if the 'exception' attribute was set.

Returns
true if the 'exception' attribute was set.

◆ mutable_exception()

client::JsonCppArray<string > google_youtube_api::AccessPolicy::mutable_exception ( )
inline

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

A list of region codes that identify countries where the default policy do not apply.

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

◆ New()

AccessPolicy * google_youtube_api::AccessPolicy::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_allowed()

void google_youtube_api::AccessPolicy::set_allowed ( bool  value)
inline

Change the 'allowed' attribute.

The value of allowed indicates whether the access to the policy is allowed or denied by default.

Parameters
[in]valueThe new value.

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