AWS SDK for C++

AWS SDK for C++ Version 1.11.874

Loading...
Searching...
No Matches
UploadResponse.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/PutObjectResult.h>
11#include <utility>
12
13namespace Aws {
14namespace S3 {
15namespace Transfer {
16
22class AWS_S3_TRANSFER_API UploadResponse final {
23 public:
24 // Default constructor exists to satisfy Aws::Utils::Outcome<R, E>, which default-constructs
25 // its R on the error path. On the success path the S3 result is always provided via the
26 // constructor below; a default-constructed instance is unreachable through UploadOutcome
27 // because Outcome::GetResult() is only meaningful when IsSuccess() is true.
28 UploadResponse() = default;
29
31 : m_s3Result(std::move(s3Result)) {}
32
33 inline const Aws::S3::Model::PutObjectResult& GetS3Result() const { return m_s3Result; }
34
35 private:
37};
38
40
41} // namespace Transfer
42} // namespace S3
43} // namespace Aws
UploadResponse(Aws::S3::Model::PutObjectResult s3Result)
const Aws::S3::Model::PutObjectResult & GetS3Result() const