AWS SDK for C++  1.9.14
AWS SDK for C++
GetTableMetadataRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Athena
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetTableMetadata"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetCatalogName() const{ return m_catalogName; }
42 
47  inline bool CatalogNameHasBeenSet() const { return m_catalogNameHasBeenSet; }
48 
53  inline void SetCatalogName(const Aws::String& value) { m_catalogNameHasBeenSet = true; m_catalogName = value; }
54 
59  inline void SetCatalogName(Aws::String&& value) { m_catalogNameHasBeenSet = true; m_catalogName = std::move(value); }
60 
65  inline void SetCatalogName(const char* value) { m_catalogNameHasBeenSet = true; m_catalogName.assign(value); }
66 
71  inline GetTableMetadataRequest& WithCatalogName(const Aws::String& value) { SetCatalogName(value); return *this;}
72 
77  inline GetTableMetadataRequest& WithCatalogName(Aws::String&& value) { SetCatalogName(std::move(value)); return *this;}
78 
83  inline GetTableMetadataRequest& WithCatalogName(const char* value) { SetCatalogName(value); return *this;}
84 
85 
89  inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
90 
94  inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
95 
99  inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
100 
104  inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
105 
109  inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
110 
114  inline GetTableMetadataRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
115 
119  inline GetTableMetadataRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
120 
124  inline GetTableMetadataRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
125 
126 
130  inline const Aws::String& GetTableName() const{ return m_tableName; }
131 
135  inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
136 
140  inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
141 
145  inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
146 
150  inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
151 
155  inline GetTableMetadataRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
156 
160  inline GetTableMetadataRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
161 
165  inline GetTableMetadataRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
166 
167  private:
168 
169  Aws::String m_catalogName;
170  bool m_catalogNameHasBeenSet;
171 
172  Aws::String m_databaseName;
173  bool m_databaseNameHasBeenSet;
174 
175  Aws::String m_tableName;
176  bool m_tableNameHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace Athena
181 } // namespace Aws
Aws::Athena::Model::GetTableMetadataRequest::SetDatabaseName
void SetDatabaseName(const char *value)
Definition: GetTableMetadataRequest.h:109
Aws::Athena::Model::GetTableMetadataRequest::GetCatalogName
const Aws::String & GetCatalogName() const
Definition: GetTableMetadataRequest.h:41
Aws::Athena::Model::GetTableMetadataRequest::WithTableName
GetTableMetadataRequest & WithTableName(const char *value)
Definition: GetTableMetadataRequest.h:165
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Athena::Model::GetTableMetadataRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetTableMetadataRequest.h:30
Aws::Athena::Model::GetTableMetadataRequest::CatalogNameHasBeenSet
bool CatalogNameHasBeenSet() const
Definition: GetTableMetadataRequest.h:47
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::GetTableMetadataRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Athena::AthenaRequest
Definition: AthenaRequest.h:17
Aws::Athena::Model::GetTableMetadataRequest::GetDatabaseName
const Aws::String & GetDatabaseName() const
Definition: GetTableMetadataRequest.h:89
Aws::Athena::Model::GetTableMetadataRequest::WithTableName
GetTableMetadataRequest & WithTableName(const Aws::String &value)
Definition: GetTableMetadataRequest.h:155
Aws::Athena::Model::GetTableMetadataRequest::GetTableName
const Aws::String & GetTableName() const
Definition: GetTableMetadataRequest.h:130
Aws::Athena::Model::GetTableMetadataRequest::WithCatalogName
GetTableMetadataRequest & WithCatalogName(const Aws::String &value)
Definition: GetTableMetadataRequest.h:71
Aws::Athena::Model::GetTableMetadataRequest::WithCatalogName
GetTableMetadataRequest & WithCatalogName(Aws::String &&value)
Definition: GetTableMetadataRequest.h:77
Aws::Athena::Model::GetTableMetadataRequest::SetTableName
void SetTableName(const char *value)
Definition: GetTableMetadataRequest.h:150
Aws::Athena::Model::GetTableMetadataRequest::WithTableName
GetTableMetadataRequest & WithTableName(Aws::String &&value)
Definition: GetTableMetadataRequest.h:160
Aws::Athena::Model::GetTableMetadataRequest::WithDatabaseName
GetTableMetadataRequest & WithDatabaseName(const Aws::String &value)
Definition: GetTableMetadataRequest.h:114
Aws::Athena::Model::GetTableMetadataRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Athena::Model::GetTableMetadataRequest::SetCatalogName
void SetCatalogName(const char *value)
Definition: GetTableMetadataRequest.h:65
Aws::Athena::Model::GetTableMetadataRequest::SetTableName
void SetTableName(Aws::String &&value)
Definition: GetTableMetadataRequest.h:145
Aws::Athena::Model::GetTableMetadataRequest::SetDatabaseName
void SetDatabaseName(const Aws::String &value)
Definition: GetTableMetadataRequest.h:99
Aws::Athena::Model::GetTableMetadataRequest::WithCatalogName
GetTableMetadataRequest & WithCatalogName(const char *value)
Definition: GetTableMetadataRequest.h:83
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::GetTableMetadataRequest
Definition: GetTableMetadataRequest.h:22
Aws::Athena::Model::GetTableMetadataRequest::WithDatabaseName
GetTableMetadataRequest & WithDatabaseName(const char *value)
Definition: GetTableMetadataRequest.h:124
Aws::Athena::Model::GetTableMetadataRequest::DatabaseNameHasBeenSet
bool DatabaseNameHasBeenSet() const
Definition: GetTableMetadataRequest.h:94
Aws::Athena::Model::GetTableMetadataRequest::TableNameHasBeenSet
bool TableNameHasBeenSet() const
Definition: GetTableMetadataRequest.h:135
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::GetTableMetadataRequest::SetDatabaseName
void SetDatabaseName(Aws::String &&value)
Definition: GetTableMetadataRequest.h:104
Aws::Athena::Model::GetTableMetadataRequest::WithDatabaseName
GetTableMetadataRequest & WithDatabaseName(Aws::String &&value)
Definition: GetTableMetadataRequest.h:119
Aws::Athena::Model::GetTableMetadataRequest::SetCatalogName
void SetCatalogName(const Aws::String &value)
Definition: GetTableMetadataRequest.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AthenaRequest.h
Aws::Athena::Model::GetTableMetadataRequest::SetTableName
void SetTableName(const Aws::String &value)
Definition: GetTableMetadataRequest.h:140
Aws::Athena::Model::GetTableMetadataRequest::SetCatalogName
void SetCatalogName(Aws::String &&value)
Definition: GetTableMetadataRequest.h:59
Aws::Athena::Model::GetTableMetadataRequest::GetTableMetadataRequest
GetTableMetadataRequest()