AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetObjectTorrentResult.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/Array.h>
10#include <aws/s3-crt/model/RequestCharged.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace S3Crt
20{
21namespace Model
22{
24 {
25 public:
26 AWS_S3CRT_API GetObjectTorrentResult();
27 //We have to define these because Microsoft doesn't auto generate them
30 //we delete these because Microsoft doesn't handle move generation correctly
31 //and we therefore don't trust them to get it right here either.
34
35
38
39
40
42
45 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
46 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
47
49
51
52 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
53 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
54 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
55 inline GetObjectTorrentResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
56 inline GetObjectTorrentResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
58
60
61 inline const Aws::String& GetRequestId() const{ return m_requestId; }
62 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
63 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
64 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
65 inline GetObjectTorrentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
66 inline GetObjectTorrentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
67 inline GetObjectTorrentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
69 private:
70
72
73 RequestCharged m_requestCharged;
74
75 Aws::String m_requestId;
76 };
77
78} // namespace Model
79} // namespace S3Crt
80} // namespace Aws
GetObjectTorrentResult & WithRequestId(const Aws::String &value)
GetObjectTorrentResult(const GetObjectTorrentResult &)=delete
void SetRequestCharged(const RequestCharged &value)
GetObjectTorrentResult & WithRequestId(const char *value)
AWS_S3CRT_API GetObjectTorrentResult(GetObjectTorrentResult &&)
const RequestCharged & GetRequestCharged() const
AWS_S3CRT_API GetObjectTorrentResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectTorrentResult & WithRequestId(Aws::String &&value)
AWS_S3CRT_API GetObjectTorrentResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectTorrentResult & WithRequestCharged(RequestCharged &&value)
GetObjectTorrentResult & operator=(const GetObjectTorrentResult &)=delete
GetObjectTorrentResult & WithRequestCharged(const RequestCharged &value)
AWS_S3CRT_API GetObjectTorrentResult & operator=(GetObjectTorrentResult &&)
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