storage  v1
Classes | Public Member Functions | Static Public Member Functions | List of all members
google_storage_api::Bucket Class Reference

#include <bucket.h>

Inheritance diagram for google_storage_api::Bucket:

Classes

class  BucketBilling
 
class  BucketCors
 
class  BucketEncryption
 
class  BucketIamConfiguration
 
class  BucketLifecycle
 
class  BucketLogging
 
class  BucketOwner
 
class  BucketRetentionPolicy
 
class  BucketVersioning
 
class  BucketWebsite
 

Public Member Functions

 Bucket (const Json::Value &storage)
 
 Bucket (Json::Value *storage)
 
virtual ~Bucket ()
 
const StringPiece GetTypeName () const
 
bool has_acl () const
 
void clear_acl ()
 
const client::JsonCppArray< BucketAccessControlget_acl () const
 
client::JsonCppArray< BucketAccessControlmutable_acl ()
 
bool has_billing () const
 
void clear_billing ()
 
const BucketBilling get_billing () const
 
BucketBilling mutable_billing ()
 
bool has_cors () const
 
void clear_cors ()
 
const client::JsonCppArray< BucketCorsget_cors () const
 
client::JsonCppArray< BucketCorsmutable_cors ()
 
bool has_default_event_based_hold () const
 
void clear_default_event_based_hold ()
 
bool get_default_event_based_hold () const
 
void set_default_event_based_hold (bool value)
 
bool has_default_object_acl () const
 
void clear_default_object_acl ()
 
const client::JsonCppArray< ObjectAccessControlget_default_object_acl () const
 
client::JsonCppArray< ObjectAccessControlmutable_defaultObjectAcl ()
 
bool has_encryption () const
 
void clear_encryption ()
 
const BucketEncryption get_encryption () const
 
BucketEncryption mutable_encryption ()
 
bool has_etag () const
 
void clear_etag ()
 
const StringPiece get_etag () const
 
void set_etag (const StringPiece &value)
 
bool has_iam_configuration () const
 
void clear_iam_configuration ()
 
const BucketIamConfiguration get_iam_configuration () const
 
BucketIamConfiguration mutable_iamConfiguration ()
 
bool has_id () const
 
void clear_id ()
 
const StringPiece get_id () const
 
