AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
SubStatementData.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift-data/RedshiftDataAPIService_EXPORTS.h>
10#include <aws/redshift-data/model/StatementStatusString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace RedshiftDataAPIService {
22namespace Model {
23
30 public:
31 AWS_REDSHIFTDATAAPISERVICE_API SubStatementData() = default;
32 AWS_REDSHIFTDATAAPISERVICE_API SubStatementData(Aws::Utils::Json::JsonView jsonValue);
33 AWS_REDSHIFTDATAAPISERVICE_API SubStatementData& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_REDSHIFTDATAAPISERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 SubStatementData& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline long long GetDuration() const { return m_duration; }
63 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
64 inline void SetDuration(long long value) {
65 m_durationHasBeenSet = true;
66 m_duration = value;
67 }
68 inline SubStatementData& WithDuration(long long value) {
69 SetDuration(value);
70 return *this;
71 }
73
75
79 inline const Aws::String& GetError() const { return m_error; }
80 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
81 template <typename ErrorT = Aws::String>
82 void SetError(ErrorT&& value) {
83 m_errorHasBeenSet = true;
84 m_error = std::forward<ErrorT>(value);
85 }
86 template <typename ErrorT = Aws::String>
87 SubStatementData& WithError(ErrorT&& value) {
88 SetError(std::forward<ErrorT>(value));
89 return *this;
90 }
92
94
98 inline StatementStatusString GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(StatementStatusString value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
105 SetStatus(value);
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
115 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
116 template <typename CreatedAtT = Aws::Utils::DateTime>
117 void SetCreatedAt(CreatedAtT&& value) {
118 m_createdAtHasBeenSet = true;
119 m_createdAt = std::forward<CreatedAtT>(value);
120 }
121 template <typename CreatedAtT = Aws::Utils::DateTime>
122 SubStatementData& WithCreatedAt(CreatedAtT&& value) {
123 SetCreatedAt(std::forward<CreatedAtT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
133 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
134 template <typename UpdatedAtT = Aws::Utils::DateTime>
135 void SetUpdatedAt(UpdatedAtT&& value) {
136 m_updatedAtHasBeenSet = true;
137 m_updatedAt = std::forward<UpdatedAtT>(value);
138 }
139 template <typename UpdatedAtT = Aws::Utils::DateTime>
140 SubStatementData& WithUpdatedAt(UpdatedAtT&& value) {
141 SetUpdatedAt(std::forward<UpdatedAtT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetQueryString() const { return m_queryString; }
151 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
152 template <typename QueryStringT = Aws::String>
153 void SetQueryString(QueryStringT&& value) {
154 m_queryStringHasBeenSet = true;
155 m_queryString = std::forward<QueryStringT>(value);
156 }
157 template <typename QueryStringT = Aws::String>
158 SubStatementData& WithQueryString(QueryStringT&& value) {
159 SetQueryString(std::forward<QueryStringT>(value));
160 return *this;
161 }
163
165
171 inline long long GetResultRows() const { return m_resultRows; }
172 inline bool ResultRowsHasBeenSet() const { return m_resultRowsHasBeenSet; }
173 inline void SetResultRows(long long value) {
174 m_resultRowsHasBeenSet = true;
175 m_resultRows = value;
176 }
177 inline SubStatementData& WithResultRows(long long value) {
178 SetResultRows(value);
179 return *this;
180 }
182
184
188 inline long long GetResultSize() const { return m_resultSize; }
189 inline bool ResultSizeHasBeenSet() const { return m_resultSizeHasBeenSet; }
190 inline void SetResultSize(long long value) {
191 m_resultSizeHasBeenSet = true;
192 m_resultSize = value;
193 }
194 inline SubStatementData& WithResultSize(long long value) {
195 SetResultSize(value);
196 return *this;
197 }
199
201
206 inline long long GetRedshiftQueryId() const { return m_redshiftQueryId; }
207 inline bool RedshiftQueryIdHasBeenSet() const { return m_redshiftQueryIdHasBeenSet; }
208 inline void SetRedshiftQueryId(long long value) {
209 m_redshiftQueryIdHasBeenSet = true;
210 m_redshiftQueryId = value;
211 }
212 inline SubStatementData& WithRedshiftQueryId(long long value) {
213 SetRedshiftQueryId(value);
214 return *this;
215 }
217
219
224 inline const Aws::String& GetRedshiftQueryUuid() const { return m_redshiftQueryUuid; }
225 inline bool RedshiftQueryUuidHasBeenSet() const { return m_redshiftQueryUuidHasBeenSet; }
226 template <typename RedshiftQueryUuidT = Aws::String>
227 void SetRedshiftQueryUuid(RedshiftQueryUuidT&& value) {
228 m_redshiftQueryUuidHasBeenSet = true;
229 m_redshiftQueryUuid = std::forward<RedshiftQueryUuidT>(value);
230 }
231 template <typename RedshiftQueryUuidT = Aws::String>
232 SubStatementData& WithRedshiftQueryUuid(RedshiftQueryUuidT&& value) {
233 SetRedshiftQueryUuid(std::forward<RedshiftQueryUuidT>(value));
234 return *this;
235 }
237
239
243 inline bool GetHasResultSet() const { return m_hasResultSet; }
244 inline bool HasResultSetHasBeenSet() const { return m_hasResultSetHasBeenSet; }
245 inline void SetHasResultSet(bool value) {
246 m_hasResultSetHasBeenSet = true;
247 m_hasResultSet = value;
248 }
249 inline SubStatementData& WithHasResultSet(bool value) {
250 SetHasResultSet(value);
251 return *this;
252 }
254 private:
255 Aws::String m_id;
256
257 long long m_duration{0};
258
259 Aws::String m_error;
260
262
263 Aws::Utils::DateTime m_createdAt{};
264
265 Aws::Utils::DateTime m_updatedAt{};
266
267 Aws::String m_queryString;
268
269 long long m_resultRows{0};
270
271 long long m_resultSize{0};
272
273 long long m_redshiftQueryId{0};
274
275 Aws::String m_redshiftQueryUuid;
276
277 bool m_hasResultSet{false};
278 bool m_idHasBeenSet = false;
279 bool m_durationHasBeenSet = false;
280 bool m_errorHasBeenSet = false;
281 bool m_statusHasBeenSet = false;
282 bool m_createdAtHasBeenSet = false;
283 bool m_updatedAtHasBeenSet = false;
284 bool m_queryStringHasBeenSet = false;
285 bool m_resultRowsHasBeenSet = false;
286 bool m_resultSizeHasBeenSet = false;
287 bool m_redshiftQueryIdHasBeenSet = false;
288 bool m_redshiftQueryUuidHasBeenSet = false;
289 bool m_hasResultSetHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace RedshiftDataAPIService
294} // namespace Aws
SubStatementData & WithRedshiftQueryUuid(RedshiftQueryUuidT &&value)
SubStatementData & WithResultRows(long long value)
SubStatementData & WithResultSize(long long value)
SubStatementData & WithCreatedAt(CreatedAtT &&value)
SubStatementData & WithRedshiftQueryId(long long value)
AWS_REDSHIFTDATAAPISERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REDSHIFTDATAAPISERVICE_API SubStatementData & operator=(Aws::Utils::Json::JsonView jsonValue)
SubStatementData & WithDuration(long long value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetRedshiftQueryUuid(RedshiftQueryUuidT &&value)
SubStatementData & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_REDSHIFTDATAAPISERVICE_API SubStatementData(Aws::Utils::Json::JsonView jsonValue)
AWS_REDSHIFTDATAAPISERVICE_API SubStatementData()=default
SubStatementData & WithQueryString(QueryStringT &&value)
SubStatementData & WithStatus(StatementStatusString value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue