AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
GetObjectTorrentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/stream/ResponseStream.h>
11#include <aws/s3-crt/S3Crt_EXPORTS.h>
12#include <aws/s3-crt/model/RequestCharged.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace S3Crt {
21namespace Model {
23 public:
24 AWS_S3CRT_API GetObjectTorrentResult() = default;
27 // we delete these because Microsoft doesn't handle move generation correctly
28 // and we therefore don't trust them to get it right here either.
31
34
36
39 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
40 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
41
43
45
46 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
47 inline void SetRequestCharged(RequestCharged value) {
48 m_requestChargedHasBeenSet = true;
49 m_requestCharged = value;
50 }
52 SetRequestCharged(value);
53 return *this;
54 }
56
58
59 inline const Aws::String& GetRequestId() const { return m_requestId; }
60 template <typename RequestIdT = Aws::String>
61 void SetRequestId(RequestIdT&& value) {
62 m_requestIdHasBeenSet = true;
63 m_requestId = std::forward<RequestIdT>(value);
64 }
65 template <typename RequestIdT = Aws::String>
67 SetRequestId(std::forward<RequestIdT>(value));
68 return *this;
69 }
71 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
72
73 private:
75
77
78 Aws::String m_requestId;
79 Aws::Http::HttpResponseCode m_HttpResponseCode;
80 bool m_bodyHasBeenSet = false;
81 bool m_requestChargedHasBeenSet = false;
82 bool m_requestIdHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace S3Crt
87} // namespace Aws
AWS_S3CRT_API GetObjectTorrentResult & operator=(GetObjectTorrentResult &&)=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_S3CRT_API GetObjectTorrentResult(GetObjectTorrentResult &&)=default
GetObjectTorrentResult & WithRequestCharged(RequestCharged value)
GetObjectTorrentResult & WithRequestId(RequestIdT &&value)
GetObjectTorrentResult(const GetObjectTorrentResult &)=delete
AWS_S3CRT_API GetObjectTorrentResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_S3CRT_API GetObjectTorrentResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_S3CRT_API GetObjectTorrentResult()=default
GetObjectTorrentResult & operator=(const GetObjectTorrentResult &)=delete
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