27 template <
typename PAYLOAD_TYPE>
28 class AmazonWebServiceResult
38 m_responseHeaders(headers),
39 m_responseCode(responseCode)
46 m_payload(
std::forward<PAYLOAD_TYPE>(payload)),
48 m_responseCode(responseCode)
52 m_payload(result.m_payload),
53 m_responseHeaders(result.m_responseHeaders),
54 m_responseCode(result.m_responseCode)
58 m_payload(
std::move(result.m_payload)),
59 m_responseHeaders(
std::move(result.m_responseHeaders)),
60 m_responseCode(result.m_responseCode)
66 inline const PAYLOAD_TYPE&
GetPayload()
const {
return m_payload; }
81 PAYLOAD_TYPE m_payload;
AmazonWebServiceResult(AmazonWebServiceResult &&result)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
const Http::HeaderValueCollection & GetHeaderValueCollection() const
AmazonWebServiceResult(PAYLOAD_TYPE &&payload, Http::HeaderValueCollection &&headers, Http::HttpResponseCode responseCode=Http::HttpResponseCode::OK)
PAYLOAD_TYPE TakeOwnershipOfPayload()
AmazonWebServiceResult(const AmazonWebServiceResult &result)
const PAYLOAD_TYPE & GetPayload() const
AmazonWebServiceResult(const PAYLOAD_TYPE &payload, const Http::HeaderValueCollection &headers, Http::HttpResponseCode responseCode=Http::HttpResponseCode::OK)
Http::HttpResponseCode GetResponseCode() const
JSON (JavaScript Object Notation).