AWS SDK for C++  1.9.104
AWS SDK for C++
ColumnInfo.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Athena
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetCatalogName() const{ return m_catalogName; }
46 
50  inline bool CatalogNameHasBeenSet() const { return m_catalogNameHasBeenSet; }
51 
55  inline void SetCatalogName(const Aws::String& value) { m_catalogNameHasBeenSet = true; m_catalogName = value; }
56 
60  inline void SetCatalogName(Aws::String&& value) { m_catalogNameHasBeenSet = true; m_catalogName = std::move(value); }
61 
65  inline void SetCatalogName(const char* value) { m_catalogNameHasBeenSet = true; m_catalogName.assign(value); }
66 
70  inline ColumnInfo& WithCatalogName(const Aws::String& value) { SetCatalogName(value); return *this;}
71 
75  inline ColumnInfo& WithCatalogName(Aws::String&& value) { SetCatalogName(std::move(value)); return *this;}
76 
80  inline ColumnInfo& WithCatalogName(const char* value) { SetCatalogName(value); return *this;}
81 
82 
86  inline const Aws::String& GetSchemaName() const{ return m_schemaName; }
87 
91  inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
92 
96  inline void SetSchemaName(const Aws::String& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; }
97 
101  inline void SetSchemaName(Aws::String&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::move(value); }
102 
106  inline void SetSchemaName(const char* value) { m_schemaNameHasBeenSet = true; m_schemaName.assign(value); }
107 
111  inline ColumnInfo& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;}
112 
116  inline ColumnInfo& WithSchemaName(Aws::String&& value) { SetSchemaName(std::move(value)); return *this;}
117 
121  inline ColumnInfo& WithSchemaName(const char* value) { SetSchemaName(value); return *this;}
122 
123 
127  inline const Aws::String& GetTableName() const{ return m_tableName; }
128 
132  inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
133 
137  inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
138 
142  inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
143 
147  inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
148 
152  inline ColumnInfo& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
153 
157  inline ColumnInfo& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
158 
162  inline ColumnInfo& WithTableName(const char* value) { SetTableName(value); return *this;}
163 
164 
168  inline const Aws::String& GetName() const{ return m_name; }
169 
173  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
174 
178  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
179 
183  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
184 
188  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
189 
193  inline ColumnInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
194 
198  inline ColumnInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
199 
203  inline ColumnInfo& WithName(const char* value) { SetName(value); return *this;}
204 
205 
209  inline const Aws::String& GetLabel() const{ return m_label; }
210 
214  inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
215 
219  inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
220 
224  inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
225 
229  inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
230 
234  inline ColumnInfo& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
235 
239  inline ColumnInfo& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
240 
244  inline ColumnInfo& WithLabel(const char* value) { SetLabel(value); return *this;}
245 
246 
250  inline const Aws::String& GetType() const{ return m_type; }
251 
255  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
256 
260  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
261 
265  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
266 
270  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
271 
275  inline ColumnInfo& WithType(const Aws::String& value) { SetType(value); return *this;}
276 
280  inline ColumnInfo& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
281 
285  inline ColumnInfo& WithType(const char* value) { SetType(value); return *this;}
286 
287 
292  inline int GetPrecision() const{ return m_precision; }
293 
298  inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
299 
304  inline void SetPrecision(int value) { m_precisionHasBeenSet = true; m_precision = value; }
305 
310  inline ColumnInfo& WithPrecision(int value) { SetPrecision(value); return *this;}
311 
312 
317  inline int GetScale() const{ return m_scale; }
318 
323  inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
324 
329  inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; }
330 
335  inline ColumnInfo& WithScale(int value) { SetScale(value); return *this;}
336 
337 
341  inline const ColumnNullable& GetNullable() const{ return m_nullable; }
342 
346  inline bool NullableHasBeenSet() const { return m_nullableHasBeenSet; }
347 
351  inline void SetNullable(const ColumnNullable& value) { m_nullableHasBeenSet = true; m_nullable = value; }
352 
356  inline void SetNullable(ColumnNullable&& value) { m_nullableHasBeenSet = true; m_nullable = std::move(value); }
357 
361  inline ColumnInfo& WithNullable(const ColumnNullable& value) { SetNullable(value); return *this;}
362 
366  inline ColumnInfo& WithNullable(ColumnNullable&& value) { SetNullable(std::move(value)); return *this;}
367 
368 
372  inline bool GetCaseSensitive() const{ return m_caseSensitive; }
373 
377  inline bool CaseSensitiveHasBeenSet() const { return m_caseSensitiveHasBeenSet; }
378 
382  inline void SetCaseSensitive(bool value) { m_caseSensitiveHasBeenSet = true; m_caseSensitive = value; }
383 
387  inline ColumnInfo& WithCaseSensitive(bool value) { SetCaseSensitive(value); return *this;}
388 
389  private:
390 
391  Aws::String m_catalogName;
392  bool m_catalogNameHasBeenSet;
393 
394  Aws::String m_schemaName;
395  bool m_schemaNameHasBeenSet;
396 
397  Aws::String m_tableName;
398  bool m_tableNameHasBeenSet;
399 
400  Aws::String m_name;
401  bool m_nameHasBeenSet;
402 
403  Aws::String m_label;
404  bool m_labelHasBeenSet;
405 
406  Aws::String m_type;
407  bool m_typeHasBeenSet;
408 
409  int m_precision;
410  bool m_precisionHasBeenSet;
411 
412  int m_scale;
413  bool m_scaleHasBeenSet;
414 
415  ColumnNullable m_nullable;
416  bool m_nullableHasBeenSet;
417 
418  bool m_caseSensitive;
419  bool m_caseSensitiveHasBeenSet;
420  };
421 
422 } // namespace Model
423 } // namespace Athena
424 } // namespace Aws
Aws::Athena::Model::ColumnInfo::SetNullable
void SetNullable(ColumnNullable &&value)
Definition: ColumnInfo.h:356
ColumnNullable.h
Aws::Athena::Model::ColumnInfo::CaseSensitiveHasBeenSet
bool CaseSensitiveHasBeenSet() const
Definition: ColumnInfo.h:377
Aws::Athena::Model::ColumnInfo::WithType
ColumnInfo & WithType(const char *value)
Definition: ColumnInfo.h:285
Aws::Athena::Model::ColumnInfo::ColumnInfo
ColumnInfo()
Aws::Athena::Model::ColumnInfo::GetSchemaName
const Aws::String & GetSchemaName() const
Definition: ColumnInfo.h:86
Aws::Athena::Model::ColumnInfo::SetName
void SetName(const Aws::String &value)
Definition: ColumnInfo.h:178
Aws::Athena::Model::ColumnInfo::GetName
const Aws::String & GetName() const
Definition: ColumnInfo.h:168
Aws::Athena::Model::ColumnInfo::SetLabel
void SetLabel(const char *value)
Definition: ColumnInfo.h:229
Aws::Athena::Model::ColumnInfo::SetNullable
void SetNullable(const ColumnNullable &value)
Definition: ColumnInfo.h:351
Aws::Athena::Model::ColumnInfo::SetTableName
void SetTableName(Aws::String &&value)
Definition: ColumnInfo.h:142
Aws::Athena::Model::ColumnInfo::WithType
ColumnInfo & WithType(const Aws::String &value)
Definition: ColumnInfo.h:275
Aws::Athena::Model::ColumnInfo::GetLabel
const Aws::String & GetLabel() const
Definition: ColumnInfo.h:209
Aws::Athena::Model::ColumnInfo::SetName
void SetName(Aws::String &&value)
Definition: ColumnInfo.h:183
Aws::Athena::Model::ColumnInfo::WithName
ColumnInfo & WithName(const char *value)
Definition: ColumnInfo.h:203
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::ColumnInfo::GetCatalogName
const Aws::String & GetCatalogName() const
Definition: ColumnInfo.h:45
Aws::Athena::Model::ColumnInfo::SetSchemaName
void SetSchemaName(Aws::String &&value)
Definition: ColumnInfo.h:101
Aws::Athena::Model::ColumnInfo::operator=
ColumnInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::ColumnInfo::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ColumnInfo.h:255
Aws::Athena::Model::ColumnInfo::PrecisionHasBeenSet
bool PrecisionHasBeenSet() const
Definition: ColumnInfo.h:298
Aws::Athena::Model::ColumnInfo::WithCatalogName
ColumnInfo & WithCatalogName(const char *value)
Definition: ColumnInfo.h:80
Aws::Athena::Model::ColumnInfo::WithCatalogName
ColumnInfo & WithCatalogName(const Aws::String &value)
Definition: ColumnInfo.h:70
Aws::Athena::Model::ColumnInfo::TableNameHasBeenSet
bool TableNameHasBeenSet() const
Definition: ColumnInfo.h:132
Aws::Athena::Model::ColumnInfo::SetType
void SetType(const Aws::String &value)
Definition: ColumnInfo.h:260
Aws::Athena::Model::ColumnInfo::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ColumnInfo.h:173
Aws::Athena::Model::ColumnInfo::SetPrecision
void SetPrecision(int value)
Definition: ColumnInfo.h:304
Aws::Athena::Model::ColumnInfo::WithScale
ColumnInfo & WithScale(int value)
Definition: ColumnInfo.h:335
Aws::Athena::Model::ColumnInfo::SetName
void SetName(const char *value)
Definition: ColumnInfo.h:188
Aws::Athena::Model::ColumnInfo::SetCatalogName
void SetCatalogName(const char *value)
Definition: ColumnInfo.h:65
Aws::Athena::Model::ColumnInfo::SetCatalogName
void SetCatalogName(Aws::String &&value)
Definition: ColumnInfo.h:60
Aws::Athena::Model::ColumnInfo::SetTableName
void SetTableName(const char *value)
Definition: ColumnInfo.h:147
Aws::Athena::Model::ColumnInfo::SetCatalogName
void SetCatalogName(const Aws::String &value)
Definition: ColumnInfo.h:55
Aws::Athena::Model::ColumnInfo::WithLabel
ColumnInfo & WithLabel(Aws::String &&value)
Definition: ColumnInfo.h:239
Aws::Athena::Model::ColumnInfo::GetCaseSensitive
bool GetCaseSensitive() const
Definition: ColumnInfo.h:372
Aws::Athena::Model::ColumnInfo::WithSchemaName
ColumnInfo & WithSchemaName(Aws::String &&value)
Definition: ColumnInfo.h:116
Aws::Athena::Model::ColumnInfo::WithCatalogName
ColumnInfo & WithCatalogName(Aws::String &&value)
Definition: ColumnInfo.h:75
Aws::Athena::Model::ColumnInfo::CatalogNameHasBeenSet
bool CatalogNameHasBeenSet() const
Definition: ColumnInfo.h:50
Aws::Athena::Model::ColumnInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Athena::Model::ColumnInfo::GetType
const Aws::String & GetType() const
Definition: ColumnInfo.h:250
Aws::Athena::Model::ColumnInfo::LabelHasBeenSet
bool LabelHasBeenSet() const
Definition: ColumnInfo.h:214
Aws::Athena::Model::ColumnInfo::WithName
ColumnInfo & WithName(const Aws::String &value)
Definition: ColumnInfo.h:193
Aws::Athena::Model::ColumnInfo::WithSchemaName
ColumnInfo & WithSchemaName(const char *value)
Definition: ColumnInfo.h:121
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Athena::Model::ColumnInfo::GetPrecision
int GetPrecision() const
Definition: ColumnInfo.h:292
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::ColumnInfo::WithLabel
ColumnInfo & WithLabel(const Aws::String &value)
Definition: ColumnInfo.h:234
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Athena::Model::ColumnInfo::WithTableName
ColumnInfo & WithTableName(const char *value)
Definition: ColumnInfo.h:162
Aws::Athena::Model::ColumnInfo::WithTableName
ColumnInfo & WithTableName(Aws::String &&value)
Definition: ColumnInfo.h:157
Aws::Athena::Model::ColumnInfo::SetType
void SetType(Aws::String &&value)
Definition: ColumnInfo.h:265
Aws::Athena::Model::ColumnInfo::NullableHasBeenSet
bool NullableHasBeenSet() const
Definition: ColumnInfo.h:346
Aws::Athena::Model::ColumnInfo::SetScale
void SetScale(int value)
Definition: ColumnInfo.h:329
Aws::Athena::Model::ColumnInfo::ScaleHasBeenSet
bool ScaleHasBeenSet() const
Definition: ColumnInfo.h:323
Aws::Athena::Model::ColumnInfo::SchemaNameHasBeenSet
bool SchemaNameHasBeenSet() const
Definition: ColumnInfo.h:91
Aws::Athena::Model::ColumnInfo::WithName
ColumnInfo & WithName(Aws::String &&value)
Definition: ColumnInfo.h:198
Aws::Athena::Model::ColumnInfo::WithCaseSensitive
ColumnInfo & WithCaseSensitive(bool value)
Definition: ColumnInfo.h:387
Aws::Athena::Model::ColumnInfo
Definition: ColumnInfo.h:34
Aws::Athena::Model::ColumnInfo::SetTableName
void SetTableName(const Aws::String &value)
Definition: ColumnInfo.h:137
Aws::Athena::Model::ColumnInfo::WithSchemaName
ColumnInfo & WithSchemaName(const Aws::String &value)
Definition: ColumnInfo.h:111
Aws::Athena::Model::ColumnInfo::SetCaseSensitive
void SetCaseSensitive(bool value)
Definition: ColumnInfo.h:382
Aws::Athena::Model::ColumnNullable
ColumnNullable
Definition: ColumnNullable.h:17
Aws::Athena::Model::ColumnInfo::WithPrecision
ColumnInfo & WithPrecision(int value)
Definition: ColumnInfo.h:310
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::ColumnInfo::GetScale
int GetScale() const
Definition: ColumnInfo.h:317
Aws::Athena::Model::ColumnInfo::WithNullable
ColumnInfo & WithNullable(const ColumnNullable &value)
Definition: ColumnInfo.h:361
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::ColumnInfo::SetLabel
void SetLabel(const Aws::String &value)
Definition: ColumnInfo.h:219
Aws::Athena::Model::ColumnInfo::WithType
ColumnInfo & WithType(Aws::String &&value)
Definition: ColumnInfo.h:280
Aws::Athena::Model::ColumnInfo::WithLabel
ColumnInfo & WithLabel(const char *value)
Definition: ColumnInfo.h:244
Aws::Athena::Model::ColumnInfo::SetType
void SetType(const char *value)
Definition: ColumnInfo.h:270
Aws::Athena::Model::ColumnInfo::WithNullable
ColumnInfo & WithNullable(ColumnNullable &&value)
Definition: ColumnInfo.h:366
Aws::Athena::Model::ColumnInfo::WithTableName
ColumnInfo & WithTableName(const Aws::String &value)
Definition: ColumnInfo.h:152
Aws::Athena::Model::ColumnInfo::SetSchemaName
void SetSchemaName(const char *value)
Definition: ColumnInfo.h:106
Aws::Athena::Model::ColumnInfo::SetLabel
void SetLabel(Aws::String &&value)
Definition: ColumnInfo.h:224
Aws::Athena::Model::ColumnInfo::GetTableName
const Aws::String & GetTableName() const
Definition: ColumnInfo.h:127
Aws::Athena::Model::ColumnInfo::SetSchemaName
void SetSchemaName(const Aws::String &value)
Definition: ColumnInfo.h:96
Aws::Athena::Model::ColumnInfo::ColumnInfo
ColumnInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::ColumnInfo::GetNullable
const ColumnNullable & GetNullable() const
Definition: ColumnInfo.h:341