AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetSparqlStreamResult.h
1
6#pragma once
7#include <aws/neptunedata/Neptunedata_EXPORTS.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/model/SparqlRecord.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace neptunedata
27{
28namespace Model
29{
31 {
32 public:
33 AWS_NEPTUNEDATA_API GetSparqlStreamResult() = default;
36
37
39
45 inline const Aws::Map<Aws::String, Aws::String>& GetLastEventId() const { return m_lastEventId; }
46 template<typename LastEventIdT = Aws::Map<Aws::String, Aws::String>>
47 void SetLastEventId(LastEventIdT&& value) { m_lastEventIdHasBeenSet = true; m_lastEventId = std::forward<LastEventIdT>(value); }
48 template<typename LastEventIdT = Aws::Map<Aws::String, Aws::String>>
49 GetSparqlStreamResult& WithLastEventId(LastEventIdT&& value) { SetLastEventId(std::forward<LastEventIdT>(value)); return *this;}
50 template<typename LastEventIdKeyT = Aws::String, typename LastEventIdValueT = Aws::String>
51 GetSparqlStreamResult& AddLastEventId(LastEventIdKeyT&& key, LastEventIdValueT&& value) {
52 m_lastEventIdHasBeenSet = true; m_lastEventId.emplace(std::forward<LastEventIdKeyT>(key), std::forward<LastEventIdValueT>(value)); return *this;
53 }
55
57
61 inline long long GetLastTrxTimestampInMillis() const { return m_lastTrxTimestampInMillis; }
62 inline void SetLastTrxTimestampInMillis(long long value) { m_lastTrxTimestampInMillisHasBeenSet = true; m_lastTrxTimestampInMillis = value; }
63 inline GetSparqlStreamResult& WithLastTrxTimestampInMillis(long long value) { SetLastTrxTimestampInMillis(value); return *this;}
65
67
71 inline const Aws::String& GetFormat() const { return m_format; }
72 template<typename FormatT = Aws::String>
73 void SetFormat(FormatT&& value) { m_formatHasBeenSet = true; m_format = std::forward<FormatT>(value); }
74 template<typename FormatT = Aws::String>
75 GetSparqlStreamResult& WithFormat(FormatT&& value) { SetFormat(std::forward<FormatT>(value)); return *this;}
77
79
83 inline const Aws::Vector<SparqlRecord>& GetRecords() const { return m_records; }
84 template<typename RecordsT = Aws::Vector<SparqlRecord>>
85 void SetRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records = std::forward<RecordsT>(value); }
86 template<typename RecordsT = Aws::Vector<SparqlRecord>>
87 GetSparqlStreamResult& WithRecords(RecordsT&& value) { SetRecords(std::forward<RecordsT>(value)); return *this;}
88 template<typename RecordsT = SparqlRecord>
89 GetSparqlStreamResult& AddRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records.emplace_back(std::forward<RecordsT>(value)); return *this; }
91
93
96 inline int GetTotalRecords() const { return m_totalRecords; }
97 inline void SetTotalRecords(int value) { m_totalRecordsHasBeenSet = true; m_totalRecords = value; }
98 inline GetSparqlStreamResult& WithTotalRecords(int value) { SetTotalRecords(value); return *this;}
100
102
103 inline const Aws::String& GetRequestId() const { return m_requestId; }
104 template<typename RequestIdT = Aws::String>
105 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
106 template<typename RequestIdT = Aws::String>
107 GetSparqlStreamResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
109 private:
110
112 bool m_lastEventIdHasBeenSet = false;
113
114 long long m_lastTrxTimestampInMillis{0};
115 bool m_lastTrxTimestampInMillisHasBeenSet = false;
116
117 Aws::String m_format;
118 bool m_formatHasBeenSet = false;
119
121 bool m_recordsHasBeenSet = false;
122
123 int m_totalRecords{0};
124 bool m_totalRecordsHasBeenSet = false;
125
126 Aws::String m_requestId;
127 bool m_requestIdHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace neptunedata
132} // 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)
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