AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetObjectTorrentResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/stream/ResponseStream.h>
10#include <aws/s3/S3_EXPORTS.h>
11#include <aws/s3/model/RequestCharged.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace S3 {
20namespace Model {
22 public:
23 AWS_S3_API GetObjectTorrentResult() = default;
26 // we delete these because Microsoft doesn't handle move generation correctly
27 // and we therefore don't trust them to get it right here either.
30
33
35
38 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
39 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
40
42
44
45 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
46 inline void SetRequestCharged(RequestCharged value) {
47 m_requestChargedHasBeenSet = true;
48 m_requestCharged = value;
49 }
51 SetRequestCharged(value);
52 return *this;
53 }
55
57
58 inline const Aws::String& GetRequestId() const { return m_requestId; }
59 template <typename RequestIdT = Aws::String>
60 void SetRequestId(RequestIdT&& value) {
61 m_requestIdHasBeenSet = true;
62 m_requestId = std::forward<RequestIdT>(value);
63 }
64 template <typename RequestIdT = Aws::String>
66 SetRequestId(std::forward<RequestIdT>(value));
67 return *this;
68 }
70 private:
72
74
75 Aws::String m_requestId;
76 bool m_bodyHasBeenSet = false;
77 bool m_requestChargedHasBeenSet = false;
78 bool m_requestIdHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace S3
83} // namespace Aws
AWS_S3_API GetObjectTorrentResult & operator=(GetObjectTorrentResult &&)=default
GetObjectTorrentResult & WithRequestId(RequestIdT &&value)
GetObjectTorrentResult & WithRequestCharged(RequestCharged value)
AWS_S3_API GetObjectTorrentResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectTorrentResult & operator=(const GetObjectTorrentResult &)=delete
AWS_S3_API GetObjectTorrentResult()=default
GetObjectTorrentResult(const GetObjectTorrentResult &)=delete
AWS_S3_API GetObjectTorrentResult(GetObjectTorrentResult &&)=default
AWS_S3_API GetObjectTorrentResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String