AWS SDK for C++

AWS SDK for C++ Version 1.11.832

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
22class AWS_S3_TRANSFER_API DownloadResponse final {
23 public:
24 inline const Aws::S3::Model::GetObjectResult& GetS3Result() const { return m_s3Result; }
25 inline bool S3ResultHasBeenSet() const { return m_s3ResultHasBeenSet; }
26 template <typename GetObjectResultT = Aws::S3::Model::GetObjectResult>
27 void SetS3Result(GetObjectResultT&& getS3Result) {
28 m_s3ResultHasBeenSet = true;
29 m_s3Result = std::forward<GetObjectResultT>(getS3Result);
30 }
31 template <typename GetObjectResultT = Aws::S3::Model::GetObjectResult>
32 DownloadResponse& WithS3Result(GetObjectResultT&& getS3Result) {
33 SetS3Result(std::forward<GetObjectResultT>(getS3Result));
34 return *this;
35 }
36
37 private:
39 bool m_s3ResultHasBeenSet = false;
40};
41
43
44}
45}
46}
void SetS3Result(GetObjectResultT &&getS3Result)
const Aws::S3::Model::GetObjectResult & GetS3Result() const
DownloadResponse & WithS3Result(GetObjectResultT &&getS3Result)