AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
ColumnMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rds-data/RDSDataService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace RDSDataService {
20namespace Model {
21
28 public:
29 AWS_RDSDATASERVICE_API ColumnMetadata() = default;
30 AWS_RDSDATASERVICE_API ColumnMetadata(Aws::Utils::Json::JsonView jsonValue);
31 AWS_RDSDATASERVICE_API ColumnMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RDSDATASERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 ColumnMetadata& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline int GetType() const { return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
58 inline void SetType(int value) {
59 m_typeHasBeenSet = true;
60 m_type = value;
61 }
62 inline ColumnMetadata& WithType(int value) {
63 SetType(value);
64 return *this;
65 }
67
69
72 inline const Aws::String& GetTypeName() const { return m_typeName; }
73 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
74 template <typename TypeNameT = Aws::String>
75 void SetTypeName(TypeNameT&& value) {
76 m_typeNameHasBeenSet = true;
77 m_typeName = std::forward<TypeNameT>(value);
78 }
79 template <typename TypeNameT = Aws::String>
80 ColumnMetadata& WithTypeName(TypeNameT&& value) {
81 SetTypeName(std::forward<TypeNameT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetLabel() const { return m_label; }
91 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
92 template <typename LabelT = Aws::String>
93 void SetLabel(LabelT&& value) {
94 m_labelHasBeenSet = true;
95 m_label = std::forward<LabelT>(value);
96 }
97 template <typename LabelT = Aws::String>
98 ColumnMetadata& WithLabel(LabelT&& value) {
99 SetLabel(std::forward<LabelT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
109 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
110 template <typename SchemaNameT = Aws::String>
111 void SetSchemaName(SchemaNameT&& value) {
112 m_schemaNameHasBeenSet = true;
113 m_schemaName = std::forward<SchemaNameT>(value);
114 }
115 template <typename SchemaNameT = Aws::String>
116 ColumnMetadata& WithSchemaName(SchemaNameT&& value) {
117 SetSchemaName(std::forward<SchemaNameT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetTableName() const { return m_tableName; }
127 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
128 template <typename TableNameT = Aws::String>
129 void SetTableName(TableNameT&& value) {
130 m_tableNameHasBeenSet = true;
131 m_tableName = std::forward<TableNameT>(value);
132 }
133 template <typename TableNameT = Aws::String>
134 ColumnMetadata& WithTableName(TableNameT&& value) {
135 SetTableName(std::forward<TableNameT>(value));
136 return *this;
137 }
139
141
144 inline bool GetIsAutoIncrement() const { return m_isAutoIncrement; }
145 inline bool IsAutoIncrementHasBeenSet() const { return m_isAutoIncrementHasBeenSet; }
146 inline void SetIsAutoIncrement(bool value) {
147 m_isAutoIncrementHasBeenSet = true;
148 m_isAutoIncrement = value;
149 }
151 SetIsAutoIncrement(value);
152 return *this;
153 }
155
157
160 inline bool GetIsSigned() const { return m_isSigned; }
161 inline bool IsSignedHasBeenSet() const { return m_isSignedHasBeenSet; }
162 inline void SetIsSigned(bool value) {
163 m_isSignedHasBeenSet = true;
164 m_isSigned = value;
165 }
166 inline ColumnMetadata& WithIsSigned(bool value) {
167 SetIsSigned(value);
168 return *this;
169 }
171
173
176 inline bool GetIsCurrency() const { return m_isCurrency; }
177 inline bool IsCurrencyHasBeenSet() const { return m_isCurrencyHasBeenSet; }
178 inline void SetIsCurrency(bool value) {
179 m_isCurrencyHasBeenSet = true;
180 m_isCurrency = value;
181 }
182 inline ColumnMetadata& WithIsCurrency(bool value) {
183 SetIsCurrency(value);
184 return *this;
185 }
187
189
192 inline bool GetIsCaseSensitive() const { return m_isCaseSensitive; }
193 inline bool IsCaseSensitiveHasBeenSet() const { return m_isCaseSensitiveHasBeenSet; }
194 inline void SetIsCaseSensitive(bool value) {
195 m_isCaseSensitiveHasBeenSet = true;
196 m_isCaseSensitive = value;
197 }
199 SetIsCaseSensitive(value);
200 return *this;
201 }
203
205
208 inline int GetNullable() const { return m_nullable; }
209 inline bool NullableHasBeenSet() const { return m_nullableHasBeenSet; }
210 inline void SetNullable(int value) {
211 m_nullableHasBeenSet = true;
212 m_nullable = value;
213 }
214 inline ColumnMetadata& WithNullable(int value) {
215 SetNullable(value);
216 return *this;
217 }
219
221
224 inline int GetPrecision() const { return m_precision; }
225 inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
226 inline void SetPrecision(int value) {
227 m_precisionHasBeenSet = true;
228 m_precision = value;
229 }
230 inline ColumnMetadata& WithPrecision(int value) {
231 SetPrecision(value);
232 return *this;
233 }
235
237
240 inline int GetScale() const { return m_scale; }
241 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
242 inline void SetScale(int value) {
243 m_scaleHasBeenSet = true;
244 m_scale = value;
245 }
246 inline ColumnMetadata& WithScale(int value) {
247 SetScale(value);
248 return *this;
249 }
251
253
256 inline int GetArrayBaseColumnType() const { return m_arrayBaseColumnType; }
257 inline bool ArrayBaseColumnTypeHasBeenSet() const { return m_arrayBaseColumnTypeHasBeenSet; }
258 inline void SetArrayBaseColumnType(int value) {
259 m_arrayBaseColumnTypeHasBeenSet = true;
260 m_arrayBaseColumnType = value;
261 }
264 return *this;
265 }
267 private:
268 Aws::String m_name;
269
270 int m_type{0};
271
272 Aws::String m_typeName;
273
274 Aws::String m_label;
275
276 Aws::String m_schemaName;
277
278 Aws::String m_tableName;
279
280 bool m_isAutoIncrement{false};
281
282 bool m_isSigned{false};
283
284 bool m_isCurrency{false};
285
286 bool m_isCaseSensitive{false};
287
288 int m_nullable{0};
289
290 int m_precision{0};
291
292 int m_scale{0};
293
294 int m_arrayBaseColumnType{0};
295 bool m_nameHasBeenSet = false;
296 bool m_typeHasBeenSet = false;
297 bool m_typeNameHasBeenSet = false;
298 bool m_labelHasBeenSet = false;
299 bool m_schemaNameHasBeenSet = false;
300 bool m_tableNameHasBeenSet = false;
301 bool m_isAutoIncrementHasBeenSet = false;
302 bool m_isSignedHasBeenSet = false;
303 bool m_isCurrencyHasBeenSet = false;
304 bool m_isCaseSensitiveHasBeenSet = false;
305 bool m_nullableHasBeenSet = false;
306 bool m_precisionHasBeenSet = false;
307 bool m_scaleHasBeenSet = false;
308 bool m_arrayBaseColumnTypeHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace RDSDataService
313} // namespace Aws
AWS_RDSDATASERVICE_API ColumnMetadata()=default
ColumnMetadata & WithLabel(LabelT &&value)
const Aws::String & GetTableName() const
const Aws::String & GetTypeName() const
ColumnMetadata & WithTypeName(TypeNameT &&value)
ColumnMetadata & WithIsAutoIncrement(bool value)
AWS_RDSDATASERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ColumnMetadata & WithSchemaName(SchemaNameT &&value)
const Aws::String & GetSchemaName() const
ColumnMetadata & WithIsSigned(bool value)
ColumnMetadata & WithName(NameT &&value)
ColumnMetadata & WithIsCurrency(bool value)
ColumnMetadata & WithArrayBaseColumnType(int value)
AWS_RDSDATASERVICE_API ColumnMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_RDSDATASERVICE_API ColumnMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ColumnMetadata & WithNullable(int value)
ColumnMetadata & WithTableName(TableNameT &&value)
ColumnMetadata & WithIsCaseSensitive(bool value)
ColumnMetadata & WithPrecision(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue