AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GetQueryResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
9#include <aws/neptune-graph/model/QueryState.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace NeptuneGraph {
23namespace Model {
25 public:
26 AWS_NEPTUNEGRAPH_API GetQueryResult() = default;
29
31
34 inline const Aws::String& GetId() const { return m_id; }
35 template <typename IdT = Aws::String>
36 void SetId(IdT&& value) {
37 m_idHasBeenSet = true;
38 m_id = std::forward<IdT>(value);
39 }
40 template <typename IdT = Aws::String>
41 GetQueryResult& WithId(IdT&& value) {
42 SetId(std::forward<IdT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetQueryString() const { return m_queryString; }
52 template <typename QueryStringT = Aws::String>
53 void SetQueryString(QueryStringT&& value) {
54 m_queryStringHasBeenSet = true;
55 m_queryString = std::forward<QueryStringT>(value);
56 }
57 template <typename QueryStringT = Aws::String>
58 GetQueryResult& WithQueryString(QueryStringT&& value) {
59 SetQueryString(std::forward<QueryStringT>(value));
60 return *this;
61 }
63
65
68 inline int GetWaited() const { return m_waited; }
69 inline void SetWaited(int value) {
70 m_waitedHasBeenSet = true;
71 m_waited = value;
72 }
73 inline GetQueryResult& WithWaited(int value) {
74 SetWaited(value);
75 return *this;
76 }
78
80
83 inline int GetElapsed() const { return m_elapsed; }
84 inline void SetElapsed(int value) {
85 m_elapsedHasBeenSet = true;
86 m_elapsed = value;
87 }
88 inline GetQueryResult& WithElapsed(int value) {
89 SetElapsed(value);
90 return *this;
91 }
93
95
98 inline QueryState GetState() const { return m_state; }
99 inline void SetState(QueryState value) {
100 m_stateHasBeenSet = true;
101 m_state = value;
102 }
104 SetState(value);
105 return *this;
106 }
108
110
111 inline const Aws::String& GetRequestId() const { return m_requestId; }
112 template <typename RequestIdT = Aws::String>
113 void SetRequestId(RequestIdT&& value) {
114 m_requestIdHasBeenSet = true;
115 m_requestId = std::forward<RequestIdT>(value);
116 }
117 template <typename RequestIdT = Aws::String>
118 GetQueryResult& WithRequestId(RequestIdT&& value) {
119 SetRequestId(std::forward<RequestIdT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_id;
125
126 Aws::String m_queryString;
127
128 int m_waited{0};
129
130 int m_elapsed{0};
131
133
134 Aws::String m_requestId;
135 bool m_idHasBeenSet = false;
136 bool m_queryStringHasBeenSet = false;
137 bool m_waitedHasBeenSet = false;
138 bool m_elapsedHasBeenSet = false;
139 bool m_stateHasBeenSet = false;
140 bool m_requestIdHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace NeptuneGraph
145} // 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue