6#include <aws/s3-transfer/S3Transfer_EXPORTS.h>
20template <
typename ResponseT>
27 std::shared_ptr<ResponseT> response,
28 bool totalBytesHasBeenSet)
29 : m_transferredBytes(transferredBytes),
30 m_totalBytes(totalBytes),
31 m_response(std::move(response)),
32 m_totalBytesHasBeenSet(totalBytesHasBeenSet) {}
37 inline const std::shared_ptr<ResponseT>&
GetResponse()
const {
return m_response; }
41 uint64_t m_transferredBytes = 0;
42 uint64_t m_totalBytes = 0;
43 std::shared_ptr<ResponseT> m_response;
44 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