AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartQueryExecutionRequest.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/AthenaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/athena/model/QueryExecutionContext.h>
11#include <aws/athena/model/ResultConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/athena/model/ResultReuseConfiguration.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace Athena
20{
21namespace Model
22{
23
27 {
28 public:
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 "StartQueryExecution"; }
36
37 AWS_ATHENA_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetQueryString() const{ return m_queryString; }
47 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
48 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
49 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
50 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
51 inline StartQueryExecutionRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
52 inline StartQueryExecutionRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
53 inline StartQueryExecutionRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
55
57
71 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
72 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
73 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
74 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
75 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
77 inline StartQueryExecutionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
78 inline StartQueryExecutionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
80
82
85 inline const QueryExecutionContext& GetQueryExecutionContext() const{ return m_queryExecutionContext; }
86 inline bool QueryExecutionContextHasBeenSet() const { return m_queryExecutionContextHasBeenSet; }
87 inline void SetQueryExecutionContext(const QueryExecutionContext& value) { m_queryExecutionContextHasBeenSet = true; m_queryExecutionContext = value; }
88 inline void SetQueryExecutionContext(QueryExecutionContext&& value) { m_queryExecutionContextHasBeenSet = true; m_queryExecutionContext = std::move(value); }
92
94
102 inline const ResultConfiguration& GetResultConfiguration() const{ return m_resultConfiguration; }
103 inline bool ResultConfigurationHasBeenSet() const { return m_resultConfigurationHasBeenSet; }
104 inline void SetResultConfiguration(const ResultConfiguration& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = value; }
105 inline void SetResultConfiguration(ResultConfiguration&& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = std::move(value); }
109
111
114 inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
115 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
116 inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
117 inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
118 inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
119 inline StartQueryExecutionRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
120 inline StartQueryExecutionRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
121 inline StartQueryExecutionRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
123
125
130 inline const Aws::Vector<Aws::String>& GetExecutionParameters() const{ return m_executionParameters; }
131 inline bool ExecutionParametersHasBeenSet() const { return m_executionParametersHasBeenSet; }
132 inline void SetExecutionParameters(const Aws::Vector<Aws::String>& value) { m_executionParametersHasBeenSet = true; m_executionParameters = value; }
133 inline void SetExecutionParameters(Aws::Vector<Aws::String>&& value) { m_executionParametersHasBeenSet = true; m_executionParameters = std::move(value); }
136 inline StartQueryExecutionRequest& AddExecutionParameters(const Aws::String& value) { m_executionParametersHasBeenSet = true; m_executionParameters.push_back(value); return *this; }
137 inline StartQueryExecutionRequest& AddExecutionParameters(Aws::String&& value) { m_executionParametersHasBeenSet = true; m_executionParameters.push_back(std::move(value)); return *this; }
138 inline StartQueryExecutionRequest& AddExecutionParameters(const char* value) { m_executionParametersHasBeenSet = true; m_executionParameters.push_back(value); return *this; }
140
142
145 inline const ResultReuseConfiguration& GetResultReuseConfiguration() const{ return m_resultReuseConfiguration; }
146 inline bool ResultReuseConfigurationHasBeenSet() const { return m_resultReuseConfigurationHasBeenSet; }
147 inline void SetResultReuseConfiguration(const ResultReuseConfiguration& value) { m_resultReuseConfigurationHasBeenSet = true; m_resultReuseConfiguration = value; }
148 inline void SetResultReuseConfiguration(ResultReuseConfiguration&& value) { m_resultReuseConfigurationHasBeenSet = true; m_resultReuseConfiguration = std::move(value); }
152 private:
153
154 Aws::String m_queryString;
155 bool m_queryStringHasBeenSet = false;
156
157 Aws::String m_clientRequestToken;
158 bool m_clientRequestTokenHasBeenSet = false;
159
160 QueryExecutionContext m_queryExecutionContext;
161 bool m_queryExecutionContextHasBeenSet = false;
162
163 ResultConfiguration m_resultConfiguration;
164 bool m_resultConfigurationHasBeenSet = false;
165
166 Aws::String m_workGroup;
167 bool m_workGroupHasBeenSet = false;
168
169 Aws::Vector<Aws::String> m_executionParameters;
170 bool m_executionParametersHasBeenSet = false;
171
172 ResultReuseConfiguration m_resultReuseConfiguration;
173 bool m_resultReuseConfigurationHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace Athena
178} // namespace Aws
StartQueryExecutionRequest & WithClientRequestToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetExecutionParameters() const
void SetResultReuseConfiguration(const ResultReuseConfiguration &value)
StartQueryExecutionRequest & WithQueryString(const Aws::String &value)
void SetExecutionParameters(const Aws::Vector< Aws::String > &value)
StartQueryExecutionRequest & WithResultConfiguration(const ResultConfiguration &value)
StartQueryExecutionRequest & WithQueryExecutionContext(const QueryExecutionContext &value)
StartQueryExecutionRequest & WithClientRequestToken(const char *value)
StartQueryExecutionRequest & WithWorkGroup(const char *value)
void SetResultConfiguration(const ResultConfiguration &value)
StartQueryExecutionRequest & WithResultReuseConfiguration(const ResultReuseConfiguration &value)
void SetExecutionParameters(Aws::Vector< Aws::String > &&value)
StartQueryExecutionRequest & WithQueryString(Aws::String &&value)
StartQueryExecutionRequest & WithExecutionParameters(Aws::Vector< Aws::String > &&value)
StartQueryExecutionRequest & WithWorkGroup(const Aws::String &value)
void SetQueryExecutionContext(QueryExecutionContext &&value)
const QueryExecutionContext & GetQueryExecutionContext() const
AWS_ATHENA_API Aws::String SerializePayload() const override
void SetResultReuseConfiguration(ResultReuseConfiguration &&value)
StartQueryExecutionRequest & WithResultReuseConfiguration(ResultReuseConfiguration &&value)
StartQueryExecutionRequest & WithExecutionParameters(const Aws::Vector< Aws::String > &value)
StartQueryExecutionRequest & WithClientRequestToken(Aws::String &&value)
StartQueryExecutionRequest & WithResultConfiguration(ResultConfiguration &&value)
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartQueryExecutionRequest & AddExecutionParameters(const Aws::String &value)
StartQueryExecutionRequest & AddExecutionParameters(const char *value)
StartQueryExecutionRequest & AddExecutionParameters(Aws::String &&value)
const ResultConfiguration & GetResultConfiguration() const
StartQueryExecutionRequest & WithQueryExecutionContext(QueryExecutionContext &&value)
const ResultReuseConfiguration & GetResultReuseConfiguration() const
StartQueryExecutionRequest & WithQueryString(const char *value)
void SetQueryExecutionContext(const QueryExecutionContext &value)
StartQueryExecutionRequest & WithWorkGroup(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector