AWS SDK for C++  1.9.108
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 
92  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
93 
105  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
106 
118  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
119 
131  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
132 
144  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
145 
157  inline StartQueryExecutionRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
158 
170  inline StartQueryExecutionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
171 
183  inline StartQueryExecutionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
184 
185 
189  inline const QueryExecutionContext& GetQueryExecutionContext() const{ return m_queryExecutionContext; }
190 
194  inline bool QueryExecutionContextHasBeenSet() const { return m_queryExecutionContextHasBeenSet; }
195 
199  inline void SetQueryExecutionContext(const QueryExecutionContext& value) { m_queryExecutionContextHasBeenSet = true; m_queryExecutionContext = value; }
200 
204  inline void SetQueryExecutionContext(QueryExecutionContext&& value) { m_queryExecutionContextHasBeenSet = true; m_queryExecutionContext = std::move(value); }
205 
209  inline StartQueryExecutionRequest& WithQueryExecutionContext(const QueryExecutionContext& value) { SetQueryExecutionContext(value); return *this;}
210 
214  inline StartQueryExecutionRequest& WithQueryExecutionContext(QueryExecutionContext&& value) { SetQueryExecutionContext(std::move(value)); return *this;}
215 
216 
225  inline const ResultConfiguration& GetResultConfiguration() const{ return m_resultConfiguration; }
226 
235  inline bool ResultConfigurationHasBeenSet() const { return m_resultConfigurationHasBeenSet; }
236 
245  inline void SetResultConfiguration(const ResultConfiguration& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = value; }
246 
255  inline void SetResultConfiguration(ResultConfiguration&& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = std::move(value); }
256 
265  inline StartQueryExecutionRequest& WithResultConfiguration(const ResultConfiguration& value) { SetResultConfiguration(value); return *this;}
266 
275  inline StartQueryExecutionRequest& WithResultConfiguration(ResultConfiguration&& value) { SetResultConfiguration(std::move(value)); return *this;}
276 
277 
281  inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
282 
286  inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
287 
291  inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
292 
296  inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
297 
301  inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
302 
306  inline StartQueryExecutionRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
307 
311  inline StartQueryExecutionRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
312 
316  inline StartQueryExecutionRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
317 
318  private:
319 
320  Aws::String m_queryString;
321  bool m_queryStringHasBeenSet;
322 
323  Aws::String m_clientRequestToken;
324  bool m_clientRequestTokenHasBeenSet;
325 
326  QueryExecutionContext m_queryExecutionContext;
327  bool m_queryExecutionContextHasBeenSet;
328 
329  ResultConfiguration m_resultConfiguration;
330  bool m_resultConfigurationHasBeenSet;
331 
332  Aws::String m_workGroup;
333  bool m_workGroupHasBeenSet;
334  };
335 
336 } // namespace Model
337 } // namespace Athena
338 } // 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:92
Aws::Athena::Model::StartQueryExecutionRequest::SetWorkGroup
void SetWorkGroup(const char *value)
Definition: StartQueryExecutionRequest.h:301
Aws::Athena::Model::StartQueryExecutionRequest::WithClientRequestToken
StartQueryExecutionRequest & WithClientRequestToken(const Aws::String &value)
Definition: StartQueryExecutionRequest.h:157
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:170
Aws::Athena::Model::StartQueryExecutionRequest::WithClientRequestToken
StartQueryExecutionRequest & WithClientRequestToken(const char *value)
Definition: StartQueryExecutionRequest.h:183
Aws::Athena::Model::ResultConfiguration
Definition: ResultConfiguration.h:36
Aws::Athena::Model::StartQueryExecutionRequest::WithQueryExecutionContext
StartQueryExecutionRequest & WithQueryExecutionContext(QueryExecutionContext &&value)
Definition: StartQueryExecutionRequest.h:214
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:255
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:291
Aws::Athena::Model::StartQueryExecutionRequest
Definition: StartQueryExecutionRequest.h:25
Aws::Athena::Model::StartQueryExecutionRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: StartQueryExecutionRequest.h:144
Aws::Athena::Model::StartQueryExecutionRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: StartQueryExecutionRequest.h:131
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:225
Aws::Athena::Model::StartQueryExecutionRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: StartQueryExecutionRequest.h:118
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:199
Aws::Athena::Model::StartQueryExecutionRequest::WithQueryExecutionContext
StartQueryExecutionRequest & WithQueryExecutionContext(const QueryExecutionContext &value)
Definition: StartQueryExecutionRequest.h:209
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:311
Aws::Athena::Model::StartQueryExecutionRequest::SetQueryExecutionContext
void SetQueryExecutionContext(QueryExecutionContext &&value)
Definition: StartQueryExecutionRequest.h:204
Aws::Athena::Model::StartQueryExecutionRequest::SetWorkGroup
void SetWorkGroup(Aws::String &&value)
Definition: StartQueryExecutionRequest.h:296
Aws::Athena::Model::StartQueryExecutionRequest::WithWorkGroup
StartQueryExecutionRequest & WithWorkGroup(const Aws::String &value)
Definition: StartQueryExecutionRequest.h:306
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:235
Aws::Athena::Model::StartQueryExecutionRequest::WithResultConfiguration
StartQueryExecutionRequest & WithResultConfiguration(const ResultConfiguration &value)
Definition: StartQueryExecutionRequest.h:265
Aws::Athena::Model::StartQueryExecutionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Athena::Model::StartQueryExecutionRequest::GetWorkGroup
const Aws::String & GetWorkGroup() const
Definition: StartQueryExecutionRequest.h:281
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::StartQueryExecutionRequest::QueryExecutionContextHasBeenSet
bool QueryExecutionContextHasBeenSet() const
Definition: StartQueryExecutionRequest.h:194
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:316
Aws::Athena::Model::StartQueryExecutionRequest::SetResultConfiguration
void SetResultConfiguration(const ResultConfiguration &value)
Definition: StartQueryExecutionRequest.h:245
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:286
Aws::Athena::Model::StartQueryExecutionRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: StartQueryExecutionRequest.h:105
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:189
Aws::Athena::Model::StartQueryExecutionRequest::WithResultConfiguration
StartQueryExecutionRequest & WithResultConfiguration(ResultConfiguration &&value)
Definition: StartQueryExecutionRequest.h:275