AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ExecuteQueryRequest.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/neptune-graph/NeptuneGraphRequest.h>
11#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
12#include <aws/neptune-graph/model/ExplainMode.h>
13#include <aws/neptune-graph/model/PlanCacheType.h>
14#include <aws/neptune-graph/model/QueryLanguage.h>
15
16#include <utility>
17
18namespace Aws {
19namespace NeptuneGraph {
20namespace Model {
21
25 public:
26 AWS_NEPTUNEGRAPH_API ExecuteQueryRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ExecuteQuery"; }
33
34 AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override;
35
36 AWS_NEPTUNEGRAPH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
41 AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override;
42
44
47 inline const Aws::String& GetGraphIdentifier() const { return m_graphIdentifier; }
48 inline bool GraphIdentifierHasBeenSet() const { return m_graphIdentifierHasBeenSet; }
49 template <typename GraphIdentifierT = Aws::String>
50 void SetGraphIdentifier(GraphIdentifierT&& value) {
51 m_graphIdentifierHasBeenSet = true;
52 m_graphIdentifier = std::forward<GraphIdentifierT>(value);
53 }
54 template <typename GraphIdentifierT = Aws::String>
55 ExecuteQueryRequest& WithGraphIdentifier(GraphIdentifierT&& value) {
56 SetGraphIdentifier(std::forward<GraphIdentifierT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetQueryString() const { return m_queryString; }
66 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
67 template <typename QueryStringT = Aws::String>
68 void SetQueryString(QueryStringT&& value) {
69 m_queryStringHasBeenSet = true;
70 m_queryString = std::forward<QueryStringT>(value);
71 }
72 template <typename QueryStringT = Aws::String>
73 ExecuteQueryRequest& WithQueryString(QueryStringT&& value) {
74 SetQueryString(std::forward<QueryStringT>(value));
75 return *this;
76 }
78
80
84 inline QueryLanguage GetLanguage() const { return m_language; }
85 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
86 inline void SetLanguage(QueryLanguage value) {
87 m_languageHasBeenSet = true;
88 m_language = value;
89 }
91 SetLanguage(value);
92 return *this;
93 }
95
97
101 inline const Aws::Map<Aws::String, Aws::Utils::Document>& GetParameters() const { return m_parameters; }
102 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
103 template <typename ParametersT = Aws::Map<Aws::String, Aws::Utils::Document>>
104 void SetParameters(ParametersT&& value) {
105 m_parametersHasBeenSet = true;
106 m_parameters = std::forward<ParametersT>(value);
107 }
108 template <typename ParametersT = Aws::Map<Aws::String, Aws::Utils::Document>>
109 ExecuteQueryRequest& WithParameters(ParametersT&& value) {
110 SetParameters(std::forward<ParametersT>(value));
111 return *this;
112 }
113 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Utils::Document>
114 ExecuteQueryRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
115 m_parametersHasBeenSet = true;
116 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
117 return *this;
118 }
120
122
128 inline PlanCacheType GetPlanCache() const { return m_planCache; }
129 inline bool PlanCacheHasBeenSet() const { return m_planCacheHasBeenSet; }
130 inline void SetPlanCache(PlanCacheType value) {
131 m_planCacheHasBeenSet = true;
132 m_planCache = value;
133 }
135 SetPlanCache(value);
136 return *this;
137 }
139
141
147 inline ExplainMode GetExplainMode() const { return m_explainMode; }
148 inline bool ExplainModeHasBeenSet() const { return m_explainModeHasBeenSet; }
149 inline void SetExplainMode(ExplainMode value) {
150 m_explainModeHasBeenSet = true;
151 m_explainMode = value;
152 }
154 SetExplainMode(value);
155 return *this;
156 }
158
160
163 inline int GetQueryTimeoutMilliseconds() const { return m_queryTimeoutMilliseconds; }
164 inline bool QueryTimeoutMillisecondsHasBeenSet() const { return m_queryTimeoutMillisecondsHasBeenSet; }
165 inline void SetQueryTimeoutMilliseconds(int value) {
166 m_queryTimeoutMillisecondsHasBeenSet = true;
167 m_queryTimeoutMilliseconds = value;
168 }
171 return *this;
172 }
174 private:
175 Aws::String m_graphIdentifier;
176
177 Aws::String m_queryString;
178
180
182
184
185 ExplainMode m_explainMode{ExplainMode::NOT_SET};
186
187 int m_queryTimeoutMilliseconds{0};
188 bool m_graphIdentifierHasBeenSet = false;
189 bool m_queryStringHasBeenSet = false;
190 bool m_languageHasBeenSet = false;
191 bool m_parametersHasBeenSet = false;
192 bool m_planCacheHasBeenSet = false;
193 bool m_explainModeHasBeenSet = false;
194 bool m_queryTimeoutMillisecondsHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace NeptuneGraph
199} // namespace Aws
ExecuteQueryRequest & WithExplainMode(ExplainMode value)
virtual const char * GetServiceRequestName() const override
AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override
ExecuteQueryRequest & WithQueryString(QueryStringT &&value)
ExecuteQueryRequest & WithQueryTimeoutMilliseconds(int value)
ExecuteQueryRequest & WithLanguage(QueryLanguage value)
ExecuteQueryRequest & WithParameters(ParametersT &&value)
ExecuteQueryRequest & WithGraphIdentifier(GraphIdentifierT &&value)
AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override
AWS_NEPTUNEGRAPH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::Utils::Document > & GetParameters() const
void SetGraphIdentifier(GraphIdentifierT &&value)
ExecuteQueryRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_NEPTUNEGRAPH_API ExecuteQueryRequest()=default
ExecuteQueryRequest & WithPlanCache(PlanCacheType value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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