AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
ColumnMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/redshift-data/RedshiftDataAPIService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace RedshiftDataAPIService {
20namespace Model {
21
28 public:
29 AWS_REDSHIFTDATAAPISERVICE_API ColumnMetadata() = default;
30 AWS_REDSHIFTDATAAPISERVICE_API ColumnMetadata(Aws::Utils::Json::JsonView jsonValue);
31 AWS_REDSHIFTDATAAPISERVICE_API ColumnMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_REDSHIFTDATAAPISERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline bool GetIsCaseSensitive() const { return m_isCaseSensitive; }
39 inline bool IsCaseSensitiveHasBeenSet() const { return m_isCaseSensitiveHasBeenSet; }
40 inline void SetIsCaseSensitive(bool value) {
41 m_isCaseSensitiveHasBeenSet = true;
42 m_isCaseSensitive = value;
43 }
44 inline ColumnMetadata& WithIsCaseSensitive(bool value) {
45 SetIsCaseSensitive(value);
46 return *this;
47 }
49
51
54 inline bool GetIsCurrency() const { return m_isCurrency; }
55 inline bool IsCurrencyHasBeenSet() const { return m_isCurrencyHasBeenSet; }
56 inline void SetIsCurrency(bool value) {
57 m_isCurrencyHasBeenSet = true;
58 m_isCurrency = value;
59 }
60 inline ColumnMetadata& WithIsCurrency(bool value) {
61 SetIsCurrency(value);
62 return *this;
63 }
65
67
70 inline bool GetIsSigned() const { return m_isSigned; }
71 inline bool IsSignedHasBeenSet() const { return m_isSignedHasBeenSet; }
72 inline void SetIsSigned(bool value) {
73 m_isSignedHasBeenSet = true;
74 m_isSigned = value;
75 }
76 inline ColumnMetadata& WithIsSigned(bool value) {
77 SetIsSigned(value);
78 return *this;
79 }
81
83
86 inline const Aws::String& GetLabel() const { return m_label; }
87 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
88 template <typename LabelT = Aws::String>
89 void SetLabel(LabelT&& value) {
90 m_labelHasBeenSet = true;
91 m_label = std::forward<LabelT>(value);
92 }
93 template <typename LabelT = Aws::String>
94 ColumnMetadata& WithLabel(LabelT&& value) {
95 SetLabel(std::forward<LabelT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetName() const { return m_name; }
105 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 template <typename NameT = Aws::String>
107 void SetName(NameT&& value) {
108 m_nameHasBeenSet = true;
109 m_name = std::forward<NameT>(value);
110 }
111 template <typename NameT = Aws::String>
112 ColumnMetadata& WithName(NameT&& value) {
113 SetName(std::forward<NameT>(value));
114 return *this;
115 }
117
119
122 inline int GetNullable() const { return m_nullable; }
123 inline bool NullableHasBeenSet() const { return m_nullableHasBeenSet; }
124 inline void SetNullable(int value) {
125 m_nullableHasBeenSet = true;
126 m_nullable = value;
127 }
128 inline ColumnMetadata& WithNullable(int value) {
129 SetNullable(value);
130 return *this;
131 }
133
135
139 inline int GetPrecision() const { return m_precision; }
140 inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
141 inline void SetPrecision(int value) {
142 m_precisionHasBeenSet = true;
143 m_precision = value;
144 }
145 inline ColumnMetadata& WithPrecision(int value) {
146 SetPrecision(value);
147 return *this;
148 }
150
152
155 inline int GetScale() const { return m_scale; }
156 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
157 inline void SetScale(int value) {
158 m_scaleHasBeenSet = true;
159 m_scale = value;
160 }
161 inline ColumnMetadata& WithScale(int value) {
162 SetScale(value);
163 return *this;
164 }
166
168
171 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
172 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
173 template <typename SchemaNameT = Aws::String>
174 void SetSchemaName(SchemaNameT&& value) {
175 m_schemaNameHasBeenSet = true;
176 m_schemaName = std::forward<SchemaNameT>(value);
177 }
178 template <typename SchemaNameT = Aws::String>
179 ColumnMetadata& WithSchemaName(SchemaNameT&& value) {
180 SetSchemaName(std::forward<SchemaNameT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetTableName() const { return m_tableName; }
190 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
191 template <typename TableNameT = Aws::String>
192 void SetTableName(TableNameT&& value) {
193 m_tableNameHasBeenSet = true;
194 m_tableName = std::forward<TableNameT>(value);
195 }
196 template <typename TableNameT = Aws::String>
197 ColumnMetadata& WithTableName(TableNameT&& value) {
198 SetTableName(std::forward<TableNameT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetTypeName() const { return m_typeName; }
208 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
209 template <typename TypeNameT = Aws::String>
210 void SetTypeName(TypeNameT&& value) {
211 m_typeNameHasBeenSet = true;
212 m_typeName = std::forward<TypeNameT>(value);
213 }
214 template <typename TypeNameT = Aws::String>
215 ColumnMetadata& WithTypeName(TypeNameT&& value) {
216 SetTypeName(std::forward<TypeNameT>(value));
217 return *this;
218 }
220
222
225 inline int GetLength() const { return m_length; }
226 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
227 inline void SetLength(int value) {
228 m_lengthHasBeenSet = true;
229 m_length = value;
230 }
231 inline ColumnMetadata& WithLength(int value) {
232 SetLength(value);
233 return *this;
234 }
236
238
241 inline const Aws::String& GetColumnDefault() const { return m_columnDefault; }
242 inline bool ColumnDefaultHasBeenSet() const { return m_columnDefaultHasBeenSet; }
243 template <typename ColumnDefaultT = Aws::String>
244 void SetColumnDefault(ColumnDefaultT&& value) {
245 m_columnDefaultHasBeenSet = true;
246 m_columnDefault = std::forward<ColumnDefaultT>(value);
247 }
248 template <typename ColumnDefaultT = Aws::String>
249 ColumnMetadata& WithColumnDefault(ColumnDefaultT&& value) {
250 SetColumnDefault(std::forward<ColumnDefaultT>(value));
251 return *this;
252 }
254 private:
255 bool m_isCaseSensitive{false};
256
257 bool m_isCurrency{false};
258
259 bool m_isSigned{false};
260
261 Aws::String m_label;
262
263 Aws::String m_name;
264
265 int m_nullable{0};
266
267 int m_precision{0};
268
269 int m_scale{0};
270
271 Aws::String m_schemaName;
272
273 Aws::String m_tableName;
274
275 Aws::String m_typeName;
276
277 int m_length{0};
278
279 Aws::String m_columnDefault;
280 bool m_isCaseSensitiveHasBeenSet = false;
281 bool m_isCurrencyHasBeenSet = false;
282 bool m_isSignedHasBeenSet = false;
283 bool m_labelHasBeenSet = false;
284 bool m_nameHasBeenSet = false;
285 bool m_nullableHasBeenSet = false;
286 bool m_precisionHasBeenSet = false;
287 bool m_scaleHasBeenSet = false;
288 bool m_schemaNameHasBeenSet = false;
289 bool m_tableNameHasBeenSet = false;
290 bool m_typeNameHasBeenSet = false;
291 bool m_lengthHasBeenSet = false;
292 bool m_columnDefaultHasBeenSet = false;
293};
294
295} // namespace Model
296} // namespace RedshiftDataAPIService
297} // namespace Aws
AWS_REDSHIFTDATAAPISERVICE_API ColumnMetadata(Aws::Utils::Json::JsonView jsonValue)
ColumnMetadata & WithColumnDefault(ColumnDefaultT &&value)
ColumnMetadata & WithTypeName(TypeNameT &&value)
ColumnMetadata & WithSchemaName(SchemaNameT &&value)
AWS_REDSHIFTDATAAPISERVICE_API ColumnMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REDSHIFTDATAAPISERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REDSHIFTDATAAPISERVICE_API ColumnMetadata()=default
ColumnMetadata & WithTableName(TableNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue