Data.Cloud.AmazonAPI.TAmazonStorageService.SetBucketRequestPayment
Delphi
function SetBucketRequestPayment(const BucketName: string; Payer: TAmazonPayer;
ResponseInfo: TCloudResponseInfo = nil;
const BucketRegion: TAmazonRegion = amzrNotSpecified): Boolean;
C++
bool __fastcall SetBucketRequestPayment(const System::UnicodeString BucketName, TAmazonPayer Payer, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0), const TAmazonRegion BucketRegion = System::UnicodeString());
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 |
|---|---|
|
|
The name of the bucket to set the payer for. |
|
|
The user who pays for bucket activity (ampBucketOwner, ampRequester). |
|
|
The optional class for storing response info into. |