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/S3_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/Array.h>
10#include <aws/s3/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 S3
20{
21namespace Model
22{
24 {
25 public:
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 S3
80} // namespace Aws
void SetRequestCharged(RequestCharged &&value)
GetObjectTorrentResult & WithRequestCharged(RequestCharged &&value)
AWS_S3_API GetObjectTorrentResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectTorrentResult & WithRequestId(const char *value)
GetObjectTorrentResult & operator=(const GetObjectTorrentResult &)=delete
void SetRequestId(const Aws::String &value)
AWS_S3_API GetObjectTorrentResult(GetObjectTorrentResult &&)
GetObjectTorrentResult & WithRequestId(const Aws::String &value)
GetObjectTorrentResult(const GetObjectTorrentResult &)=delete
const RequestCharged & GetRequestCharged() const
void SetRequestCharged(const RequestCharged &value)
GetObjectTorrentResult & WithRequestId(Aws::String &&value)
AWS_S3_API GetObjectTorrentResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_S3_API GetObjectTorrentResult & operator=(GetObjectTorrentResult &&)
GetObjectTorrentResult & WithRequestCharged(const RequestCharged &value)
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