AWS SDK for C++  1.9.16
AWS SDK for C++
CreateNamedQueryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace Athena
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateNamedQuery"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
46  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 
51  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 
56  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 
61  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 
66  inline CreateNamedQueryRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 
71  inline CreateNamedQueryRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 
76  inline CreateNamedQueryRequest& WithName(const char* value) { SetName(value); return *this;}
77 
78 
82  inline const Aws::String& GetDescription() const{ return m_description; }
83 
87  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 
92  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 
97  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
98 
102  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 
107  inline CreateNamedQueryRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 
112  inline CreateNamedQueryRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
113 
117  inline CreateNamedQueryRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
118 
119 
123  inline const Aws::String& GetDatabase() const{ return m_database; }
124 
128  inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
129 
133  inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
134 
138  inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
139 
143  inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
144 
148  inline CreateNamedQueryRequest& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
149 
153  inline CreateNamedQueryRequest& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
154 
158  inline CreateNamedQueryRequest& WithDatabase(const char* value) { SetDatabase(value); return *this;}
159 
160 
164  inline const Aws::String& GetQueryString() const{ return m_queryString; }
165 
169  inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
170 
174  inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
175 
179  inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
180 
184  inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
185 
189  inline CreateNamedQueryRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
190 
194  inline CreateNamedQueryRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
195 
199  inline CreateNamedQueryRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
200 
201 
212  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
213 
224  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
225 
236  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
237 
248  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
249 
260  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
261 
272  inline CreateNamedQueryRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
273 
284  inline CreateNamedQueryRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
285 
296  inline CreateNamedQueryRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
297 
298 
302  inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
303 
307  inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
308 
312  inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
313 
317  inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
318 
322  inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
323 
327  inline CreateNamedQueryRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
328 
332  inline CreateNamedQueryRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
333 
337  inline CreateNamedQueryRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
338 
339  private:
340 
341  Aws::String m_name;
342  bool m_nameHasBeenSet;
343 
344  Aws::String m_description;
345  bool m_descriptionHasBeenSet;
346 
347  Aws::String m_database;
348  bool m_databaseHasBeenSet;
349 
350  Aws::String m_queryString;
351  bool m_queryStringHasBeenSet;
352 
353  Aws::String m_clientRequestToken;
354  bool m_clientRequestTokenHasBeenSet;
355 
356  Aws::String m_workGroup;
357  bool m_workGroupHasBeenSet;
358  };
359 
360 } // namespace Model
361 } // namespace Athena
362 } // namespace Aws
Aws::Athena::Model::CreateNamedQueryRequest::WithName
CreateNamedQueryRequest & WithName(const Aws::String &value)
Definition: CreateNamedQueryRequest.h:66
Aws::Athena::Model::CreateNamedQueryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Athena::Model::CreateNamedQueryRequest::WithName
CreateNamedQueryRequest & WithName(const char *value)
Definition: CreateNamedQueryRequest.h:76
Aws::Athena::Model::CreateNamedQueryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateNamedQueryRequest.h:31
Aws::Athena::Model::CreateNamedQueryRequest::SetQueryString
void SetQueryString(const char *value)
Definition: CreateNamedQueryRequest.h:184
Aws::Athena::Model::CreateNamedQueryRequest::WithDescription
CreateNamedQueryRequest & WithDescription(const char *value)
Definition: CreateNamedQueryRequest.h:117
Aws::Athena::Model::CreateNamedQueryRequest::SetDatabase
void SetDatabase(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:138
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Athena::Model::CreateNamedQueryRequest::WithDatabase
CreateNamedQueryRequest & WithDatabase(const Aws::String &value)
Definition: CreateNamedQueryRequest.h:148
Aws::Athena::Model::CreateNamedQueryRequest
Definition: CreateNamedQueryRequest.h:23
Aws::Athena::Model::CreateNamedQueryRequest::WithDescription
CreateNamedQueryRequest & WithDescription(const Aws::String &value)
Definition: CreateNamedQueryRequest.h:107
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::AthenaRequest
Definition: AthenaRequest.h:17
Aws::Athena::Model::CreateNamedQueryRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:248
Aws::Athena::Model::CreateNamedQueryRequest::SetQueryString
void SetQueryString(const Aws::String &value)
Definition: CreateNamedQueryRequest.h:174
Aws::Athena::Model::CreateNamedQueryRequest::SetDatabase
void SetDatabase(const char *value)
Definition: CreateNamedQueryRequest.h:143
Aws::Athena::Model::CreateNamedQueryRequest::GetName
const Aws::String & GetName() const
Definition: CreateNamedQueryRequest.h:41
Aws::Athena::Model::CreateNamedQueryRequest::WithDatabase
CreateNamedQueryRequest & WithDatabase(const char *value)
Definition: CreateNamedQueryRequest.h:158
Aws::Athena::Model::CreateNamedQueryRequest::SetWorkGroup
void SetWorkGroup(const char *value)
Definition: CreateNamedQueryRequest.h:322
Aws::Athena::Model::CreateNamedQueryRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateNamedQueryRequest.h:92
Aws::Athena::Model::CreateNamedQueryRequest::WithClientRequestToken
CreateNamedQueryRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:284
Aws::Athena::Model::CreateNamedQueryRequest::WithQueryString
CreateNamedQueryRequest & WithQueryString(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:194
Aws::Athena::Model::CreateNamedQueryRequest::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: CreateNamedQueryRequest.h:169
Aws::Athena::Model::CreateNamedQueryRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateNamedQueryRequest.h:224
Aws::Athena::Model::CreateNamedQueryRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateNamedQueryRequest.h:87
Aws::Athena::Model::CreateNamedQueryRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:97
Aws::Athena::Model::CreateNamedQueryRequest::SetQueryString
void SetQueryString(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:179
Aws::Athena::Model::CreateNamedQueryRequest::GetWorkGroup
const Aws::String & GetWorkGroup() const
Definition: CreateNamedQueryRequest.h:302
Aws::Athena::Model::CreateNamedQueryRequest::SetDatabase
void SetDatabase(const Aws::String &value)
Definition: CreateNamedQueryRequest.h:133
Aws::Athena::Model::CreateNamedQueryRequest::WithWorkGroup
CreateNamedQueryRequest & WithWorkGroup(const char *value)
Definition: CreateNamedQueryRequest.h:337
Aws::Athena::Model::CreateNamedQueryRequest::GetQueryString
const Aws::String & GetQueryString() const
Definition: CreateNamedQueryRequest.h:164
Aws::Athena::Model::CreateNamedQueryRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateNamedQueryRequest.h:212
Aws::Athena::Model::CreateNamedQueryRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateNamedQueryRequest.h:51
Aws::Athena::Model::CreateNamedQueryRequest::WithClientRequestToken
CreateNamedQueryRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateNamedQueryRequest.h:272
Aws::Athena::Model::CreateNamedQueryRequest::WithWorkGroup
CreateNamedQueryRequest & WithWorkGroup(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:332
Aws::Athena::Model::CreateNamedQueryRequest::SetWorkGroup
void SetWorkGroup(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:317
Aws::Athena::Model::CreateNamedQueryRequest::WithQueryString
CreateNamedQueryRequest & WithQueryString(const Aws::String &value)
Definition: CreateNamedQueryRequest.h:189
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::CreateNamedQueryRequest::SetWorkGroup
void SetWorkGroup(const Aws::String &value)
Definition: CreateNamedQueryRequest.h:312
Aws::Athena::Model::CreateNamedQueryRequest::WithQueryString
CreateNamedQueryRequest & WithQueryString(const char *value)
Definition: CreateNamedQueryRequest.h:199
Aws::Athena::Model::CreateNamedQueryRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateNamedQueryRequest.h:236
Aws::Athena::Model::CreateNamedQueryRequest::WithName
CreateNamedQueryRequest & WithName(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:71
Aws::Athena::Model::CreateNamedQueryRequest::DatabaseHasBeenSet
bool DatabaseHasBeenSet() const
Definition: CreateNamedQueryRequest.h:128
Aws::Athena::Model::CreateNamedQueryRequest::WorkGroupHasBeenSet
bool WorkGroupHasBeenSet() const
Definition: CreateNamedQueryRequest.h:307
Aws::Athena::Model::CreateNamedQueryRequest::GetDatabase
const Aws::String & GetDatabase() const
Definition: CreateNamedQueryRequest.h:123
Aws::Athena::Model::CreateNamedQueryRequest::WithDatabase
CreateNamedQueryRequest & WithDatabase(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:153
Aws::Athena::Model::CreateNamedQueryRequest::CreateNamedQueryRequest
CreateNamedQueryRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::CreateNamedQueryRequest::WithDescription
CreateNamedQueryRequest & WithDescription(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:112
Aws::Athena::Model::CreateNamedQueryRequest::WithWorkGroup
CreateNamedQueryRequest & WithWorkGroup(const Aws::String &value)
Definition: CreateNamedQueryRequest.h:327
Aws::Athena::Model::CreateNamedQueryRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateNamedQueryRequest.h:82
Aws::Athena::Model::CreateNamedQueryRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateNamedQueryRequest.h:102
Aws::Athena::Model::CreateNamedQueryRequest::SetName
void SetName(const char *value)
Definition: CreateNamedQueryRequest.h:61
Aws::Athena::Model::CreateNamedQueryRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateNamedQueryRequest.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::CreateNamedQueryRequest::WithClientRequestToken
CreateNamedQueryRequest & WithClientRequestToken(const char *value)
Definition: CreateNamedQueryRequest.h:296
AthenaRequest.h
UUID.h
Aws::Athena::Model::CreateNamedQueryRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateNamedQueryRequest.h:260
Aws::Athena::Model::CreateNamedQueryRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:56
Aws::Athena::Model::CreateNamedQueryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override