AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetQueryResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
10#include <aws/neptune-graph/model/QueryState.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace NeptuneGraph {
24namespace Model {
26 public:
27 AWS_NEPTUNEGRAPH_API GetQueryResult() = default;
30
32
35 inline const Aws::String& GetId() const { return m_id; }
36 template <typename IdT = Aws::String>
37 void SetId(IdT&& value) {
38 m_idHasBeenSet = true;
39 m_id = std::forward<IdT>(value);
40 }
41 template <typename IdT = Aws::String>
42 GetQueryResult& WithId(IdT&& value) {
43 SetId(std::forward<IdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetQueryString() const { return m_queryString; }
53 template <typename QueryStringT = Aws::String>
54 void SetQueryString(QueryStringT&& value) {
55 m_queryStringHasBeenSet = true;
56 m_queryString = std::forward<QueryStringT>(value);
57 }
58 template <typename QueryStringT = Aws::String>
59 GetQueryResult& WithQueryString(QueryStringT&& value) {
60 SetQueryString(std::forward<QueryStringT>(value));
61 return *this;
62 }
64
66
69 inline int GetWaited() const { return m_waited; }
70 inline void SetWaited(int value) {
71 m_waitedHasBeenSet = true;
72 m_waited = value;
73 }
74 inline GetQueryResult& WithWaited(int value) {
75 SetWaited(value);
76 return *this;
77 }
79
81
84 inline int GetElapsed() const { return m_elapsed; }
85 inline void SetElapsed(int value) {
86 m_elapsedHasBeenSet = true;
87 m_elapsed = value;
88 }
89 inline GetQueryResult& WithElapsed(int value) {
90 SetElapsed(value);
91 return *this;
92 }
94
96
99 inline QueryState GetState() const { return m_state; }
100 inline void SetState(QueryState value) {
101 m_stateHasBeenSet = true;
102 m_state = value;
103 }
105 SetState(value);
106 return *this;
107 }
109
111
112 inline const Aws::String& GetRequestId() const { return m_requestId; }
113 template <typename RequestIdT = Aws::String>
114 void SetRequestId(RequestIdT&& value) {
115 m_requestIdHasBeenSet = true;
116 m_requestId = std::forward<RequestIdT>(value);
117 }
118 template <typename RequestIdT = Aws::String>
119 GetQueryResult& WithRequestId(RequestIdT&& value) {
120 SetRequestId(std::forward<RequestIdT>(value));
121 return *this;
122 }
124 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
125
126 private:
127 Aws::String m_id;
128
129 Aws::String m_queryString;
130
131 int m_waited{0};
132
133 int m_elapsed{0};
134
136
137 Aws::String m_requestId;
138 Aws::Http::HttpResponseCode m_HttpResponseCode;
139 bool m_idHasBeenSet = false;
140 bool m_queryStringHasBeenSet = false;
141 bool m_waitedHasBeenSet = false;
142 bool m_elapsedHasBeenSet = false;
143 bool m_stateHasBeenSet = false;
144 bool m_requestIdHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace NeptuneGraph
149} // namespace Aws
void SetQueryString(QueryStringT &&value)
AWS_NEPTUNEGRAPH_API GetQueryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_NEPTUNEGRAPH_API GetQueryResult()=default
const Aws::String & GetQueryString() const
const Aws::String & GetRequestId() const
GetQueryResult & WithState(QueryState value)
GetQueryResult & WithId(IdT &&value)
GetQueryResult & WithQueryString(QueryStringT &&value)
GetQueryResult & WithElapsed(int value)
const Aws::String & GetId() const
AWS_NEPTUNEGRAPH_API GetQueryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetQueryResult & WithRequestId(RequestIdT &&value)
GetQueryResult & WithWaited(int value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue