AWS SDK for C++  1.9.104
AWS SDK for C++
QueryExecutionContext.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 
45  inline const Aws::String& GetDatabase() const{ return m_database; }
46 
51  inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
52 
57  inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
58 
63  inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
64 
69  inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
70 
75  inline QueryExecutionContext& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
76 
81  inline QueryExecutionContext& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
82 
87  inline QueryExecutionContext& WithDatabase(const char* value) { SetDatabase(value); return *this;}
88 
89 
93  inline const Aws::String& GetCatalog() const{ return m_catalog; }
94 
98  inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
99 
103  inline void SetCatalog(const Aws::String& value) { m_catalogHasBeenSet = true; m_catalog = value; }
104 
108  inline void SetCatalog(Aws::String&& value) { m_catalogHasBeenSet = true; m_catalog = std::move(value); }
109 
113  inline void SetCatalog(const char* value) { m_catalogHasBeenSet = true; m_catalog.assign(value); }
114 
118  inline QueryExecutionContext& WithCatalog(const Aws::String& value) { SetCatalog(value); return *this;}
119 
123  inline QueryExecutionContext& WithCatalog(Aws::String&& value) { SetCatalog(std::move(value)); return *this;}
124 
128  inline QueryExecutionContext& WithCatalog(const char* value) { SetCatalog(value); return *this;}
129 
130  private:
131 
132  Aws::String m_database;
133  bool m_databaseHasBeenSet;
134 
135  Aws::String m_catalog;
136  bool m_catalogHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace Athena
141 } // namespace Aws
Aws::Athena::Model::QueryExecutionContext::SetDatabase
void SetDatabase(const Aws::String &value)
Definition: QueryExecutionContext.h:57
Aws::Athena::Model::QueryExecutionContext::SetCatalog
void SetCatalog(const char *value)
Definition: QueryExecutionContext.h:113
Aws::Athena::Model::QueryExecutionContext::WithDatabase
QueryExecutionContext & WithDatabase(const char *value)
Definition: QueryExecutionContext.h:87
Aws::Athena::Model::QueryExecutionContext::QueryExecutionContext
QueryExecutionContext()
Aws::Athena::Model::QueryExecutionContext::QueryExecutionContext
QueryExecutionContext(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::QueryExecutionContext::SetDatabase
void SetDatabase(const char *value)
Definition: QueryExecutionContext.h:69
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::QueryExecutionContext::SetDatabase
void SetDatabase(Aws::String &&value)
Definition: QueryExecutionContext.h:63
Aws::Athena::Model::QueryExecutionContext::WithCatalog
QueryExecutionContext & WithCatalog(const char *value)
Definition: QueryExecutionContext.h:128
Aws::Athena::Model::QueryExecutionContext::CatalogHasBeenSet
bool CatalogHasBeenSet() const
Definition: QueryExecutionContext.h:98
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Athena_EXPORTS.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Athena::Model::QueryExecutionContext::DatabaseHasBeenSet
bool DatabaseHasBeenSet() const
Definition: QueryExecutionContext.h:51
Aws::Athena::Model::QueryExecutionContext::WithCatalog
QueryExecutionContext & WithCatalog(const Aws::String &value)
Definition: QueryExecutionContext.h:118
Aws::Athena::Model::QueryExecutionContext::GetCatalog
const Aws::String & GetCatalog() const
Definition: QueryExecutionContext.h:93
Aws::Athena::Model::QueryExecutionContext::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Athena::Model::QueryExecutionContext::SetCatalog
void SetCatalog(Aws::String &&value)
Definition: QueryExecutionContext.h:108
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::QueryExecutionContext::WithDatabase
QueryExecutionContext & WithDatabase(const Aws::String &value)
Definition: QueryExecutionContext.h:75
Aws::Athena::Model::QueryExecutionContext::WithCatalog
QueryExecutionContext & WithCatalog(Aws::String &&value)
Definition: QueryExecutionContext.h:123
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::QueryExecutionContext
Definition: QueryExecutionContext.h:33
Aws::Athena::Model::QueryExecutionContext::GetDatabase
const Aws::String & GetDatabase() const
Definition: QueryExecutionContext.h:45
Aws::Athena::Model::QueryExecutionContext::operator=
QueryExecutionContext & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::QueryExecutionContext::WithDatabase
QueryExecutionContext & WithDatabase(Aws::String &&value)
Definition: QueryExecutionContext.h:81
Aws::Athena::Model::QueryExecutionContext::SetCatalog
void SetCatalog(const Aws::String &value)
Definition: QueryExecutionContext.h:103