Scalr\Service\Aws\S3\Handler\BucketHandler::setRequestPayment PHP Method

setRequestPayment() public method

This implementation of the PUT operation uses the requestPayment subresource to set the request payment configuration of a bucket.
public setRequestPayment ( BucketData | string $bucketName, string $requestPayment ) : boolean
$bucketName Scalr\Service\Aws\S3\DataType\BucketData | string A bucket name.
$requestPayment string A XML Document which defines configuration
return boolean Returns true on succes or false if failure.
    public function setRequestPayment($bucketName, $requestPayment)
    {
        if ($bucketName instanceof BucketData) {
            $bucketName = $bucketName->bucketName;
        }
        return $this->getS3()->getApiHandler()->setBucketRequestPayment($bucketName, $requestPayment);
    }