AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendApiAssetResult.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace DataExchange
19{
20namespace Model
21{
23 {
24 public:
25 AWS_DATAEXCHANGE_API SendApiAssetResult();
26 //We have to define these because Microsoft doesn't auto generate them
27 AWS_DATAEXCHANGE_API SendApiAssetResult(SendApiAssetResult&&);
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
53 inline const Aws::Map<Aws::String, Aws::String>& GetResponseHeaders() const{ return m_responseHeaders; }
54 inline void SetResponseHeaders(const Aws::Map<Aws::String, Aws::String>& value) { m_responseHeaders = value; }
55 inline void SetResponseHeaders(Aws::Map<Aws::String, Aws::String>&& value) { m_responseHeaders = std::move(value); }
58 inline SendApiAssetResult& AddResponseHeaders(const Aws::String& key, const Aws::String& value) { m_responseHeaders.emplace(key, value); return *this; }
59 inline SendApiAssetResult& AddResponseHeaders(Aws::String&& key, const Aws::String& value) { m_responseHeaders.emplace(std::move(key), value); return *this; }
60 inline SendApiAssetResult& AddResponseHeaders(const Aws::String& key, Aws::String&& value) { m_responseHeaders.emplace(key, std::move(value)); return *this; }
61 inline SendApiAssetResult& AddResponseHeaders(Aws::String&& key, Aws::String&& value) { m_responseHeaders.emplace(std::move(key), std::move(value)); return *this; }
62 inline SendApiAssetResult& AddResponseHeaders(const char* key, Aws::String&& value) { m_responseHeaders.emplace(key, std::move(value)); return *this; }
63 inline SendApiAssetResult& AddResponseHeaders(Aws::String&& key, const char* value) { m_responseHeaders.emplace(std::move(key), value); return *this; }
64 inline SendApiAssetResult& AddResponseHeaders(const char* key, const char* value) { m_responseHeaders.emplace(key, value); return *this; }
66
68
69 inline const Aws::String& GetRequestId() const{ return m_requestId; }
70 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
71 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
72 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
73 inline SendApiAssetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
74 inline SendApiAssetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
75 inline SendApiAssetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
77 private:
78
80
81 Aws::Map<Aws::String, Aws::String> m_responseHeaders;
82
83 Aws::String m_requestId;
84 };
85
86} // namespace Model
87} // namespace DataExchange
88} // namespace Aws
SendApiAssetResult(const SendApiAssetResult &)=delete
AWS_DATAEXCHANGE_API SendApiAssetResult & operator=(SendApiAssetResult &&)
void SetResponseHeaders(const Aws::Map< Aws::String, Aws::String > &value)
SendApiAssetResult & operator=(const SendApiAssetResult &)=delete
AWS_DATAEXCHANGE_API SendApiAssetResult(SendApiAssetResult &&)
SendApiAssetResult & WithRequestId(const Aws::String &value)
SendApiAssetResult & AddResponseHeaders(const char *key, const char *value)
SendApiAssetResult & WithResponseHeaders(const Aws::Map< Aws::String, Aws::String > &value)
AWS_DATAEXCHANGE_API SendApiAssetResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
SendApiAssetResult & AddResponseHeaders(Aws::String &&key, Aws::String &&value)
SendApiAssetResult & WithResponseHeaders(Aws::Map< Aws::String, Aws::String > &&value)
SendApiAssetResult & WithRequestId(const char *value)
SendApiAssetResult & WithRequestId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetResponseHeaders() const
SendApiAssetResult & AddResponseHeaders(Aws::String &&key, const char *value)
void SetRequestId(const Aws::String &value)
AWS_DATAEXCHANGE_API SendApiAssetResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetResponseHeaders(Aws::Map< Aws::String, Aws::String > &&value)
SendApiAssetResult & AddResponseHeaders(const Aws::String &key, Aws::String &&value)
SendApiAssetResult & AddResponseHeaders(const char *key, Aws::String &&value)
SendApiAssetResult & AddResponseHeaders(const Aws::String &key, const Aws::String &value)
SendApiAssetResult & AddResponseHeaders(Aws::String &&key, const Aws::String &value)
Aws::IOStream & GetUnderlyingStream() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String