示例#1
0
 /// <summary>
 /// Sets the request payment configuration for a bucket. By default, the bucket owner
 /// pays for downloads from the bucket. This configuration parameter enables the bucket
 /// owner (only) to specify that the person requesting the download will be charged for
 /// the download. Documentation on requester pays buckets can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html
 /// </summary>
 /// <param name="bucketName">A property of PutBucketRequestPaymentRequest used to execute the PutBucketRequestPayment service method.</param>
 /// <param name="requestPaymentConfiguration">A property of PutBucketRequestPaymentRequest used to execute the PutBucketRequestPayment service method.</param>
 /// <param name="cancellationToken">
 ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
 /// </param>
 /// 
 /// <returns>The response from the PutBucketRequestPayment service method, as returned by S3.</returns>
 public Task<PutBucketRequestPaymentResponse> PutBucketRequestPaymentAsync(string bucketName, RequestPaymentConfiguration requestPaymentConfiguration, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
 {
     var request = new PutBucketRequestPaymentRequest();
     request.BucketName = bucketName;
     request.RequestPaymentConfiguration = requestPaymentConfiguration;
     return PutBucketRequestPaymentAsync(request, cancellationToken);
 }
示例#2
0
 /// <summary>
 /// Sets the request payment configuration for a bucket. By default, the bucket owner
 /// pays for downloads from the bucket. This configuration parameter enables the bucket
 /// owner (only) to specify that the person requesting the download will be charged for
 /// the download. Documentation on requester pays buckets can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html
 /// This API is supported only when AWSConfigs.HttpClient is set to AWSConfigs.HttpClientOption.UnityWebRequest, the default value of this configuration option is AWSConfigs.HttpClientOption.UnityWWW
 /// </summary>
 /// <param name="bucketName">A property of PutBucketRequestPaymentRequest used to execute the PutBucketRequestPayment service method.</param>
 /// <param name="requestPaymentConfiguration">A property of PutBucketRequestPaymentRequest used to execute the PutBucketRequestPayment service method.</param>
 /// <param name="callback">An Action delegate that is invoked when the operation completes.</param>
 /// <param name="options">
 ///     A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
 ///     procedure using the AsyncState property.
 /// </param>
 /// 
 /// <returns>The response from the PutBucketRequestPayment service method, as returned by S3.</returns>
 public void PutBucketRequestPaymentAsync(string bucketName, RequestPaymentConfiguration requestPaymentConfiguration,  AmazonServiceCallback<PutBucketRequestPaymentRequest, PutBucketRequestPaymentResponse> callback, AsyncOptions options = null)
 {
     var request = new PutBucketRequestPaymentRequest();
     request.BucketName = bucketName;
     request.RequestPaymentConfiguration = requestPaymentConfiguration;
     PutBucketRequestPaymentAsync(request, callback, options);
 }
示例#3
0
 /// <summary>
 /// Sets the request payment configuration for a bucket. By default, the bucket owner
 /// pays for downloads from the bucket. This configuration parameter enables the bucket
 /// owner (only) to specify that the person requesting the download will be charged for
 /// the download. Documentation on requester pays buckets can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html
 /// </summary>
 /// <param name="bucketName">A property of PutBucketRequestPaymentRequest used to execute the PutBucketRequestPayment service method.</param>
 /// <param name="requestPaymentConfiguration">A property of PutBucketRequestPaymentRequest used to execute the PutBucketRequestPayment service method.</param>
 /// 
 /// <returns>The response from the PutBucketRequestPayment service method, as returned by S3.</returns>
 public PutBucketRequestPaymentResponse PutBucketRequestPayment(string bucketName, RequestPaymentConfiguration requestPaymentConfiguration)
 {
     var request = new PutBucketRequestPaymentRequest();
     request.BucketName = bucketName;
     request.RequestPaymentConfiguration = requestPaymentConfiguration;
     return PutBucketRequestPayment(request);
 }