7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/SqlType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
31 AWS_CONTEXT_API
SqlColumnMetadata(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CONTEXT_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
42 template <
typename NameT = Aws::String>
44 m_nameHasBeenSet =
true;
45 m_name = std::forward<NameT>(value);
47 template <
typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
62 m_typeHasBeenSet =
true;
78 template <
typename TypeNameT = Aws::String>
80 m_typeNameHasBeenSet =
true;
81 m_typeName = std::forward<TypeNameT>(value);
83 template <
typename TypeNameT = Aws::String>
97 m_nullableHasBeenSet =
true;
113 m_precisionHasBeenSet =
true;
126 inline int64_t
GetScale()
const {
return m_scale; }
129 m_scaleHasBeenSet =
true;
145 template <
typename TimeZoneT = Aws::String>
147 m_timeZoneHasBeenSet =
true;
148 m_timeZone = std::forward<TimeZoneT>(value);
150 template <
typename TimeZoneT = Aws::String>
163 bool m_nullable{
false};
165 int64_t m_precision{0};
170 bool m_nameHasBeenSet =
false;
171 bool m_typeHasBeenSet =
false;
172 bool m_typeNameHasBeenSet =
false;
173 bool m_nullableHasBeenSet =
false;
174 bool m_precisionHasBeenSet =
false;
175 bool m_scaleHasBeenSet =
false;
176 bool m_timeZoneHasBeenSet =
false;
bool NullableHasBeenSet() const
AWS_CONTEXT_API SqlColumnMetadata(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetTypeName(TypeNameT &&value)
bool PrecisionHasBeenSet() const
void SetPrecision(int64_t value)
const Aws::String & GetTypeName() const
const Aws::String & GetTimeZone() const
AWS_CONTEXT_API SqlColumnMetadata & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SqlColumnMetadata & WithScale(int64_t value)
SqlColumnMetadata & WithNullable(bool value)
bool TypeNameHasBeenSet() const
void SetTimeZone(TimeZoneT &&value)
SqlColumnMetadata & WithTimeZone(TimeZoneT &&value)
void SetType(SqlType value)
bool ScaleHasBeenSet() const
SqlColumnMetadata & WithTypeName(TypeNameT &&value)
SqlColumnMetadata & WithType(SqlType value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool TypeHasBeenSet() const
int64_t GetPrecision() const
bool NameHasBeenSet() const
SqlColumnMetadata & WithName(NameT &&value)
void SetNullable(bool value)
SqlColumnMetadata & WithPrecision(int64_t value)
void SetScale(int64_t value)
AWS_CONTEXT_API SqlColumnMetadata()=default
bool TimeZoneHasBeenSet() const
const Aws::String & GetName() const
void SetName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String