Data.Cloud.AmazonAPI.TAmazonStorageService.SetBucketRequestPayment

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SetBucketRequestPayment(const BucketName: string; Payer: TAmazonPayer;  ResponseInfo: TCloudResponseInfo = nil; BucketRegion: TAmazonRegion = amzrNotSpecified): Boolean;

C++

bool __fastcall SetBucketRequestPayment(const System::UnicodeString BucketName, TAmazonPayer Payer, 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 who pays for bucket requests.

SetBucketRequestPayment sets who pays for bucket requests.

If anything other than ampBucketOwner or ampRequester is passed as the Payer, the request fails.

The method returns True if successful, and False otherwise.

The following table shows the significance of the parameters:

Parameter Description

BucketName

The name of the bucket to set the payer for.

Payer

The user who pays for bucket activity (ampBucketOwner, ampRequester).

ResponseInfo

The optional class for storing response info into.

See Also