AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_S3_API GetObjectTorrentResult() = default;
29 //we delete these because Microsoft doesn't handle move generation correctly
30 //and we therefore don't trust them to get it right here either.
33
34
37
38
39
41
44 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
45 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
46
48
50
51 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
52 inline void SetRequestCharged(RequestCharged value) { m_requestChargedHasBeenSet = true; m_requestCharged = value; }
55
57
58 inline const Aws::String& GetRequestId() const { return m_requestId; }
59 template<typename RequestIdT = Aws::String>
60 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
61 template<typename RequestIdT = Aws::String>
62 GetObjectTorrentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
64 private:
65
67 bool m_bodyHasBeenSet = false;
68
70 bool m_requestChargedHasBeenSet = false;
71
72 Aws::String m_requestId;
73 bool m_requestIdHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace S3
78} // 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