AWS SDK for C++  1.9.123
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 
213  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
214 
226  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
227 
239  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
240 
252  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
253 
265  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
266 
278  inline CreateNamedQueryRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
279 
291  inline CreateNamedQueryRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
292 
304  inline CreateNamedQueryRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
305 
306 
310  inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
311 
315  inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
316 
320  inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
321 
325  inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
326 
330  inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
331 
335  inline CreateNamedQueryRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
336 
340  inline CreateNamedQueryRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
341 
345  inline CreateNamedQueryRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
346 
347  private:
348 
349  Aws::String m_name;
350  bool m_nameHasBeenSet;
351 
352  Aws::String m_description;
353  bool m_descriptionHasBeenSet;
354 
355  Aws::String m_database;
356  bool m_databaseHasBeenSet;
357 
358  Aws::String m_queryString;
359  bool m_queryStringHasBeenSet;
360 
361  Aws::String m_clientRequestToken;
362  bool m_clientRequestTokenHasBeenSet;
363 
364  Aws::String m_workGroup;
365  bool m_workGroupHasBeenSet;
366  };
367 
368 } // namespace Model
369 } // namespace Athena
370 } // 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:252
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:330
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:291
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:226
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:310
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:345
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:213
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:278
Aws::Athena::Model::CreateNamedQueryRequest::WithWorkGroup
CreateNamedQueryRequest & WithWorkGroup(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:340
Aws::Athena::Model::CreateNamedQueryRequest::SetWorkGroup
void SetWorkGroup(Aws::String &&value)
Definition: CreateNamedQueryRequest.h:325
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:320
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:239
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:315
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:335
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:304
AthenaRequest.h
UUID.h
Aws::Athena::Model::CreateNamedQueryRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateNamedQueryRequest.h:265
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