AWS SDK for C++  1.9.14
AWS SDK for C++
StartQueryExecutionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace Athena
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "StartQueryExecution"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetQueryString() const{ return m_queryString; }
44 
48  inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
49 
53  inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
54 
58  inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
59 
63  inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
64 
68  inline StartQueryExecutionRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
69 
73  inline StartQueryExecutionRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
74 
78  inline StartQueryExecutionRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
79 
80 
91  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
92 
103  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
104 
115  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
116 
127  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
128 
139  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
140 
151  inline StartQueryExecutionRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
152 
163  inline StartQueryExecutionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
164 
175  inline StartQueryExecutionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
176 
177 
181  inline const QueryExecutionContext& GetQueryExecutionContext() const{ return m_queryExecutionContext; }
182 
186  inline bool QueryExecutionContextHasBeenSet() const { return m_queryExecutionContextHasBeenSet; }
187 
191  inline void SetQueryExecutionContext(const QueryExecutionContext& value) { m_queryExecutionContextHasBeenSet = true; m_queryExecutionContext = value; }
192 
196  inline void SetQueryExecutionContext(QueryExecutionContext&& value) { m_queryExecutionContextHasBeenSet = true; m_queryExecutionContext = std::move(value); }
197 
201  inline StartQueryExecutionRequest& WithQueryExecutionContext(const QueryExecutionContext& value) { SetQueryExecutionContext(value); return *this;}
202 
206  inline StartQueryExecutionRequest& WithQueryExecutionContext(QueryExecutionContext&& value) { SetQueryExecutionContext(std::move(value)); return *this;}
207 
208 
217  inline const ResultConfiguration& GetResultConfiguration() const{ return m_resultConfiguration; }
218 
227  inline bool ResultConfigurationHasBeenSet() const { return m_resultConfigurationHasBeenSet; }
228 
237  inline void SetResultConfiguration(const ResultConfiguration& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = value; }
238 
247  inline void SetResultConfiguration(ResultConfiguration&& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = std::move(value); }
248 
257  inline StartQueryExecutionRequest& WithResultConfiguration(const ResultConfiguration& value) { SetResultConfiguration(value); return *this;}
258 
267  inline StartQueryExecutionRequest& WithResultConfiguration(ResultConfiguration&& value) { SetResultConfiguration(std::move(value)); return *this;}
268 
269 
273  inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
274 
278  inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
279 
283  inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
284 
288  inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
289 
293  inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
294 
298  inline StartQueryExecutionRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
299 
303  inline StartQueryExecutionRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
304 
308  inline StartQueryExecutionRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
309 
310  private:
311 
312  Aws::String m_queryString;
313  bool m_queryStringHasBeenSet;
314 
315  Aws::String m_clientRequestToken;
316  bool m_clientRequestTokenHasBeenSet;
317 
318  QueryExecutionContext m_queryExecutionContext;
319  bool m_queryExecutionContextHasBeenSet;
320 
321  ResultConfiguration m_resultConfiguration;
322  bool m_resultConfigurationHasBeenSet;
323 
324  Aws::String m_workGroup;
325  bool m_workGroupHasBeenSet;
326  };
327 
328 } // namespace Model
329 } // namespace Athena
330 } // namespace Aws
Aws::Athena::Model::StartQueryExecutionRequest::WithQueryString
StartQueryExecutionRequest & WithQueryString(const char *value)
Definition: StartQueryExecutionRequest.h:78
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Athena::Model::StartQueryExecutionRequest::SetQueryString
void SetQueryString(const Aws::String &value)
Definition: StartQueryExecutionRequest.h:53
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::AthenaRequest
Definition: AthenaRequest.h:17
Aws::Athena::Model::StartQueryExecutionRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: StartQueryExecutionRequest.h:91
Aws::Athena::Model::StartQueryExecutionRequest::SetWorkGroup
void SetWorkGroup(const char *value)
Definition: StartQueryExecutionRequest.h:293
Aws::Athena::Model::StartQueryExecutionRequest::WithClientRequestToken
StartQueryExecutionRequest & WithClientRequestToken(const Aws::String &value)
Definition: StartQueryExecutionRequest.h:151
Aws::Athena::Model::StartQueryExecutionRequest::WithQueryString
StartQueryExecutionRequest & WithQueryString(Aws::String &&value)
Definition: StartQueryExecutionRequest.h:73
Aws::Athena::Model::StartQueryExecutionRequest::StartQueryExecutionRequest
StartQueryExecutionRequest()
Aws::Athena::Model::StartQueryExecutionRequest::WithClientRequestToken
StartQueryExecutionRequest & WithClientRequestToken(Aws::String &&value)
Definition: StartQueryExecutionRequest.h:163
Aws::Athena::Model::StartQueryExecutionRequest::WithClientRequestToken
StartQueryExecutionRequest & WithClientRequestToken(const char *value)
Definition: StartQueryExecutionRequest.h:175
Aws::Athena::Model::ResultConfiguration
Definition: ResultConfiguration.h:36
Aws::Athena::Model::StartQueryExecutionRequest::WithQueryExecutionContext
StartQueryExecutionRequest & WithQueryExecutionContext(QueryExecutionContext &&value)
Definition: StartQueryExecutionRequest.h:206
QueryExecutionContext.h
Aws::Athena::Model::StartQueryExecutionRequest::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: StartQueryExecutionRequest.h:48
Aws::Athena::Model::StartQueryExecutionRequest::SetResultConfiguration
void SetResultConfiguration(ResultConfiguration &&value)
Definition: StartQueryExecutionRequest.h:247
Aws::Athena::Model::StartQueryExecutionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Athena::Model::StartQueryExecutionRequest::SetWorkGroup
void SetWorkGroup(const Aws::String &value)
Definition: StartQueryExecutionRequest.h:283
Aws::Athena::Model::StartQueryExecutionRequest
Definition: StartQueryExecutionRequest.h:25
Aws::Athena::Model::StartQueryExecutionRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: StartQueryExecutionRequest.h:139
Aws::Athena::Model::StartQueryExecutionRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: StartQueryExecutionRequest.h:127
Aws::Athena::Model::StartQueryExecutionRequest::WithQueryString
StartQueryExecutionRequest & WithQueryString(const Aws::String &value)
Definition: StartQueryExecutionRequest.h:68
Aws::Athena::Model::StartQueryExecutionRequest::GetResultConfiguration
const ResultConfiguration & GetResultConfiguration() const
Definition: StartQueryExecutionRequest.h:217
Aws::Athena::Model::StartQueryExecutionRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: StartQueryExecutionRequest.h:115
Aws::Athena::Model::StartQueryExecutionRequest::SetQueryString
void SetQueryString(const char *value)
Definition: StartQueryExecutionRequest.h:63
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::StartQueryExecutionRequest::SetQueryExecutionContext
void SetQueryExecutionContext(const QueryExecutionContext &value)
Definition: StartQueryExecutionRequest.h:191
Aws::Athena::Model::StartQueryExecutionRequest::WithQueryExecutionContext
StartQueryExecutionRequest & WithQueryExecutionContext(const QueryExecutionContext &value)
Definition: StartQueryExecutionRequest.h:201
Aws::Athena::Model::StartQueryExecutionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartQueryExecutionRequest.h:33
Aws::Athena::Model::StartQueryExecutionRequest::WithWorkGroup
StartQueryExecutionRequest & WithWorkGroup(Aws::String &&value)
Definition: StartQueryExecutionRequest.h:303
Aws::Athena::Model::StartQueryExecutionRequest::SetQueryExecutionContext
void SetQueryExecutionContext(QueryExecutionContext &&value)
Definition: StartQueryExecutionRequest.h:196
Aws::Athena::Model::StartQueryExecutionRequest::SetWorkGroup
void SetWorkGroup(Aws::String &&value)
Definition: StartQueryExecutionRequest.h:288
Aws::Athena::Model::StartQueryExecutionRequest::WithWorkGroup
StartQueryExecutionRequest & WithWorkGroup(const Aws::String &value)
Definition: StartQueryExecutionRequest.h:298
Aws::Athena::Model::StartQueryExecutionRequest::GetQueryString
const Aws::String & GetQueryString() const
Definition: StartQueryExecutionRequest.h:43
Aws::Athena::Model::StartQueryExecutionRequest::ResultConfigurationHasBeenSet
bool ResultConfigurationHasBeenSet() const
Definition: StartQueryExecutionRequest.h:227
Aws::Athena::Model::StartQueryExecutionRequest::WithResultConfiguration
StartQueryExecutionRequest & WithResultConfiguration(const ResultConfiguration &value)
Definition: StartQueryExecutionRequest.h:257
Aws::Athena::Model::StartQueryExecutionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Athena::Model::StartQueryExecutionRequest::GetWorkGroup
const Aws::String & GetWorkGroup() const
Definition: StartQueryExecutionRequest.h:273
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::StartQueryExecutionRequest::QueryExecutionContextHasBeenSet
bool QueryExecutionContextHasBeenSet() const
Definition: StartQueryExecutionRequest.h:186
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::StartQueryExecutionRequest::WithWorkGroup
StartQueryExecutionRequest & WithWorkGroup(const char *value)
Definition: StartQueryExecutionRequest.h:308
Aws::Athena::Model::StartQueryExecutionRequest::SetResultConfiguration
void SetResultConfiguration(const ResultConfiguration &value)
Definition: StartQueryExecutionRequest.h:237
Aws::Athena::Model::QueryExecutionContext
Definition: QueryExecutionContext.h:33
AthenaRequest.h
UUID.h
ResultConfiguration.h
Aws::Athena::Model::StartQueryExecutionRequest::WorkGroupHasBeenSet
bool WorkGroupHasBeenSet() const
Definition: StartQueryExecutionRequest.h:278
Aws::Athena::Model::StartQueryExecutionRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: StartQueryExecutionRequest.h:103
Aws::Athena::Model::StartQueryExecutionRequest::SetQueryString
void SetQueryString(Aws::String &&value)
Definition: StartQueryExecutionRequest.h:58
Aws::Athena::Model::StartQueryExecutionRequest::GetQueryExecutionContext
const QueryExecutionContext & GetQueryExecutionContext() const
Definition: StartQueryExecutionRequest.h:181
Aws::Athena::Model::StartQueryExecutionRequest::WithResultConfiguration
StartQueryExecutionRequest & WithResultConfiguration(ResultConfiguration &&value)
Definition: StartQueryExecutionRequest.h:267