Skip to content

Commit

Permalink
Added support for RequestPayer property in TransferUtility BaseDownlo…
Browse files Browse the repository at this point in the history
…adRequest class.
  • Loading branch information
ashishdhingra committed Apr 30, 2024
1 parent 45f0668 commit e4ff0a5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Binary file not shown.
11 changes: 11 additions & 0 deletions sdk/src/Services/S3/Custom/Transfer/BaseDownloadRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public abstract class BaseDownloadRequest
private string serverSideEncryptionCustomerProvidedKey;
private string serverSideEncryptionCustomerProvidedKeyMD5;

private RequestPayer requestPayer;

/// <summary>
/// Gets or sets the name of the bucket.
Expand Down Expand Up @@ -271,5 +272,15 @@ public ChecksumMode ChecksumMode
get { return this.checksumMode; }
set { this.checksumMode = value; }
}

/// <summary>
/// <para>Confirms that the requester knows that they will be charged for the request.
/// Bucket owners need not specify this parameter in their requests</para>.
/// </summary>
public RequestPayer RequestPayer
{
get { return this.requestPayer; }
set { this.requestPayer = value; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ protected GetObjectRequest ConvertToGetObjectRequest(BaseDownloadRequest request
getRequest.ServerSideEncryptionCustomerProvidedKey = request.ServerSideEncryptionCustomerProvidedKey;
getRequest.ServerSideEncryptionCustomerProvidedKeyMD5 = request.ServerSideEncryptionCustomerProvidedKeyMD5;
getRequest.ChecksumMode = request.ChecksumMode;
getRequest.RequestPayer = request.RequestPayer;

return getRequest;
}
Expand Down

0 comments on commit e4ff0a5

Please sign in to comment.