AWS SDK for C++  1.8.126
AWS SDK for C++
ColumnMetadata.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 RDSDataService
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline int GetArrayBaseColumnType() const{ return m_arrayBaseColumnType; }
44 
48  inline bool ArrayBaseColumnTypeHasBeenSet() const { return m_arrayBaseColumnTypeHasBeenSet; }
49 
53  inline void SetArrayBaseColumnType(int value) { m_arrayBaseColumnTypeHasBeenSet = true; m_arrayBaseColumnType = value; }
54 
58  inline ColumnMetadata& WithArrayBaseColumnType(int value) { SetArrayBaseColumnType(value); return *this;}
59 
60 
64  inline bool GetIsAutoIncrement() const{ return m_isAutoIncrement; }
65 
69  inline bool IsAutoIncrementHasBeenSet() const { return m_isAutoIncrementHasBeenSet; }
70 
74  inline void SetIsAutoIncrement(bool value) { m_isAutoIncrementHasBeenSet = true; m_isAutoIncrement = value; }
75 
79  inline ColumnMetadata& WithIsAutoIncrement(bool value) { SetIsAutoIncrement(value); return *this;}
80 
81 
85  inline bool GetIsCaseSensitive() const{ return m_isCaseSensitive; }
86 
90  inline bool IsCaseSensitiveHasBeenSet() const { return m_isCaseSensitiveHasBeenSet; }
91 
95  inline void SetIsCaseSensitive(bool value) { m_isCaseSensitiveHasBeenSet = true; m_isCaseSensitive = value; }
96 
100  inline ColumnMetadata& WithIsCaseSensitive(bool value) { SetIsCaseSensitive(value); return *this;}
101 
102 
106  inline bool GetIsCurrency() const{ return m_isCurrency; }
107 
111  inline bool IsCurrencyHasBeenSet() const { return m_isCurrencyHasBeenSet; }
112 
116  inline void SetIsCurrency(bool value) { m_isCurrencyHasBeenSet = true; m_isCurrency = value; }
117 
121  inline ColumnMetadata& WithIsCurrency(bool value) { SetIsCurrency(value); return *this;}
122 
123 
127  inline bool GetIsSigned() const{ return m_isSigned; }
128 
132  inline bool IsSignedHasBeenSet() const { return m_isSignedHasBeenSet; }
133 
137  inline void SetIsSigned(bool value) { m_isSignedHasBeenSet = true; m_isSigned = value; }
138 
142  inline ColumnMetadata& WithIsSigned(bool value) { SetIsSigned(value); return *this;}
143 
144 
148  inline const Aws::String& GetLabel() const{ return m_label; }
149 
153  inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
154 
158  inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
159 
163  inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
164 
168  inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
169 
173  inline ColumnMetadata& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
174 
178  inline ColumnMetadata& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
179 
183  inline ColumnMetadata& WithLabel(const char* value) { SetLabel(value); return *this;}
184 
185 
189  inline const Aws::String& GetName() const{ return m_name; }
190 
194  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
195 
199  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
200 
204  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
205 
209  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
210 
214  inline ColumnMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
215 
219  inline ColumnMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
220 
224  inline ColumnMetadata& WithName(const char* value) { SetName(value); return *this;}
225 
226 
230  inline int GetNullable() const{ return m_nullable; }
231 
235  inline bool NullableHasBeenSet() const { return m_nullableHasBeenSet; }
236 
240  inline void SetNullable(int value) { m_nullableHasBeenSet = true; m_nullable = value; }
241 
245  inline ColumnMetadata& WithNullable(int value) { SetNullable(value); return *this;}
246 
247 
251  inline int GetPrecision() const{ return m_precision; }
252 
256  inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
257 
261  inline void SetPrecision(int value) { m_precisionHasBeenSet = true; m_precision = value; }
262 
266  inline ColumnMetadata& WithPrecision(int value) { SetPrecision(value); return *this;}
267 
268 
272  inline int GetScale() const{ return m_scale; }
273 
277  inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
278 
282  inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; }
283 
287  inline ColumnMetadata& WithScale(int value) { SetScale(value); return *this;}
288 
289 
293  inline const Aws::String& GetSchemaName() const{ return m_schemaName; }
294 
298  inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
299 
303  inline void SetSchemaName(const Aws::String& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; }
304 
308  inline void SetSchemaName(Aws::String&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::move(value); }
309 
313  inline void SetSchemaName(const char* value) { m_schemaNameHasBeenSet = true; m_schemaName.assign(value); }
314 
318  inline ColumnMetadata& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;}
319 
323  inline ColumnMetadata& WithSchemaName(Aws::String&& value) { SetSchemaName(std::move(value)); return *this;}
324 
328  inline ColumnMetadata& WithSchemaName(const char* value) { SetSchemaName(value); return *this;}
329 
330 
334  inline const Aws::String& GetTableName() const{ return m_tableName; }
335 
339  inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
340 
344  inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
345 
349  inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
350 
354  inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
355 
359  inline ColumnMetadata& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
360 
364  inline ColumnMetadata& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
365 
369  inline ColumnMetadata& WithTableName(const char* value) { SetTableName(value); return *this;}
370 
371 
375  inline int GetType() const{ return m_type; }
376 
380  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
381 
385  inline void SetType(int value) { m_typeHasBeenSet = true; m_type = value; }
386 
390  inline ColumnMetadata& WithType(int value) { SetType(value); return *this;}
391 
392 
396  inline const Aws::String& GetTypeName() const{ return m_typeName; }
397 
401  inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
402 
406  inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
407 
411  inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
412 
416  inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
417 
421  inline ColumnMetadata& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
422 
426  inline ColumnMetadata& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
427 
431  inline ColumnMetadata& WithTypeName(const char* value) { SetTypeName(value); return *this;}
432 
433  private:
434 
435  int m_arrayBaseColumnType;
436  bool m_arrayBaseColumnTypeHasBeenSet;
437 
438  bool m_isAutoIncrement;
439  bool m_isAutoIncrementHasBeenSet;
440 
441  bool m_isCaseSensitive;
442  bool m_isCaseSensitiveHasBeenSet;
443 
444  bool m_isCurrency;
445  bool m_isCurrencyHasBeenSet;
446 
447  bool m_isSigned;
448  bool m_isSignedHasBeenSet;
449 
450  Aws::String m_label;
451  bool m_labelHasBeenSet;
452 
453  Aws::String m_name;
454  bool m_nameHasBeenSet;
455 
456  int m_nullable;
457  bool m_nullableHasBeenSet;
458 
459  int m_precision;
460  bool m_precisionHasBeenSet;
461 
462  int m_scale;
463  bool m_scaleHasBeenSet;
464 
465  Aws::String m_schemaName;
466  bool m_schemaNameHasBeenSet;
467 
468  Aws::String m_tableName;
469  bool m_tableNameHasBeenSet;
470 
471  int m_type;
472  bool m_typeHasBeenSet;
473 
474  Aws::String m_typeName;
475  bool m_typeNameHasBeenSet;
476  };
477 
478 } // namespace Model
479 } // namespace RDSDataService
480 } // namespace Aws
Aws::RDSDataService::Model::ColumnMetadata::WithSchemaName
ColumnMetadata & WithSchemaName(const char *value)
Definition: ColumnMetadata.h:328
Aws::RDSDataService::Model::ColumnMetadata::SetName
void SetName(const Aws::String &value)
Definition: ColumnMetadata.h:199
Aws::RDSDataService::Model::ColumnMetadata::SetSchemaName
void SetSchemaName(const Aws::String &value)
Definition: ColumnMetadata.h:303
Aws::RDSDataService::Model::ColumnMetadata::SetScale
void SetScale(int value)
Definition: ColumnMetadata.h:282
Aws::RDSDataService::Model::ColumnMetadata::IsAutoIncrementHasBeenSet
bool IsAutoIncrementHasBeenSet() const
Definition: ColumnMetadata.h:69
Aws::RDSDataService::Model::ColumnMetadata::WithTableName
ColumnMetadata & WithTableName(Aws::String &&value)
Definition: ColumnMetadata.h:364
Aws::RDSDataService::Model::ColumnMetadata::PrecisionHasBeenSet
bool PrecisionHasBeenSet() const
Definition: ColumnMetadata.h:256
Aws::RDSDataService::Model::ColumnMetadata::GetIsAutoIncrement
bool GetIsAutoIncrement() const
Definition: ColumnMetadata.h:64
AWS_RDSDATASERVICE_API
#define AWS_RDSDATASERVICE_API
Definition: RDSDataService_EXPORTS.h:28
Aws::RDSDataService::Model::ColumnMetadata::WithLabel
ColumnMetadata & WithLabel(const char *value)
Definition: ColumnMetadata.h:183
Aws::RDSDataService::Model::ColumnMetadata::SetLabel
void SetLabel(const Aws::String &value)
Definition: ColumnMetadata.h:158
Aws::RDSDataService::Model::ColumnMetadata::SetName
void SetName(Aws::String &&value)
Definition: ColumnMetadata.h:204
Aws::RDSDataService::Model::ColumnMetadata::GetName
const Aws::String & GetName() const
Definition: ColumnMetadata.h:189
Aws::RDSDataService::Model::ColumnMetadata::WithLabel
ColumnMetadata & WithLabel(Aws::String &&value)
Definition: ColumnMetadata.h:178
Aws::RDSDataService::Model::ColumnMetadata::TableNameHasBeenSet
bool TableNameHasBeenSet() const
Definition: ColumnMetadata.h:339
Aws::RDSDataService::Model::ColumnMetadata::SchemaNameHasBeenSet
bool SchemaNameHasBeenSet() const
Definition: ColumnMetadata.h:298
Aws::RDSDataService::Model::ColumnMetadata::WithSchemaName
ColumnMetadata & WithSchemaName(Aws::String &&value)
Definition: ColumnMetadata.h:323
Aws::RDSDataService::Model::ColumnMetadata::ColumnMetadata
ColumnMetadata()
Aws::RDSDataService::Model::ColumnMetadata::IsCurrencyHasBeenSet
bool IsCurrencyHasBeenSet() const
Definition: ColumnMetadata.h:111
Aws::RDSDataService::Model::ColumnMetadata::WithTypeName
ColumnMetadata & WithTypeName(Aws::String &&value)
Definition: ColumnMetadata.h:426
Aws::RDSDataService::Model::ColumnMetadata::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ColumnMetadata.h:380
Aws::RDSDataService::Model::ColumnMetadata::SetIsCurrency
void SetIsCurrency(bool value)
Definition: ColumnMetadata.h:116
Aws::RDSDataService::Model::ColumnMetadata::ArrayBaseColumnTypeHasBeenSet
bool ArrayBaseColumnTypeHasBeenSet() const
Definition: ColumnMetadata.h:48
Aws::RDSDataService::Model::ColumnMetadata::SetTypeName
void SetTypeName(const Aws::String &value)
Definition: ColumnMetadata.h:406
Aws::RDSDataService::Model::ColumnMetadata::GetTypeName
const Aws::String & GetTypeName() const
Definition: ColumnMetadata.h:396
Aws::RDSDataService::Model::ColumnMetadata::GetArrayBaseColumnType
int GetArrayBaseColumnType() const
Definition: ColumnMetadata.h:43
Aws::RDSDataService::Model::ColumnMetadata::WithTableName
ColumnMetadata & WithTableName(const Aws::String &value)
Definition: ColumnMetadata.h:359
Aws::RDSDataService::Model::ColumnMetadata::GetIsSigned
bool GetIsSigned() const
Definition: ColumnMetadata.h:127
Aws::RDSDataService::Model::ColumnMetadata::WithLabel
ColumnMetadata & WithLabel(const Aws::String &value)
Definition: ColumnMetadata.h:173
Aws::RDSDataService::Model::ColumnMetadata::SetTypeName
void SetTypeName(const char *value)
Definition: ColumnMetadata.h:416
Aws::RDSDataService::Model::ColumnMetadata::SetIsAutoIncrement
void SetIsAutoIncrement(bool value)
Definition: ColumnMetadata.h:74
Aws::RDSDataService::Model::ColumnMetadata::GetNullable
int GetNullable() const
Definition: ColumnMetadata.h:230
Aws::RDSDataService::Model::ColumnMetadata::ColumnMetadata
ColumnMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::RDSDataService::Model::ColumnMetadata::WithSchemaName
ColumnMetadata & WithSchemaName(const Aws::String &value)
Definition: ColumnMetadata.h:318
Aws::RDSDataService::Model::ColumnMetadata::SetIsCaseSensitive
void SetIsCaseSensitive(bool value)
Definition: ColumnMetadata.h:95
Aws::RDSDataService::Model::ColumnMetadata::WithScale
ColumnMetadata & WithScale(int value)
Definition: ColumnMetadata.h:287
Aws::RDSDataService::Model::ColumnMetadata::WithPrecision
ColumnMetadata & WithPrecision(int value)
Definition: ColumnMetadata.h:266
Aws::RDSDataService::Model::ColumnMetadata::ScaleHasBeenSet
bool ScaleHasBeenSet() const
Definition: ColumnMetadata.h:277
Aws::RDSDataService::Model::ColumnMetadata::SetTableName
void SetTableName(const char *value)
Definition: ColumnMetadata.h:354
Aws::RDSDataService::Model::ColumnMetadata::GetScale
int GetScale() const
Definition: ColumnMetadata.h:272
Aws::RDSDataService::Model::ColumnMetadata::SetTableName
void SetTableName(const Aws::String &value)
Definition: ColumnMetadata.h:344
Aws::RDSDataService::Model::ColumnMetadata
Definition: ColumnMetadata.h:32
Aws::RDSDataService::Model::ColumnMetadata::WithTypeName
ColumnMetadata & WithTypeName(const Aws::String &value)
Definition: ColumnMetadata.h:421
Aws::RDSDataService::Model::ColumnMetadata::WithIsCaseSensitive
ColumnMetadata & WithIsCaseSensitive(bool value)
Definition: ColumnMetadata.h:100
Aws::RDSDataService::Model::ColumnMetadata::WithIsCurrency
ColumnMetadata & WithIsCurrency(bool value)
Definition: ColumnMetadata.h:121
Aws::RDSDataService::Model::ColumnMetadata::WithTableName
ColumnMetadata & WithTableName(const char *value)
Definition: ColumnMetadata.h:369
Aws::RDSDataService::Model::ColumnMetadata::TypeNameHasBeenSet
bool TypeNameHasBeenSet() const
Definition: ColumnMetadata.h:401
Aws::RDSDataService::Model::ColumnMetadata::SetTableName
void SetTableName(Aws::String &&value)
Definition: ColumnMetadata.h:349
Aws::RDSDataService::Model::ColumnMetadata::SetName
void SetName(const char *value)
Definition: ColumnMetadata.h:209
Aws::RDSDataService::Model::ColumnMetadata::SetIsSigned
void SetIsSigned(bool value)
Definition: ColumnMetadata.h:137
Aws::RDSDataService::Model::ColumnMetadata::operator=
ColumnMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::RDSDataService::Model::ColumnMetadata::WithTypeName
ColumnMetadata & WithTypeName(const char *value)
Definition: ColumnMetadata.h:431
Aws::RDSDataService::Model::ColumnMetadata::WithName
ColumnMetadata & WithName(const Aws::String &value)
Definition: ColumnMetadata.h:214
Aws::RDSDataService::Model::ColumnMetadata::WithArrayBaseColumnType
ColumnMetadata & WithArrayBaseColumnType(int value)
Definition: ColumnMetadata.h:58
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RDSDataService::Model::ColumnMetadata::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ColumnMetadata.h:194
Aws::RDSDataService::Model::ColumnMetadata::SetLabel
void SetLabel(Aws::String &&value)
Definition: ColumnMetadata.h:163
Aws::RDSDataService::Model::ColumnMetadata::SetSchemaName
void SetSchemaName(const char *value)
Definition: ColumnMetadata.h:313
RDSDataService_EXPORTS.h
Aws::RDSDataService::Model::ColumnMetadata::SetLabel
void SetLabel(const char *value)
Definition: ColumnMetadata.h:168
Aws::RDSDataService::Model::ColumnMetadata::GetType
int GetType() const
Definition: ColumnMetadata.h:375
Aws::RDSDataService::Model::ColumnMetadata::WithType
ColumnMetadata & WithType(int value)
Definition: ColumnMetadata.h:390
Aws::RDSDataService::Model::ColumnMetadata::WithIsSigned
ColumnMetadata & WithIsSigned(bool value)
Definition: ColumnMetadata.h:142
Aws::RDSDataService::Model::ColumnMetadata::IsCaseSensitiveHasBeenSet
bool IsCaseSensitiveHasBeenSet() const
Definition: ColumnMetadata.h:90
Aws::RDSDataService::Model::ColumnMetadata::GetSchemaName
const Aws::String & GetSchemaName() const
Definition: ColumnMetadata.h:293
Aws::RDSDataService::Model::ColumnMetadata::IsSignedHasBeenSet
bool IsSignedHasBeenSet() const
Definition: ColumnMetadata.h:132
Aws
Definition: AccessManagementClient.h:15
Aws::RDSDataService::Model::ColumnMetadata::SetArrayBaseColumnType
void SetArrayBaseColumnType(int value)
Definition: ColumnMetadata.h:53
Aws::RDSDataService::Model::ColumnMetadata::NullableHasBeenSet
bool NullableHasBeenSet() const
Definition: ColumnMetadata.h:235
Aws::RDSDataService::Model::ColumnMetadata::GetLabel
const Aws::String & GetLabel() const
Definition: ColumnMetadata.h:148
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDSDataService::Model::ColumnMetadata::GetIsCaseSensitive
bool GetIsCaseSensitive() const
Definition: ColumnMetadata.h:85
Aws::RDSDataService::Model::ColumnMetadata::WithName
ColumnMetadata & WithName(const char *value)
Definition: ColumnMetadata.h:224
Aws::RDSDataService::Model::ColumnMetadata::SetSchemaName
void SetSchemaName(Aws::String &&value)
Definition: ColumnMetadata.h:308
Aws::RDSDataService::Model::ColumnMetadata::SetPrecision
void SetPrecision(int value)
Definition: ColumnMetadata.h:261
Aws::RDSDataService::Model::ColumnMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::RDSDataService::Model::ColumnMetadata::WithIsAutoIncrement
ColumnMetadata & WithIsAutoIncrement(bool value)
Definition: ColumnMetadata.h:79
Aws::RDSDataService::Model::ColumnMetadata::GetTableName
const Aws::String & GetTableName() const
Definition: ColumnMetadata.h:334
Aws::RDSDataService::Model::ColumnMetadata::GetIsCurrency
bool GetIsCurrency() const
Definition: ColumnMetadata.h:106
Aws::RDSDataService::Model::ColumnMetadata::WithName
ColumnMetadata & WithName(Aws::String &&value)
Definition: ColumnMetadata.h:219
Aws::RDSDataService::Model::ColumnMetadata::GetPrecision
int GetPrecision() const
Definition: ColumnMetadata.h:251
Aws::RDSDataService::Model::ColumnMetadata::LabelHasBeenSet
bool LabelHasBeenSet() const
Definition: ColumnMetadata.h:153
Aws::RDSDataService::Model::ColumnMetadata::SetNullable
void SetNullable(int value)
Definition: ColumnMetadata.h:240
Aws::RDSDataService::Model::ColumnMetadata::SetType
void SetType(int value)
Definition: ColumnMetadata.h:385
Aws::RDSDataService::Model::ColumnMetadata::SetTypeName
void SetTypeName(Aws::String &&value)
Definition: ColumnMetadata.h:411
Aws::RDSDataService::Model::ColumnMetadata::WithNullable
ColumnMetadata & WithNullable(int value)
Definition: ColumnMetadata.h:245