19 #ifndef TRANSFER_CLIENT_H 20 #define TRANSFER_CLIENT_H 42 class UploadFileRequest;
43 class DownloadFileRequest;
67 std::shared_ptr<UploadFileRequest> UploadFile(
const Aws::String& fileName,
const Aws::String& bucketName,
const Aws::String& keyName,
const Aws::String& contentType,
bool createBucket =
false,
bool doConsistencyChecks =
false);
73 void CancelUpload(std::shared_ptr<UploadFileRequest>& fileRequest)
const;
79 void CancelDownload(std::shared_ptr<DownloadFileRequest>& fileRequest)
const;
81 const std::shared_ptr<Aws::S3::S3Client>&
GetS3Client() {
return m_s3Client; }
89 void UploadFileInternal(std::shared_ptr<UploadFileRequest>& fileRequest);
91 void ProcessSingleBuffer(std::shared_ptr<UploadFileRequest>& request,
const std::shared_ptr<UploadBuffer>& buffer);
93 void CancelUploadInternal(std::shared_ptr<UploadFileRequest>& fileRequest)
const;
95 void BeginDownloadFile(std::shared_ptr<DownloadFileRequest>& fileRequest)
const;
96 void DownloadFileInternal(std::shared_ptr<DownloadFileRequest>& fileRequest)
const;
98 void GetContentsInternal(std::shared_ptr<DownloadFileRequest>& request)
const;
100 void CancelDownloadInternal(std::shared_ptr<DownloadFileRequest>& fileRequest)
const;
105 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context);
110 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context);
115 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context);
120 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context);
125 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context);
130 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context);
135 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context);
140 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context);
145 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context);
150 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context);
155 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context);
160 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& ) {}
162 std::shared_ptr< UploadBufferScopedResourceSetType > AcquireUploadBuffers(uint32_t bufferCount);
164 std::shared_ptr<Aws::S3::S3Client> m_s3Client;
167 std::shared_ptr<UploadBufferResourceManagerType> m_uploadBufferManager;
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
uint32_t m_uploadBufferCount
const uint64_t MB5_BUFFER_SIZE
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
uint32_t GetConfigBufferCount() const
const std::shared_ptr< Aws::S3::S3Client > & GetS3Client()
std::shared_ptr< UploadBufferResourceManagerType > m_uploadBufferManager
JSON (JavaScript Object Notation).