Data.Cloud.AmazonAPI.TAmazonStorageService.SetObjectMetadata

From RAD Studio API Documentation
Jump to: navigation, search

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

BucketName

The name of the bucket the object is in.

ObjectName

The object to set the metadata for.

Metadata

The metadata to set on the object.

ResponseInfo

The optional class for storing response info into.

See Also