AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ExecuteQueryRequest.h
1
6#pragma once
7#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
8#include <aws/neptune-graph/NeptuneGraphRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/neptune-graph/model/QueryLanguage.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/neptune-graph/model/PlanCacheType.h>
13#include <aws/neptune-graph/model/ExplainMode.h>
14#include <aws/core/utils/Document.h>
15#include <utility>
16
17namespace Aws
18{
19namespace NeptuneGraph
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_NEPTUNEGRAPH_API ExecuteQueryRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ExecuteQuery"; }
36
37 AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override;
38
39 AWS_NEPTUNEGRAPH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
44 AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override;
45
47
50 inline const Aws::String& GetGraphIdentifier() const { return m_graphIdentifier; }
51 inline bool GraphIdentifierHasBeenSet() const { return m_graphIdentifierHasBeenSet; }
52 template<typename GraphIdentifierT = Aws::String>
53 void SetGraphIdentifier(GraphIdentifierT&& value) { m_graphIdentifierHasBeenSet = true; m_graphIdentifier = std::forward<GraphIdentifierT>(value); }
54 template<typename GraphIdentifierT = Aws::String>
55 ExecuteQueryRequest& WithGraphIdentifier(GraphIdentifierT&& value) { SetGraphIdentifier(std::forward<GraphIdentifierT>(value)); return *this;}
57
59
62 inline const Aws::String& GetQueryString() const { return m_queryString; }
63 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
64 template<typename QueryStringT = Aws::String>
65 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
66 template<typename QueryStringT = Aws::String>
67 ExecuteQueryRequest& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
69
71
75 inline QueryLanguage GetLanguage() const { return m_language; }
76 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
77 inline void SetLanguage(QueryLanguage value) { m_languageHasBeenSet = true; m_language = value; }
78 inline ExecuteQueryRequest& WithLanguage(QueryLanguage value) { SetLanguage(value); return *this;}
80
82
86 inline const Aws::Map<Aws::String, Aws::Utils::Document>& GetParameters() const { return m_parameters; }
87 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
88 template<typename ParametersT = Aws::Map<Aws::String, Aws::Utils::Document>>
89 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
90 template<typename ParametersT = Aws::Map<Aws::String, Aws::Utils::Document>>
91 ExecuteQueryRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
92 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Utils::Document>
93 ExecuteQueryRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
94 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
95 }
97
99
105 inline PlanCacheType GetPlanCache() const { return m_planCache; }
106 inline bool PlanCacheHasBeenSet() const { return m_planCacheHasBeenSet; }
107 inline void SetPlanCache(PlanCacheType value) { m_planCacheHasBeenSet = true; m_planCache = value; }
108 inline ExecuteQueryRequest& WithPlanCache(PlanCacheType value) { SetPlanCache(value); return *this;}
110
112
118 inline ExplainMode GetExplainMode() const { return m_explainMode; }
119 inline bool ExplainModeHasBeenSet() const { return m_explainModeHasBeenSet; }
120 inline void SetExplainMode(ExplainMode value) { m_explainModeHasBeenSet = true; m_explainMode = value; }
121 inline ExecuteQueryRequest& WithExplainMode(ExplainMode value) { SetExplainMode(value); return *this;}
123
125
128 inline int GetQueryTimeoutMilliseconds() const { return m_queryTimeoutMilliseconds; }
129 inline bool QueryTimeoutMillisecondsHasBeenSet() const { return m_queryTimeoutMillisecondsHasBeenSet; }
130 inline void SetQueryTimeoutMilliseconds(int value) { m_queryTimeoutMillisecondsHasBeenSet = true; m_queryTimeoutMilliseconds = value; }
133 private:
134
135 Aws::String m_graphIdentifier;
136 bool m_graphIdentifierHasBeenSet = false;
137
138 Aws::String m_queryString;
139 bool m_queryStringHasBeenSet = false;
140
142 bool m_languageHasBeenSet = false;
143
145 bool m_parametersHasBeenSet = false;
146
148 bool m_planCacheHasBeenSet = false;
149
150 ExplainMode m_explainMode{ExplainMode::NOT_SET};
151 bool m_explainModeHasBeenSet = false;
152
153 int m_queryTimeoutMilliseconds{0};
154 bool m_queryTimeoutMillisecondsHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace NeptuneGraph
159} // 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