AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGraphIdentifier(const Aws::String& value) { m_graphIdentifierHasBeenSet = true; m_graphIdentifier = value; }
53 inline void SetGraphIdentifier(Aws::String&& value) { m_graphIdentifierHasBeenSet = true; m_graphIdentifier = std::move(value); }
54 inline void SetGraphIdentifier(const char* value) { m_graphIdentifierHasBeenSet = true; m_graphIdentifier.assign(value); }
55 inline ExecuteQueryRequest& WithGraphIdentifier(const Aws::String& value) { SetGraphIdentifier(value); return *this;}
56 inline ExecuteQueryRequest& WithGraphIdentifier(Aws::String&& value) { SetGraphIdentifier(std::move(value)); return *this;}
57 inline ExecuteQueryRequest& WithGraphIdentifier(const char* value) { SetGraphIdentifier(value); return *this;}
59
61
64 inline const Aws::String& GetQueryString() const{ return m_queryString; }
65 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
66 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
67 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
68 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
69 inline ExecuteQueryRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
70 inline ExecuteQueryRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
71 inline ExecuteQueryRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
73
75
79 inline const QueryLanguage& GetLanguage() const{ return m_language; }
80 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
81 inline void SetLanguage(const QueryLanguage& value) { m_languageHasBeenSet = true; m_language = value; }
82 inline void SetLanguage(QueryLanguage&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
83 inline ExecuteQueryRequest& WithLanguage(const QueryLanguage& value) { SetLanguage(value); return *this;}
84 inline ExecuteQueryRequest& WithLanguage(QueryLanguage&& value) { SetLanguage(std::move(value)); return *this;}
86
88
92 inline const Aws::Map<Aws::String, Aws::Utils::Document>& GetParameters() const{ return m_parameters; }
93 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
94 inline void SetParameters(const Aws::Map<Aws::String, Aws::Utils::Document>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
95 inline void SetParameters(Aws::Map<Aws::String, Aws::Utils::Document>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
98 inline ExecuteQueryRequest& AddParameters(const Aws::String& key, const Aws::Utils::Document& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
99 inline ExecuteQueryRequest& AddParameters(Aws::String&& key, const Aws::Utils::Document& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
100 inline ExecuteQueryRequest& AddParameters(const Aws::String& key, Aws::Utils::Document&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
101 inline ExecuteQueryRequest& AddParameters(Aws::String&& key, Aws::Utils::Document&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
102 inline ExecuteQueryRequest& AddParameters(const char* key, Aws::Utils::Document&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
103 inline ExecuteQueryRequest& AddParameters(const char* key, const Aws::Utils::Document& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
105
107
113 inline const PlanCacheType& GetPlanCache() const{ return m_planCache; }
114 inline bool PlanCacheHasBeenSet() const { return m_planCacheHasBeenSet; }
115 inline void SetPlanCache(const PlanCacheType& value) { m_planCacheHasBeenSet = true; m_planCache = value; }
116 inline void SetPlanCache(PlanCacheType&& value) { m_planCacheHasBeenSet = true; m_planCache = std::move(value); }
117 inline ExecuteQueryRequest& WithPlanCache(const PlanCacheType& value) { SetPlanCache(value); return *this;}
118 inline ExecuteQueryRequest& WithPlanCache(PlanCacheType&& value) { SetPlanCache(std::move(value)); return *this;}
120
122
128 inline const ExplainMode& GetExplainMode() const{ return m_explainMode; }
129 inline bool ExplainModeHasBeenSet() const { return m_explainModeHasBeenSet; }
130 inline void SetExplainMode(const ExplainMode& value) { m_explainModeHasBeenSet = true; m_explainMode = value; }
131 inline void SetExplainMode(ExplainMode&& value) { m_explainModeHasBeenSet = true; m_explainMode = std::move(value); }
132 inline ExecuteQueryRequest& WithExplainMode(const ExplainMode& value) { SetExplainMode(value); return *this;}
133 inline ExecuteQueryRequest& WithExplainMode(ExplainMode&& value) { SetExplainMode(std::move(value)); return *this;}
135
137
140 inline int GetQueryTimeoutMilliseconds() const{ return m_queryTimeoutMilliseconds; }
141 inline bool QueryTimeoutMillisecondsHasBeenSet() const { return m_queryTimeoutMillisecondsHasBeenSet; }
142 inline void SetQueryTimeoutMilliseconds(int value) { m_queryTimeoutMillisecondsHasBeenSet = true; m_queryTimeoutMilliseconds = value; }
145 private:
146
147 Aws::String m_graphIdentifier;
148 bool m_graphIdentifierHasBeenSet = false;
149
150 Aws::String m_queryString;
151 bool m_queryStringHasBeenSet = false;
152
153 QueryLanguage m_language;
154 bool m_languageHasBeenSet = false;
155
157 bool m_parametersHasBeenSet = false;
158
159 PlanCacheType m_planCache;
160 bool m_planCacheHasBeenSet = false;
161
162 ExplainMode m_explainMode;
163 bool m_explainModeHasBeenSet = false;
164
165 int m_queryTimeoutMilliseconds;
166 bool m_queryTimeoutMillisecondsHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace NeptuneGraph
171} // namespace Aws
ExecuteQueryRequest & WithExplainMode(const ExplainMode &value)
ExecuteQueryRequest & WithGraphIdentifier(const Aws::String &value)
void SetGraphIdentifier(const Aws::String &value)
void SetPlanCache(const PlanCacheType &value)
ExecuteQueryRequest & WithExplainMode(ExplainMode &&value)
ExecuteQueryRequest & WithGraphIdentifier(const char *value)
ExecuteQueryRequest & WithParameters(Aws::Map< Aws::String, Aws::Utils::Document > &&value)
virtual const char * GetServiceRequestName() const override
void SetParameters(const Aws::Map< Aws::String, Aws::Utils::Document > &value)
AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override
ExecuteQueryRequest & WithQueryString(const char *value)
ExecuteQueryRequest & AddParameters(const char *key, Aws::Utils::Document &&value)
ExecuteQueryRequest & WithQueryTimeoutMilliseconds(int value)
ExecuteQueryRequest & AddParameters(Aws::String &&key, const Aws::Utils::Document &value)
void SetLanguage(const QueryLanguage &value)
ExecuteQueryRequest & WithLanguage(const QueryLanguage &value)
ExecuteQueryRequest & WithLanguage(QueryLanguage &&value)
ExecuteQueryRequest & WithQueryString(Aws::String &&value)
AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override
ExecuteQueryRequest & WithPlanCache(PlanCacheType &&value)
AWS_NEPTUNEGRAPH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::Utils::Document > & GetParameters() const
ExecuteQueryRequest & WithPlanCache(const PlanCacheType &value)
ExecuteQueryRequest & WithParameters(const Aws::Map< Aws::String, Aws::Utils::Document > &value)
ExecuteQueryRequest & AddParameters(const Aws::String &key, const Aws::Utils::Document &value)
ExecuteQueryRequest & AddParameters(const Aws::String &key, Aws::Utils::Document &&value)
ExecuteQueryRequest & AddParameters(const char *key, const Aws::Utils::Document &value)
ExecuteQueryRequest & AddParameters(Aws::String &&key, Aws::Utils::Document &&value)
ExecuteQueryRequest & WithQueryString(const Aws::String &value)
void SetParameters(Aws::Map< Aws::String, Aws::Utils::Document > &&value)
ExecuteQueryRequest & WithGraphIdentifier(Aws::String &&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