AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ColumnInfo.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/athena/model/ColumnNullable.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Athena
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ATHENA_API ColumnInfo();
37 AWS_ATHENA_API ColumnInfo(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetCatalogName() const{ return m_catalogName; }
47 inline bool CatalogNameHasBeenSet() const { return m_catalogNameHasBeenSet; }
48 inline void SetCatalogName(const Aws::String& value) { m_catalogNameHasBeenSet = true; m_catalogName = value; }
49 inline void SetCatalogName(Aws::String&& value) { m_catalogNameHasBeenSet = true; m_catalogName = std::move(value); }
50 inline void SetCatalogName(const char* value) { m_catalogNameHasBeenSet = true; m_catalogName.assign(value); }
51 inline ColumnInfo& WithCatalogName(const Aws::String& value) { SetCatalogName(value); return *this;}
52 inline ColumnInfo& WithCatalogName(Aws::String&& value) { SetCatalogName(std::move(value)); return *this;}
53 inline ColumnInfo& WithCatalogName(const char* value) { SetCatalogName(value); return *this;}
55
57
60 inline const Aws::String& GetSchemaName() const{ return m_schemaName; }
61 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
62 inline void SetSchemaName(const Aws::String& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; }
63 inline void SetSchemaName(Aws::String&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::move(value); }
64 inline void SetSchemaName(const char* value) { m_schemaNameHasBeenSet = true; m_schemaName.assign(value); }
65 inline ColumnInfo& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;}
66 inline ColumnInfo& WithSchemaName(Aws::String&& value) { SetSchemaName(std::move(value)); return *this;}
67 inline ColumnInfo& WithSchemaName(const char* value) { SetSchemaName(value); return *this;}
69
71
74 inline const Aws::String& GetTableName() const{ return m_tableName; }
75 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
76 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
77 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
78 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
79 inline ColumnInfo& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
80 inline ColumnInfo& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
81 inline ColumnInfo& WithTableName(const char* value) { SetTableName(value); return *this;}
83
85
88 inline const Aws::String& GetName() const{ return m_name; }
89 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
92 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
93 inline ColumnInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
94 inline ColumnInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
95 inline ColumnInfo& WithName(const char* value) { SetName(value); return *this;}
97
99
102 inline const Aws::String& GetLabel() const{ return m_label; }
103 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
104 inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
105 inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
106 inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
107 inline ColumnInfo& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
108 inline ColumnInfo& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
109 inline ColumnInfo& WithLabel(const char* value) { SetLabel(value); return *this;}
111
113
116 inline const Aws::String& GetType() const{ return m_type; }
117 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
118 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
119 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
120 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
121 inline ColumnInfo& WithType(const Aws::String& value) { SetType(value); return *this;}
122 inline ColumnInfo& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
123 inline ColumnInfo& WithType(const char* value) { SetType(value); return *this;}
125
127
131 inline int GetPrecision() const{ return m_precision; }
132 inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
133 inline void SetPrecision(int value) { m_precisionHasBeenSet = true; m_precision = value; }
134 inline ColumnInfo& WithPrecision(int value) { SetPrecision(value); return *this;}
136
138
142 inline int GetScale() const{ return m_scale; }
143 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
144 inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; }
145 inline ColumnInfo& WithScale(int value) { SetScale(value); return *this;}
147
149
152 inline const ColumnNullable& GetNullable() const{ return m_nullable; }
153 inline bool NullableHasBeenSet() const { return m_nullableHasBeenSet; }
154 inline void SetNullable(const ColumnNullable& value) { m_nullableHasBeenSet = true; m_nullable = value; }
155 inline void SetNullable(ColumnNullable&& value) { m_nullableHasBeenSet = true; m_nullable = std::move(value); }
156 inline ColumnInfo& WithNullable(const ColumnNullable& value) { SetNullable(value); return *this;}
157 inline ColumnInfo& WithNullable(ColumnNullable&& value) { SetNullable(std::move(value)); return *this;}
159
161
164 inline bool GetCaseSensitive() const{ return m_caseSensitive; }
165 inline bool CaseSensitiveHasBeenSet() const { return m_caseSensitiveHasBeenSet; }
166 inline void SetCaseSensitive(bool value) { m_caseSensitiveHasBeenSet = true; m_caseSensitive = value; }
167 inline ColumnInfo& WithCaseSensitive(bool value) { SetCaseSensitive(value); return *this;}
169 private:
170
171 Aws::String m_catalogName;
172 bool m_catalogNameHasBeenSet = false;
173
174 Aws::String m_schemaName;
175 bool m_schemaNameHasBeenSet = false;
176
177 Aws::String m_tableName;
178 bool m_tableNameHasBeenSet = false;
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
183 Aws::String m_label;
184 bool m_labelHasBeenSet = false;
185
186 Aws::String m_type;
187 bool m_typeHasBeenSet = false;
188
189 int m_precision;
190 bool m_precisionHasBeenSet = false;
191
192 int m_scale;
193 bool m_scaleHasBeenSet = false;
194
195 ColumnNullable m_nullable;
196 bool m_nullableHasBeenSet = false;
197
198 bool m_caseSensitive;
199 bool m_caseSensitiveHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace Athena
204} // namespace Aws
ColumnInfo & WithSchemaName(const char *value)
Definition ColumnInfo.h:67
const Aws::String & GetCatalogName() const
Definition ColumnInfo.h:46
const ColumnNullable & GetNullable() const
Definition ColumnInfo.h:152
void SetName(const char *value)
Definition ColumnInfo.h:92
ColumnInfo & WithType(Aws::String &&value)
Definition ColumnInfo.h:122
ColumnInfo & WithCaseSensitive(bool value)
Definition ColumnInfo.h:167
ColumnInfo & WithTableName(Aws::String &&value)
Definition ColumnInfo.h:80
void SetNullable(ColumnNullable &&value)
Definition ColumnInfo.h:155
ColumnInfo & WithCatalogName(Aws::String &&value)
Definition ColumnInfo.h:52
void SetCaseSensitive(bool value)
Definition ColumnInfo.h:166
ColumnInfo & WithCatalogName(const Aws::String &value)
Definition ColumnInfo.h:51
AWS_ATHENA_API ColumnInfo(Aws::Utils::Json::JsonView jsonValue)
void SetTableName(const Aws::String &value)
Definition ColumnInfo.h:76
void SetCatalogName(const char *value)
Definition ColumnInfo.h:50
void SetSchemaName(const char *value)
Definition ColumnInfo.h:64
ColumnInfo & WithNullable(ColumnNullable &&value)
Definition ColumnInfo.h:157
void SetSchemaName(const Aws::String &value)
Definition ColumnInfo.h:62
ColumnInfo & WithLabel(Aws::String &&value)
Definition ColumnInfo.h:108
void SetCatalogName(Aws::String &&value)
Definition ColumnInfo.h:49
void SetName(Aws::String &&value)
Definition ColumnInfo.h:91
void SetType(const char *value)
Definition ColumnInfo.h:120
void SetCatalogName(const Aws::String &value)
Definition ColumnInfo.h:48
AWS_ATHENA_API ColumnInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTableName(const char *value)
Definition ColumnInfo.h:78
ColumnInfo & WithName(Aws::String &&value)
Definition ColumnInfo.h:94
ColumnInfo & WithTableName(const char *value)
Definition ColumnInfo.h:81
void SetType(Aws::String &&value)
Definition ColumnInfo.h:119
void SetLabel(const Aws::String &value)
Definition ColumnInfo.h:104
ColumnInfo & WithType(const char *value)
Definition ColumnInfo.h:123
ColumnInfo & WithSchemaName(Aws::String &&value)
Definition ColumnInfo.h:66
void SetName(const Aws::String &value)
Definition ColumnInfo.h:90
void SetNullable(const ColumnNullable &value)
Definition ColumnInfo.h:154
void SetLabel(Aws::String &&value)
Definition ColumnInfo.h:105
ColumnInfo & WithNullable(const ColumnNullable &value)
Definition ColumnInfo.h:156
void SetType(const Aws::String &value)
Definition ColumnInfo.h:118
ColumnInfo & WithType(const Aws::String &value)
Definition ColumnInfo.h:121
ColumnInfo & WithCatalogName(const char *value)
Definition ColumnInfo.h:53
ColumnInfo & WithPrecision(int value)
Definition ColumnInfo.h:134
void SetTableName(Aws::String &&value)
Definition ColumnInfo.h:77
ColumnInfo & WithSchemaName(const Aws::String &value)
Definition ColumnInfo.h:65
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
ColumnInfo & WithName(const char *value)
Definition ColumnInfo.h:95
void SetSchemaName(Aws::String &&value)
Definition ColumnInfo.h:63
const Aws::String & GetSchemaName() const
Definition ColumnInfo.h:60
ColumnInfo & WithScale(int value)
Definition ColumnInfo.h:145
ColumnInfo & WithName(const Aws::String &value)
Definition ColumnInfo.h:93
ColumnInfo & WithLabel(const Aws::String &value)
Definition ColumnInfo.h:107
void SetLabel(const char *value)
Definition ColumnInfo.h:106
const Aws::String & GetName() const
Definition ColumnInfo.h:88
ColumnInfo & WithLabel(const char *value)
Definition ColumnInfo.h:109
const Aws::String & GetTableName() const
Definition ColumnInfo.h:74
ColumnInfo & WithTableName(const Aws::String &value)
Definition ColumnInfo.h:79
const Aws::String & GetLabel() const
Definition ColumnInfo.h:102
const Aws::String & GetType() const
Definition ColumnInfo.h:116
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue