Data.Cloud.AmazonAPI.TAmazonStorageService.SetObjectMetadata
Delphi
function SetObjectMetadata(const BucketName, ObjectName: string; Metadata: TStrings; ResponseInfo: TCloudResponseInfo = nil; BucketRegion: TAmazonRegion = amzrNotSpecified): Boolean;
C++
bool __fastcall SetObjectMetadata(const System::UnicodeString BucketName, const System::UnicodeString ObjectName, System::Classes::TStrings* Metadata, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0), TAmazonRegion BucketRegion = (TAmazonRegion)(0x0));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.Cloud.AmazonAPI.pas Data.Cloud.AmazonAPI.hpp |
Data.Cloud.AmazonAPI | TAmazonStorageService |
Description
Sets the metadata on the given object.
SetObjectMetadata performs the copying of an object, with the same source and destination. Any previous metadata on the object will be lost.
The method returns True if the request was successful, False otherwise.
The following table shows the significance of the parameters:
Parameter | Description |
---|---|
|
The name of the bucket the object is in. |
|
The object to set the metadata for. |
|
The metadata to set on the object. |
|
The optional class for storing response info into. |