if(!metadata->has_autoclass()){ std::cout <<"The bucket "<< metadata->name()<<" does not have an" <<" autoclass configuration.\n"; return; }
std::cout <<"Autoclass is " <<(metadata->autoclass().enabled ?"enabled":"disabled") <<" for bucket "<< metadata->name()<<". " <<" The bucket's full autoclass configuration is " << metadata->autoclass()<<"\n"; }
std::cout <<"The autoclass configuration for bucket "<< bucket_name <<" was successfully updated."; if(!metadata->has_autoclass()){ std::cout <<" The bucket no longer has an autoclass configuration.\n"; return; } std::cout <<" The new configuration is "<< metadata->autoclass()<<"\n"; }
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The latest version of the `BucketAutoclass` documentation is 2.37.0-rc, with multiple previous versions also available for reference, ranging from 2.36.0 down to 2.11.0."],["`BucketAutoclass` is a configuration setting for a Bucket, allowing users to manage whether autoclass is enabled or disabled, and it can be accessed in the bucket's metadata."],["You can check if a bucket has an autoclass configuration using `metadata-\u003ehas_autoclass()` and view its status through `metadata-\u003eautoclass().enabled`."],["The `BucketAutoclass` configuration can be updated by using `client.PatchBucket` with a `BucketMetadataPatchBuilder` and the `SetAutoclass` method."],["There are multiple constructors for `BucketAutoclass`, allowing for different parameter sets such as `bool`, `std::string`, and `std::chrono::system_clock::time_point` to control autoclass behavior."]]],[]]