17 template <
typename PAYLOAD_TYPE>
28 m_responseHeaders(headers),
29 m_responseCode(responseCode)
36 m_payload(std::forward<PAYLOAD_TYPE>(payload)),
37 m_responseHeaders(std::forward<Http::HeaderValueCollection>(headers)),
38 m_responseCode(responseCode)
42 m_payload(result.m_payload),
43 m_responseHeaders(result.m_responseHeaders),
44 m_responseCode(result.m_responseCode)
48 m_payload(std::move(result.m_payload)),
49 m_responseHeaders(std::move(result.m_responseHeaders)),
50 m_responseCode(result.m_responseCode)
56 inline const PAYLOAD_TYPE&
GetPayload()
const {
return m_payload; }
71 PAYLOAD_TYPE m_payload;
PAYLOAD_TYPE && TakeOwnershipOfPayload()
AmazonWebServiceResult(const AmazonWebServiceResult &result)
AmazonWebServiceResult(AmazonWebServiceResult &&result)
AmazonWebServiceResult(PAYLOAD_TYPE &&payload, Http::HeaderValueCollection &&headers, Http::HttpResponseCode responseCode=Http::HttpResponseCode::OK)
const Http::HeaderValueCollection & GetHeaderValueCollection() const
Http::HttpResponseCode GetResponseCode() const
AmazonWebServiceResult(const PAYLOAD_TYPE &payload, const Http::HeaderValueCollection &headers, Http::HttpResponseCode responseCode=Http::HttpResponseCode::OK)
const PAYLOAD_TYPE & GetPayload() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection