AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
SqlColumnMetadata.h
1
6#pragma once
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>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Context {
21namespace Model {
22
29 public:
30 AWS_CONTEXT_API SqlColumnMetadata() = default;
31 AWS_CONTEXT_API SqlColumnMetadata(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CONTEXT_API SqlColumnMetadata& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 SqlColumnMetadata& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
59 inline SqlType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(SqlType value) {
62 m_typeHasBeenSet = true;
63 m_type = value;
64 }
66 SetType(value);
67 return *this;
68 }
70
72
76 inline const Aws::String& GetTypeName() const { return m_typeName; }
77 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
78 template <typename TypeNameT = Aws::String>
79 void SetTypeName(TypeNameT&& value) {
80 m_typeNameHasBeenSet = true;
81 m_typeName = std::forward<TypeNameT>(value);
82 }
83 template <typename TypeNameT = Aws::String>
84 SqlColumnMetadata& WithTypeName(TypeNameT&& value) {
85 SetTypeName(std::forward<TypeNameT>(value));
86 return *this;
87 }
89
91
94 inline bool GetNullable() const { return m_nullable; }
95 inline bool NullableHasBeenSet() const { return m_nullableHasBeenSet; }
96 inline void SetNullable(bool value) {
97 m_nullableHasBeenSet = true;
98 m_nullable = value;
99 }
100 inline SqlColumnMetadata& WithNullable(bool value) {
101 SetNullable(value);
102 return *this;
103 }
105
107
110 inline int64_t GetPrecision() const { return m_precision; }
111 inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
112 inline void SetPrecision(int64_t value) {
113 m_precisionHasBeenSet = true;
114 m_precision = value;
115 }
116 inline SqlColumnMetadata& WithPrecision(int64_t value) {
117 SetPrecision(value);
118 return *this;
119 }
121
123
126 inline int64_t GetScale() const { return m_scale; }
127 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
128 inline void SetScale(int64_t value) {
129 m_scaleHasBeenSet = true;
130 m_scale = value;
131 }
132 inline SqlColumnMetadata& WithScale(int64_t value) {
133 SetScale(value);
134 return *this;
135 }
137
139
143 inline const Aws::String& GetTimeZone() const { return m_timeZone; }
144 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
145 template <typename TimeZoneT = Aws::String>
146 void SetTimeZone(TimeZoneT&& value) {
147 m_timeZoneHasBeenSet = true;
148 m_timeZone = std::forward<TimeZoneT>(value);
149 }
150 template <typename TimeZoneT = Aws::String>
151 SqlColumnMetadata& WithTimeZone(TimeZoneT&& value) {
152 SetTimeZone(std::forward<TimeZoneT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_name;
158
160
161 Aws::String m_typeName;
162
163 bool m_nullable{false};
164
165 int64_t m_precision{0};
166
167 int64_t m_scale{0};
168
169 Aws::String m_timeZone;
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;
177};
178
179} // namespace Model
180} // namespace Context
181} // namespace Aws
AWS_CONTEXT_API SqlColumnMetadata(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
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)
SqlColumnMetadata & WithTimeZone(TimeZoneT &&value)
SqlColumnMetadata & WithTypeName(TypeNameT &&value)
SqlColumnMetadata & WithType(SqlType value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
SqlColumnMetadata & WithName(NameT &&value)
SqlColumnMetadata & WithPrecision(int64_t value)
AWS_CONTEXT_API SqlColumnMetadata()=default
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String