void set_id (const StringPiece &value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_labels () const
 
void clear_labels ()
 
const client::JsonCppAssociativeArray< string > get_labels () const
 
client::JsonCppAssociativeArray< string > mutable_labels ()
 
bool has_lifecycle () const
 
void clear_lifecycle ()
 
const BucketLifecycle get_lifecycle () const
 
BucketLifecycle mutable_lifecycle ()
 
bool has_location () const
 
void clear_location ()
 
const StringPiece get_location () const
 
void set_location (const StringPiece &value)
 
bool has_location_type () const
 
void clear_location_type ()
 
const StringPiece get_location_type () const
 
void set_location_type (const StringPiece &value)
 
bool has_logging () const
 
void clear_logging ()
 
const BucketLogging get_logging () const
 
BucketLogging mutable_logging ()
 
bool has_metageneration () const
 
void clear_metageneration ()
 
int64 get_metageneration () const
 
void set_metageneration (int64 value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_owner () const
 
void clear_owner ()
 
const BucketOwner get_owner () const
 
BucketOwner mutable_owner ()
 
bool has_project_number () const
 
void clear_project_number ()
 
uint64 get_project_number () const
 
void set_project_number (uint64 value)
 
bool has_retention_policy () const
 
void clear_retention_policy ()
 
const BucketRetentionPolicy get_retention_policy () const
 
BucketRetentionPolicy mutable_retentionPolicy ()
 
bool has_self_link () const
 
void clear_self_link ()
 
const StringPiece get_self_link () const
 
void set_self_link (const StringPiece &value)
 
bool has_storage_class () const
 
void clear_storage_class ()
 
const StringPiece get_storage_class () const
 
void set_storage_class (const StringPiece &value)
 
bool has_time_created () const
 
void clear_time_created ()
 
client::DateTime get_time_created () const
 
void set_time_created (client::DateTime value)
 
bool has_updated () const
 
void clear_updated ()
 
client::DateTime get_updated () const
 
void set_updated (client::DateTime value)
 
bool has_versioning () const
 
void clear_versioning ()
 
const BucketVersioning get_versioning () const
 
BucketVersioning mutable_versioning ()
 
bool has_website () const
 
void clear_website ()
 
const BucketWebsite get_website () const
 
BucketWebsite mutable_website ()
 
bool has_zone_affinity () const
 
void clear_zone_affinity ()
 
const client::JsonCppArray< string > get_zone_affinity () const
 
client::JsonCppArray< string > mutable_zone_affinity ()
 

Static Public Member Functions

static BucketNew ()
 

Detailed Description

A bucket.

Constructor & Destructor Documentation

◆ Bucket() [1/2]

google_storage_api::Bucket::Bucket ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ Bucket() [2/2]

google_storage_api::Bucket::Bucket ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~Bucket()

google_storage_api::Bucket::~Bucket ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_acl()

void google_storage_api::Bucket::clear_acl ( )
inline

Clears the 'acl' attribute.

◆ clear_billing()

void google_storage_api::Bucket::clear_billing ( )
inline

Clears the 'billing' attribute.

◆ clear_cors()

void google_storage_api::Bucket::clear_cors ( )
inline

Clears the 'cors' attribute.

◆ clear_default_event_based_hold()

void google_storage_api::Bucket::clear_default_event_based_hold ( )
inline

Clears the 'defaultEventBasedHold' attribute.

◆ clear_default_object_acl()

void google_storage_api::Bucket::clear_default_object_acl ( )
inline

Clears the 'defaultObjectAcl' attribute.

◆ clear_encryption()

void google_storage_api::Bucket::clear_encryption ( )
inline

Clears the 'encryption' attribute.

◆ clear_etag()

void google_storage_api::Bucket::clear_etag ( )
inline

Clears the 'etag' attribute.

◆ clear_iam_configuration()

void google_storage_api::Bucket::clear_iam_configuration ( )
inline

Clears the 'iamConfiguration' attribute.

◆ clear_id()

void google_storage_api::Bucket::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_kind()

void google_storage_api::Bucket::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_labels()

void google_storage_api::Bucket::clear_labels ( )
inline

Clears the 'labels' attribute.

◆ clear_lifecycle()

void google_storage_api::Bucket::clear_lifecycle ( )
inline

Clears the 'lifecycle' attribute.

◆ clear_location()

void google_storage_api::Bucket::clear_location ( )
inline

Clears the 'location' attribute.

◆ clear_location_type()

void google_storage_api::Bucket::clear_location_type ( )
inline

Clears the 'locationType' attribute.

◆ clear_logging()

void google_storage_api::Bucket::clear_logging ( )
inline

Clears the 'logging' attribute.

◆ clear_metageneration()

void google_storage_api::Bucket::clear_metageneration ( )
inline

Clears the 'metageneration' attribute.

◆ clear_name()

void google_storage_api::Bucket::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_owner()

void google_storage_api::Bucket::clear_owner ( )
inline

Clears the 'owner' attribute.

◆ clear_project_number()

void google_storage_api::Bucket::clear_project_number ( )
inline

Clears the 'projectNumber' attribute.

◆ clear_retention_policy()

void google_storage_api::Bucket::clear_retention_policy ( )
inline

Clears the 'retentionPolicy' attribute.

◆ clear_self_link()

void google_storage_api::Bucket::clear_self_link ( )
inline

Clears the 'selfLink' attribute.

◆ clear_storage_class()

void google_storage_api::Bucket::clear_storage_class ( )
inline

Clears the 'storageClass' attribute.

◆ clear_time_created()

void google_storage_api::Bucket::clear_time_created ( )
inline

Clears the 'timeCreated' attribute.

◆ clear_updated()

void google_storage_api::Bucket::clear_updated ( )
inline

Clears the 'updated' attribute.

◆ clear_versioning()

void google_storage_api::Bucket::clear_versioning ( )
inline

Clears the 'versioning' attribute.

◆ clear_website()

void google_storage_api::Bucket::clear_website ( )
inline

Clears the 'website' attribute.

◆ clear_zone_affinity()

void google_storage_api::Bucket::clear_zone_affinity ( )
inline

Clears the 'zone_affinity' attribute.

◆ get_acl()

const client::JsonCppArray<BucketAccessControl > google_storage_api::Bucket::get_acl ( ) const

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

◆ get_billing()

const BucketBilling google_storage_api::Bucket::get_billing ( ) const
inline

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

◆ get_cors()

const client::JsonCppArray<BucketCors > google_storage_api::Bucket::get_cors ( ) const
inline

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

◆ get_default_event_based_hold()

bool google_storage_api::Bucket::get_default_event_based_hold ( ) const
inline

Get the value of the 'defaultEventBasedHold' attribute.

◆ get_default_object_acl()

const client::JsonCppArray<ObjectAccessControl > google_storage_api::Bucket::get_default_object_acl ( ) const

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

◆ get_encryption()

const BucketEncryption google_storage_api::Bucket::get_encryption ( ) const
inline

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

◆ get_etag()

const StringPiece google_storage_api::Bucket::get_etag ( ) const
inline

Get the value of the 'etag' attribute.

◆ get_iam_configuration()

const BucketIamConfiguration google_storage_api::Bucket::get_iam_configuration ( ) const
inline

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

◆ get_id()

const StringPiece google_storage_api::Bucket::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_kind()

const StringPiece google_storage_api::Bucket::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_labels()

const client::JsonCppAssociativeArray<string > google_storage_api::Bucket::get_labels ( ) const
inline

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

◆ get_lifecycle()

const BucketLifecycle google_storage_api::Bucket::get_lifecycle ( ) const
inline

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

◆ get_location()

const StringPiece google_storage_api::Bucket::get_location ( ) const
inline

Get the value of the 'location' attribute.

◆ get_location_type()

const StringPiece google_storage_api::Bucket::get_location_type ( ) const
inline

Get the value of the 'locationType' attribute.

◆ get_logging()

const BucketLogging google_storage_api::Bucket::get_logging ( ) const
inline

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

◆ get_metageneration()

int64 google_storage_api::Bucket::get_metageneration ( ) const
inline

Get the value of the 'metageneration' attribute.

◆ get_name()

const StringPiece google_storage_api::Bucket::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_owner()

const BucketOwner google_storage_api::Bucket::get_owner ( ) const
inline

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

◆ get_project_number()

uint64 google_storage_api::Bucket::get_project_number ( ) const
inline

Get the value of the 'projectNumber' attribute.

◆ get_retention_policy()

const BucketRetentionPolicy google_storage_api::Bucket::get_retention_policy ( ) const
inline

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

◆ get_self_link()

const StringPiece google_storage_api::Bucket::get_self_link ( ) const
inline

Get the value of the 'selfLink' attribute.

◆ get_storage_class()

const StringPiece google_storage_api::Bucket::get_storage_class ( ) const
inline

Get the value of the 'storageClass' attribute.

◆ get_time_created()

client::DateTime google_storage_api::Bucket::get_time_created ( ) const
inline

Get the value of the 'timeCreated' attribute.

◆ get_updated()

client::DateTime google_storage_api::Bucket::get_updated ( ) const
inline

Get the value of the 'updated' attribute.

◆ get_versioning()

const BucketVersioning google_storage_api::Bucket::get_versioning ( ) const
inline

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

◆ get_website()

const BucketWebsite google_storage_api::Bucket::get_website ( ) const
inline

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

◆ get_zone_affinity()

const client::JsonCppArray<string > google_storage_api::Bucket::get_zone_affinity ( ) const
inline

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

◆ GetTypeName()

const StringPiece google_storage_api::Bucket::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_storage_api::Bucket

◆ has_acl()

bool google_storage_api::Bucket::has_acl ( ) const
inline

Determine if the 'acl' attribute was set.

Returns
true if the 'acl' attribute was set.

◆ has_billing()

bool google_storage_api::Bucket::has_billing ( ) const
inline

Determine if the 'billing' attribute was set.

Returns
true if the 'billing' attribute was set.

◆ has_cors()

bool google_storage_api::Bucket::has_cors ( ) const
inline

Determine if the 'cors' attribute was set.

Returns
true if the 'cors' attribute was set.

◆ has_default_event_based_hold()

bool google_storage_api::Bucket::has_default_event_based_hold ( ) const
inline

Determine if the 'defaultEventBasedHold' attribute was set.

Returns
true if the 'defaultEventBasedHold' attribute was set.

◆ has_default_object_acl()

bool google_storage_api::Bucket::has_default_object_acl ( ) const
inline

Determine if the 'defaultObjectAcl' attribute was set.

Returns
true if the 'defaultObjectAcl' attribute was set.

◆ has_encryption()

bool google_storage_api::Bucket::has_encryption ( ) const
inline

Determine if the 'encryption' attribute was set.

Returns
true if the 'encryption' attribute was set.

◆ has_etag()

bool google_storage_api::Bucket::has_etag ( ) const
inline

Determine if the 'etag' attribute was set.

Returns
true if the 'etag' attribute was set.

◆ has_iam_configuration()

bool google_storage_api::Bucket::has_iam_configuration ( ) const
inline

Determine if the 'iamConfiguration' attribute was set.

Returns
true if the 'iamConfiguration' attribute was set.

◆ has_id()

bool google_storage_api::Bucket::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_kind()

bool google_storage_api::Bucket::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_labels()

bool google_storage_api::Bucket::has_labels ( ) const
inline

Determine if the 'labels' attribute was set.

Returns
true if the 'labels' attribute was set.

◆ has_lifecycle()

bool google_storage_api::Bucket::has_lifecycle ( ) const
inline

Determine if the 'lifecycle' attribute was set.

Returns
true if the 'lifecycle' attribute was set.

◆ has_location()

bool google_storage_api::Bucket::has_location ( ) const
inline

Determine if the 'location' attribute was set.

Returns
true if the 'location' attribute was set.

◆ has_location_type()

bool google_storage_api::Bucket::has_location_type ( ) const
inline

Determine if the 'locationType' attribute was set.

Returns
true if the 'locationType' attribute was set.

◆ has_logging()

bool google_storage_api::Bucket::has_logging ( ) const
inline

Determine if the 'logging' attribute was set.

Returns
true if the 'logging' attribute was set.

◆ has_metageneration()

bool google_storage_api::Bucket::has_metageneration ( ) const
inline

Determine if the 'metageneration' attribute was set.

Returns
true if the 'metageneration' attribute was set.

◆ has_name()

bool google_storage_api::Bucket::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_owner()

bool google_storage_api::Bucket::has_owner ( ) const
inline

Determine if the 'owner' attribute was set.

Returns
true if the 'owner' attribute was set.

◆ has_project_number()

bool google_storage_api::Bucket::has_project_number ( ) const
inline

Determine if the 'projectNumber' attribute was set.

Returns
true if the 'projectNumber' attribute was set.

◆ has_retention_policy()

bool google_storage_api::Bucket::has_retention_policy ( ) const
inline

Determine if the 'retentionPolicy' attribute was set.

Returns
true if the 'retentionPolicy' attribute was set.

◆ has_self_link()

bool google_storage_api::Bucket::has_self_link ( ) const
inline

Determine if the 'selfLink' attribute was set.

Returns
true if the 'selfLink' attribute was set.

◆ has_storage_class()

bool google_storage_api::Bucket::has_storage_class ( ) const
inline

Determine if the 'storageClass' attribute was set.

Returns
true if the 'storageClass' attribute was set.

◆ has_time_created()

bool google_storage_api::Bucket::has_time_created ( ) const
inline

Determine if the 'timeCreated' attribute was set.

Returns
true if the 'timeCreated' attribute was set.

◆ has_updated()

bool google_storage_api::Bucket::has_updated ( ) const
inline

Determine if the 'updated' attribute was set.

Returns
true if the 'updated' attribute was set.

◆ has_versioning()

bool google_storage_api::Bucket::has_versioning ( ) const
inline

Determine if the 'versioning' attribute was set.

Returns
true if the 'versioning' attribute was set.

◆ has_website()

bool google_storage_api::Bucket::has_website ( ) const
inline

Determine if the 'website' attribute was set.

Returns
true if the 'website' attribute was set.

◆ has_zone_affinity()

bool google_storage_api::Bucket::has_zone_affinity ( ) const
inline

Determine if the 'zone_affinity' attribute was set.

Returns
true if the 'zone_affinity' attribute was set.

◆ mutable_acl()

client::JsonCppArray<BucketAccessControl > google_storage_api::Bucket::mutable_acl ( )

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

Access controls on the bucket.

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

◆ mutable_billing()

BucketBilling google_storage_api::Bucket::mutable_billing ( )
inline

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

The bucket's billing configuration.

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

◆ mutable_cors()

client::JsonCppArray<BucketCors > google_storage_api::Bucket::mutable_cors ( )
inline

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

The bucket's Cross-Origin Resource Sharing (CORS) configuration.

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

◆ mutable_defaultObjectAcl()

client::JsonCppArray<ObjectAccessControl > google_storage_api::Bucket::mutable_defaultObjectAcl ( )

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

Default access controls to apply to new objects when no ACL is provided.

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

◆ mutable_encryption()

BucketEncryption google_storage_api::Bucket::mutable_encryption ( )
inline

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

Encryption configuration for a bucket.

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

◆ mutable_iamConfiguration()

BucketIamConfiguration google_storage_api::Bucket::mutable_iamConfiguration ( )
inline

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

The bucket's IAM configuration.

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

◆ mutable_labels()

client::JsonCppAssociativeArray<string > google_storage_api::Bucket::mutable_labels ( )
inline

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

User-provided labels, in key/value pairs.

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

◆ mutable_lifecycle()

BucketLifecycle google_storage_api::Bucket::mutable_lifecycle ( )
inline

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

The bucket's lifecycle configuration. See lifecycle management for more information.

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

◆ mutable_logging()

BucketLogging google_storage_api::Bucket::mutable_logging ( )
inline

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

The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.

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

◆ mutable_owner()

BucketOwner google_storage_api::Bucket::mutable_owner ( )
inline

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

The owner of the bucket. This is always the project team's owner group.

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

◆ mutable_retentionPolicy()

BucketRetentionPolicy google_storage_api::Bucket::mutable_retentionPolicy ( )
inline

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

The bucket's retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.

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

◆ mutable_versioning()

BucketVersioning google_storage_api::Bucket::mutable_versioning ( )
inline

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

The bucket's versioning configuration.

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

◆ mutable_website()

BucketWebsite google_storage_api::Bucket::mutable_website ( )
inline

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

The bucket's website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information.

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

◆ mutable_zone_affinity()

client::JsonCppArray<string > google_storage_api::Bucket::mutable_zone_affinity ( )
inline

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

The zone or zones from which the bucket is intended to use zonal quota. Requests for data from outside the specified affinities are still allowed but won’t be able to use zonal quota. The zone or zones need to be within the bucket location otherwise the requests will fail with a 400 Bad Request response.

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

◆ New()

Bucket * google_storage_api::Bucket::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_default_event_based_hold()

void google_storage_api::Bucket::set_default_event_based_hold ( bool  value)
inline

Change the 'defaultEventBasedHold' attribute.

The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold's release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event- based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event- based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.

Parameters
[in]valueThe new value.

◆ set_etag()

void google_storage_api::Bucket::set_etag ( const StringPiece &  value)
inline

Change the 'etag' attribute.

HTTP 1.1 Entity tag for the bucket.

Parameters
[in]valueThe new value.

◆ set_id()

void google_storage_api::Bucket::set_id ( const StringPiece &  value)
inline

Change the 'id' attribute.

The ID of the bucket. For buckets, the id and name properties are the same.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_storage_api::Bucket::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

The kind of item this is. For buckets, this is always storage::bucket.

Parameters
[in]valueThe new value.

◆ set_location()

void google_storage_api::Bucket::set_location ( const StringPiece &  value)
inline

Change the 'location' attribute.

The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the developer's guide for the authoritative list.

Parameters
[in]valueThe new value.

◆ set_location_type()

void google_storage_api::Bucket::set_location_type ( const StringPiece &  value)
inline

Change the 'locationType' attribute.

The type of the bucket location.

Parameters
[in]valueThe new value.

◆ set_metageneration()

void google_storage_api::Bucket::set_metageneration ( int64  value)
inline

Change the 'metageneration' attribute.

The metadata generation of this bucket.

Parameters
[in]valueThe new value.

◆ set_name()

void google_storage_api::Bucket::set_name ( const StringPiece &  value)
inline

Change the 'name' attribute.

The name of the bucket.

Parameters
[in]valueThe new value.

◆ set_project_number()

void google_storage_api::Bucket::set_project_number ( uint64  value)
inline

Change the 'projectNumber' attribute.

The project number of the project the bucket belongs to.

Parameters
[in]valueThe new value.

◆ set_self_link()

void google_storage_api::Bucket::set_self_link ( const StringPiece &  value)
inline

Change the 'selfLink' attribute.

The URI of this bucket.

Parameters
[in]valueThe new value.

◆ set_storage_class()

void google_storage_api::Bucket::set_storage_class ( const StringPiece &  value)
inline

Change the 'storageClass' attribute.

The bucket's default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see storage classes.

Parameters
[in]valueThe new value.

◆ set_time_created()

void google_storage_api::Bucket::set_time_created ( client::DateTime  value)
inline

Change the 'timeCreated' attribute.

The creation time of the bucket in RFC 3339 format.

Parameters
[in]valueThe new value.

◆ set_updated()

void google_storage_api::Bucket::set_updated ( client::DateTime  value)
inline

Change the 'updated' attribute.

The modification time of the bucket in RFC 3339 format.

Parameters
[in]valueThe new value.

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