AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
DownloadResponse.h
1
5#pragma once
6#include <aws/s3-transfer/S3Transfer_EXPORTS.h>
7#include <aws/core/client/AWSError.h>
8#include <aws/core/utils/Outcome.h>
9#include <aws/s3/S3Errors.h>
10#include <aws/s3/model/GetObjectResult.h>
11#include <utility>
12
13namespace Aws {
14namespace S3 {
15namespace Transfer {
16
23class AWS_S3_TRANSFER_API DownloadResponse final {
24 public:
25 // Default constructor exists to satisfy Aws::Utils::Outcome<R, E>, which default-constructs
26 // its R on the error path. On the success path the S3 result is always provided via the
27 // constructor below; a default-constructed instance is unreachable through DownloadOutcome
28 // because Outcome::GetResult() is only meaningful when IsSuccess() is true.
29 DownloadResponse() = default;
30
32 : m_s3Result(std::move(s3Result)) {}
33
34 inline const Aws::S3::Model::GetObjectResult& GetS3Result() const { return m_s3Result; }
35
36 private:
38};
39
41
42} // namespace Transfer
43} // namespace S3
44} // namespace Aws
DownloadResponse(Aws::S3::Model::GetObjectResult s3Result)
const Aws::S3::Model::GetObjectResult & GetS3Result() const