Data.Cloud.AmazonAPI.TAmazonStorageService.SetBucketRequestPayment
[–] Properties | |
---|---|
Type: function | |
Visibility: public | |
Source: Data.Cloud.AmazonAPI.pas Data.Cloud.AmazonAPI.hpp
| |
Unit: Data.Cloud.AmazonAPI | |
Parent: TAmazonStorageService |
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());
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. |