6#include <aws/s3-transfer/S3Transfer_EXPORTS.h>
7#include <aws/s3-transfer/DownloadResponse.h>
8#include <aws/s3-transfer/UploadResponse.h>
22template <
typename ResponseT>
29 std::shared_ptr<ResponseT> response,
30 bool totalBytesHasBeenSet)
31 : m_transferredBytes(transferredBytes),
32 m_totalBytes(totalBytes),
33 m_response(std::move(response)),
34 m_totalBytesHasBeenSet(totalBytesHasBeenSet) {}
39 inline const std::shared_ptr<ResponseT>&
GetResponse()
const {
return m_response; }
43 uint64_t m_transferredBytes = 0;
44 uint64_t m_totalBytes = 0;
45 std::shared_ptr<ResponseT> m_response;
46 bool m_totalBytesHasBeenSet =
false;
bool TotalBytesHasBeenSet() const
ProgressSnapshot(uint64_t transferredBytes, uint64_t totalBytes, std::shared_ptr< ResponseT > response, bool totalBytesHasBeenSet)
bool ResponseHasBeenSet() const
uint64_t GetTotalBytes() const
const std::shared_ptr< ResponseT > & GetResponse() const
uint64_t GetTransferredBytes() const
virtual ~ProgressSnapshot()=default