AWS SDK for C++  1.9.104
AWS SDK for C++
NamedQuery.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Athena
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline NamedQuery& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline NamedQuery& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline NamedQuery& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline const Aws::String& GetDescription() const{ return m_description; }
86 
90  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 
95  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
96 
100  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
101 
105  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
106 
110  inline NamedQuery& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 
115  inline NamedQuery& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
116 
120  inline NamedQuery& WithDescription(const char* value) { SetDescription(value); return *this;}
121 
122 
126  inline const Aws::String& GetDatabase() const{ return m_database; }
127 
131  inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
132 
136  inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
137 
141  inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
142 
146  inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
147 
151  inline NamedQuery& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
152 
156  inline NamedQuery& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
157 
161  inline NamedQuery& WithDatabase(const char* value) { SetDatabase(value); return *this;}
162 
163 
167  inline const Aws::String& GetQueryString() const{ return m_queryString; }
168 
172  inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
173 
177  inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
178 
182  inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
183 
187  inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
188 
192  inline NamedQuery& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
193 
197  inline NamedQuery& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
198 
202  inline NamedQuery& WithQueryString(const char* value) { SetQueryString(value); return *this;}
203 
204 
208  inline const Aws::String& GetNamedQueryId() const{ return m_namedQueryId; }
209 
213  inline bool NamedQueryIdHasBeenSet() const { return m_namedQueryIdHasBeenSet; }
214 
218  inline void SetNamedQueryId(const Aws::String& value) { m_namedQueryIdHasBeenSet = true; m_namedQueryId = value; }
219 
223  inline void SetNamedQueryId(Aws::String&& value) { m_namedQueryIdHasBeenSet = true; m_namedQueryId = std::move(value); }
224 
228  inline void SetNamedQueryId(const char* value) { m_namedQueryIdHasBeenSet = true; m_namedQueryId.assign(value); }
229 
233  inline NamedQuery& WithNamedQueryId(const Aws::String& value) { SetNamedQueryId(value); return *this;}
234 
238  inline NamedQuery& WithNamedQueryId(Aws::String&& value) { SetNamedQueryId(std::move(value)); return *this;}
239 
243  inline NamedQuery& WithNamedQueryId(const char* value) { SetNamedQueryId(value); return *this;}
244 
245 
249  inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
250 
254  inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
255 
259  inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
260 
264  inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
265 
269  inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
270 
274  inline NamedQuery& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
275 
279  inline NamedQuery& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
280 
284  inline NamedQuery& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
285 
286  private:
287 
288  Aws::String m_name;
289  bool m_nameHasBeenSet;
290 
291  Aws::String m_description;
292  bool m_descriptionHasBeenSet;
293 
294  Aws::String m_database;
295  bool m_databaseHasBeenSet;
296 
297  Aws::String m_queryString;
298  bool m_queryStringHasBeenSet;
299 
300  Aws::String m_namedQueryId;
301  bool m_namedQueryIdHasBeenSet;
302 
303  Aws::String m_workGroup;
304  bool m_workGroupHasBeenSet;
305  };
306 
307 } // namespace Model
308 } // namespace Athena
309 } // namespace Aws
Aws::Athena::Model::NamedQuery::SetWorkGroup
void SetWorkGroup(const char *value)
Definition: NamedQuery.h:269
Aws::Athena::Model::NamedQuery::GetDescription
const Aws::String & GetDescription() const
Definition: NamedQuery.h:85
Aws::Athena::Model::NamedQuery::WithQueryString
NamedQuery & WithQueryString(const Aws::String &value)
Definition: NamedQuery.h:192
Aws::Athena::Model::NamedQuery::DatabaseHasBeenSet
bool DatabaseHasBeenSet() const
Definition: NamedQuery.h:131
Aws::Athena::Model::NamedQuery::operator=
NamedQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::NamedQuery::WithName
NamedQuery & WithName(Aws::String &&value)
Definition: NamedQuery.h:74
Aws::Athena::Model::NamedQuery::GetDatabase
const Aws::String & GetDatabase() const
Definition: NamedQuery.h:126
Aws::Athena::Model::NamedQuery::SetNamedQueryId
void SetNamedQueryId(const Aws::String &value)
Definition: NamedQuery.h:218
Aws::Athena::Model::NamedQuery::SetDescription
void SetDescription(Aws::String &&value)
Definition: NamedQuery.h:100
Aws::Athena::Model::NamedQuery::WithWorkGroup
NamedQuery & WithWorkGroup(const Aws::String &value)
Definition: NamedQuery.h:274
Aws::Athena::Model::NamedQuery::SetNamedQueryId
void SetNamedQueryId(Aws::String &&value)
Definition: NamedQuery.h:223
Aws::Athena::Model::NamedQuery
Definition: NamedQuery.h:33
Aws::Athena::Model::NamedQuery::WithName
NamedQuery & WithName(const Aws::String &value)
Definition: NamedQuery.h:69
Aws::Athena::Model::NamedQuery::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Athena::Model::NamedQuery::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: NamedQuery.h:172
Aws::Athena::Model::NamedQuery::SetQueryString
void SetQueryString(Aws::String &&value)
Definition: NamedQuery.h:182
Aws::Athena::Model::NamedQuery::NamedQueryIdHasBeenSet
bool NamedQueryIdHasBeenSet() const
Definition: NamedQuery.h:213
Aws::Athena::Model::NamedQuery::WithQueryString
NamedQuery & WithQueryString(const char *value)
Definition: NamedQuery.h:202
Aws::Athena::Model::NamedQuery::GetName
const Aws::String & GetName() const
Definition: NamedQuery.h:44
Aws::Athena::Model::NamedQuery::WithNamedQueryId
NamedQuery & WithNamedQueryId(const char *value)
Definition: NamedQuery.h:243
Aws::Athena::Model::NamedQuery::SetWorkGroup
void SetWorkGroup(const Aws::String &value)
Definition: NamedQuery.h:259
Aws::Athena::Model::NamedQuery::WithDatabase
NamedQuery & WithDatabase(const char *value)
Definition: NamedQuery.h:161
Aws::Athena::Model::NamedQuery::WithWorkGroup
NamedQuery & WithWorkGroup(const char *value)
Definition: NamedQuery.h:284
Aws::Athena::Model::NamedQuery::SetDescription
void SetDescription(const char *value)
Definition: NamedQuery.h:105
Aws::Athena::Model::NamedQuery::GetQueryString
const Aws::String & GetQueryString() const
Definition: NamedQuery.h:167
Aws::Athena::Model::NamedQuery::SetQueryString
void SetQueryString(const Aws::String &value)
Definition: NamedQuery.h:177
Aws::Athena::Model::NamedQuery::SetDatabase
void SetDatabase(const Aws::String &value)
Definition: NamedQuery.h:136
Aws::Athena::Model::NamedQuery::SetName
void SetName(const char *value)
Definition: NamedQuery.h:64
Aws::Athena::Model::NamedQuery::WithDescription
NamedQuery & WithDescription(Aws::String &&value)
Definition: NamedQuery.h:115
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Athena_EXPORTS.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Athena::Model::NamedQuery::SetName
void SetName(Aws::String &&value)
Definition: NamedQuery.h:59
Aws::Athena::Model::NamedQuery::WithNamedQueryId
NamedQuery & WithNamedQueryId(Aws::String &&value)
Definition: NamedQuery.h:238
Aws::Athena::Model::NamedQuery::SetDatabase
void SetDatabase(const char *value)
Definition: NamedQuery.h:146
Aws::Athena::Model::NamedQuery::WithDescription
NamedQuery & WithDescription(const Aws::String &value)
Definition: NamedQuery.h:110
Aws::Athena::Model::NamedQuery::WithWorkGroup
NamedQuery & WithWorkGroup(Aws::String &&value)
Definition: NamedQuery.h:279
Aws::Athena::Model::NamedQuery::WithDatabase
NamedQuery & WithDatabase(const Aws::String &value)
Definition: NamedQuery.h:151
Aws::Athena::Model::NamedQuery::GetWorkGroup
const Aws::String & GetWorkGroup() const
Definition: NamedQuery.h:249
Aws::Athena::Model::NamedQuery::SetDatabase
void SetDatabase(Aws::String &&value)
Definition: NamedQuery.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::NamedQuery::WorkGroupHasBeenSet
bool WorkGroupHasBeenSet() const
Definition: NamedQuery.h:254
Aws::Athena::Model::NamedQuery::NamedQuery
NamedQuery()
Aws::Athena::Model::NamedQuery::NameHasBeenSet
bool NameHasBeenSet() const
Definition: NamedQuery.h:49
Aws::Athena::Model::NamedQuery::WithQueryString
NamedQuery & WithQueryString(Aws::String &&value)
Definition: NamedQuery.h:197
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::NamedQuery::NamedQuery
NamedQuery(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::NamedQuery::SetQueryString
void SetQueryString(const char *value)
Definition: NamedQuery.h:187
Aws::Athena::Model::NamedQuery::WithNamedQueryId
NamedQuery & WithNamedQueryId(const Aws::String &value)
Definition: NamedQuery.h:233
Aws::Athena::Model::NamedQuery::WithName
NamedQuery & WithName(const char *value)
Definition: NamedQuery.h:79
Aws::Athena::Model::NamedQuery::SetName
void SetName(const Aws::String &value)
Definition: NamedQuery.h:54
Aws::Athena::Model::NamedQuery::SetWorkGroup
void SetWorkGroup(Aws::String &&value)
Definition: NamedQuery.h:264
Aws::Athena::Model::NamedQuery::WithDatabase
NamedQuery & WithDatabase(Aws::String &&value)
Definition: NamedQuery.h:156
Aws::Athena::Model::NamedQuery::SetDescription
void SetDescription(const Aws::String &value)
Definition: NamedQuery.h:95
Aws::Athena::Model::NamedQuery::SetNamedQueryId
void SetNamedQueryId(const char *value)
Definition: NamedQuery.h:228
Aws::Athena::Model::NamedQuery::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: NamedQuery.h:90
Aws::Athena::Model::NamedQuery::WithDescription
NamedQuery & WithDescription(const char *value)
Definition: NamedQuery.h:120
Aws::Athena::Model::NamedQuery::GetNamedQueryId
const Aws::String & GetNamedQueryId() const
Definition: NamedQuery.h:208