AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetSparqlStreamResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/neptunedata/Neptunedata_EXPORTS.h>
12#include <aws/neptunedata/model/SparqlRecord.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace neptunedata {
26namespace Model {
28 public:
29 AWS_NEPTUNEDATA_API GetSparqlStreamResult() = default;
32
34
40 inline const Aws::Map<Aws::String, Aws::String>& GetLastEventId() const { return m_lastEventId; }
41 template <typename LastEventIdT = Aws::Map<Aws::String, Aws::String>>
42 void SetLastEventId(LastEventIdT&& value) {
43 m_lastEventIdHasBeenSet = true;
44 m_lastEventId = std::forward<LastEventIdT>(value);
45 }
46 template <typename LastEventIdT = Aws::Map<Aws::String, Aws::String>>
47 GetSparqlStreamResult& WithLastEventId(LastEventIdT&& value) {
48 SetLastEventId(std::forward<LastEventIdT>(value));
49 return *this;
50 }
51 template <typename LastEventIdKeyT = Aws::String, typename LastEventIdValueT = Aws::String>
52 GetSparqlStreamResult& AddLastEventId(LastEventIdKeyT&& key, LastEventIdValueT&& value) {
53 m_lastEventIdHasBeenSet = true;
54 m_lastEventId.emplace(std::forward<LastEventIdKeyT>(key), std::forward<LastEventIdValueT>(value));
55 return *this;
56 }
58
60
64 inline long long GetLastTrxTimestampInMillis() const { return m_lastTrxTimestampInMillis; }
65 inline void SetLastTrxTimestampInMillis(long long value) {
66 m_lastTrxTimestampInMillisHasBeenSet = true;
67 m_lastTrxTimestampInMillis = value;
68 }
71 return *this;
72 }
74
76
80 inline const Aws::String& GetFormat() const { return m_format; }
81 template <typename FormatT = Aws::String>
82 void SetFormat(FormatT&& value) {
83 m_formatHasBeenSet = true;
84 m_format = std::forward<FormatT>(value);
85 }
86 template <typename FormatT = Aws::String>
88 SetFormat(std::forward<FormatT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::Vector<SparqlRecord>& GetRecords() const { return m_records; }
99 template <typename RecordsT = Aws::Vector<SparqlRecord>>
100 void SetRecords(RecordsT&& value) {
101 m_recordsHasBeenSet = true;
102 m_records = std::forward<RecordsT>(value);
103 }
104 template <typename RecordsT = Aws::Vector<SparqlRecord>>
106 SetRecords(std::forward<RecordsT>(value));
107 return *this;
108 }
109 template <typename RecordsT = SparqlRecord>
111 m_recordsHasBeenSet = true;
112 m_records.emplace_back(std::forward<RecordsT>(value));
113 return *this;
114 }
116
118
121 inline int GetTotalRecords() const { return m_totalRecords; }
122 inline void SetTotalRecords(int value) {
123 m_totalRecordsHasBeenSet = true;
124 m_totalRecords = value;
125 }
127 SetTotalRecords(value);
128 return *this;
129 }
131
133
134 inline const Aws::String& GetRequestId() const { return m_requestId; }
135 template <typename RequestIdT = Aws::String>
136 void SetRequestId(RequestIdT&& value) {
137 m_requestIdHasBeenSet = true;
138 m_requestId = std::forward<RequestIdT>(value);
139 }
140 template <typename RequestIdT = Aws::String>
142 SetRequestId(std::forward<RequestIdT>(value));
143 return *this;
144 }
146 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
147
148 private:
150
151 long long m_lastTrxTimestampInMillis{0};
152
153 Aws::String m_format;
154
156
157 int m_totalRecords{0};
158
159 Aws::String m_requestId;
160 Aws::Http::HttpResponseCode m_HttpResponseCode;
161 bool m_lastEventIdHasBeenSet = false;
162 bool m_lastTrxTimestampInMillisHasBeenSet = false;
163 bool m_formatHasBeenSet = false;
164 bool m_recordsHasBeenSet = false;
165 bool m_totalRecordsHasBeenSet = false;
166 bool m_requestIdHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace neptunedata
171} // namespace Aws
GetSparqlStreamResult & WithLastTrxTimestampInMillis(long long value)
GetSparqlStreamResult & WithFormat(FormatT &&value)
GetSparqlStreamResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetLastEventId() const
GetSparqlStreamResult & AddRecords(RecordsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetSparqlStreamResult & WithRecords(RecordsT &&value)
const Aws::Vector< SparqlRecord > & GetRecords() const
GetSparqlStreamResult & AddLastEventId(LastEventIdKeyT &&key, LastEventIdValueT &&value)
AWS_NEPTUNEDATA_API GetSparqlStreamResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_NEPTUNEDATA_API GetSparqlStreamResult()=default
GetSparqlStreamResult & WithTotalRecords(int value)
AWS_NEPTUNEDATA_API GetSparqlStreamResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSparqlStreamResult & WithLastEventId(LastEventIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue