AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
Ingestion.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/ErrorInfo.h>
11#include <aws/quicksight/model/IngestionRequestSource.h>
12#include <aws/quicksight/model/IngestionRequestType.h>
13#include <aws/quicksight/model/IngestionStatus.h>
14#include <aws/quicksight/model/QueueInfo.h>
15#include <aws/quicksight/model/RowInfo.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace QuickSight {
27namespace Model {
28
35class Ingestion {
36 public:
37 AWS_QUICKSIGHT_API Ingestion() = default;
38 AWS_QUICKSIGHT_API Ingestion(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API Ingestion& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template <typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) {
50 m_arnHasBeenSet = true;
51 m_arn = std::forward<ArnT>(value);
52 }
53 template <typename ArnT = Aws::String>
54 Ingestion& WithArn(ArnT&& value) {
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetIngestionId() const { return m_ingestionId; }
65 inline bool IngestionIdHasBeenSet() const { return m_ingestionIdHasBeenSet; }
66 template <typename IngestionIdT = Aws::String>
67 void SetIngestionId(IngestionIdT&& value) {
68 m_ingestionIdHasBeenSet = true;
69 m_ingestionId = std::forward<IngestionIdT>(value);
70 }
71 template <typename IngestionIdT = Aws::String>
72 Ingestion& WithIngestionId(IngestionIdT&& value) {
73 SetIngestionId(std::forward<IngestionIdT>(value));
74 return *this;
75 }
77
79
82 inline IngestionStatus GetIngestionStatus() const { return m_ingestionStatus; }
83 inline bool IngestionStatusHasBeenSet() const { return m_ingestionStatusHasBeenSet; }
85 m_ingestionStatusHasBeenSet = true;
86 m_ingestionStatus = value;
87 }
89 SetIngestionStatus(value);
90 return *this;
91 }
93
95
98 inline const ErrorInfo& GetErrorInfo() const { return m_errorInfo; }
99 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
100 template <typename ErrorInfoT = ErrorInfo>
101 void SetErrorInfo(ErrorInfoT&& value) {
102 m_errorInfoHasBeenSet = true;
103 m_errorInfo = std::forward<ErrorInfoT>(value);
104 }
105 template <typename ErrorInfoT = ErrorInfo>
106 Ingestion& WithErrorInfo(ErrorInfoT&& value) {
107 SetErrorInfo(std::forward<ErrorInfoT>(value));
108 return *this;
109 }
111
113
114 inline const RowInfo& GetRowInfo() const { return m_rowInfo; }
115 inline bool RowInfoHasBeenSet() const { return m_rowInfoHasBeenSet; }
116 template <typename RowInfoT = RowInfo>
117 void SetRowInfo(RowInfoT&& value) {
118 m_rowInfoHasBeenSet = true;
119 m_rowInfo = std::forward<RowInfoT>(value);
120 }
121 template <typename RowInfoT = RowInfo>
122 Ingestion& WithRowInfo(RowInfoT&& value) {
123 SetRowInfo(std::forward<RowInfoT>(value));
124 return *this;
125 }
127
129
130 inline const QueueInfo& GetQueueInfo() const { return m_queueInfo; }
131 inline bool QueueInfoHasBeenSet() const { return m_queueInfoHasBeenSet; }
132 template <typename QueueInfoT = QueueInfo>
133 void SetQueueInfo(QueueInfoT&& value) {
134 m_queueInfoHasBeenSet = true;
135 m_queueInfo = std::forward<QueueInfoT>(value);
136 }
137 template <typename QueueInfoT = QueueInfo>
138 Ingestion& WithQueueInfo(QueueInfoT&& value) {
139 SetQueueInfo(std::forward<QueueInfoT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
149 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
150 template <typename CreatedTimeT = Aws::Utils::DateTime>
151 void SetCreatedTime(CreatedTimeT&& value) {
152 m_createdTimeHasBeenSet = true;
153 m_createdTime = std::forward<CreatedTimeT>(value);
154 }
155 template <typename CreatedTimeT = Aws::Utils::DateTime>
156 Ingestion& WithCreatedTime(CreatedTimeT&& value) {
157 SetCreatedTime(std::forward<CreatedTimeT>(value));
158 return *this;
159 }
161
163
166 inline long long GetIngestionTimeInSeconds() const { return m_ingestionTimeInSeconds; }
167 inline bool IngestionTimeInSecondsHasBeenSet() const { return m_ingestionTimeInSecondsHasBeenSet; }
168 inline void SetIngestionTimeInSeconds(long long value) {
169 m_ingestionTimeInSecondsHasBeenSet = true;
170 m_ingestionTimeInSeconds = value;
171 }
172 inline Ingestion& WithIngestionTimeInSeconds(long long value) {
174 return *this;
175 }
177
179
182 inline long long GetIngestionSizeInBytes() const { return m_ingestionSizeInBytes; }
183 inline bool IngestionSizeInBytesHasBeenSet() const { return m_ingestionSizeInBytesHasBeenSet; }
184 inline void SetIngestionSizeInBytes(long long value) {
185 m_ingestionSizeInBytesHasBeenSet = true;
186 m_ingestionSizeInBytes = value;
187 }
188 inline Ingestion& WithIngestionSizeInBytes(long long value) {
190 return *this;
191 }
193
195
198 inline IngestionRequestSource GetRequestSource() const { return m_requestSource; }
199 inline bool RequestSourceHasBeenSet() const { return m_requestSourceHasBeenSet; }
201 m_requestSourceHasBeenSet = true;
202 m_requestSource = value;
203 }
205 SetRequestSource(value);
206 return *this;
207 }
209
211
214 inline IngestionRequestType GetRequestType() const { return m_requestType; }
215 inline bool RequestTypeHasBeenSet() const { return m_requestTypeHasBeenSet; }
217 m_requestTypeHasBeenSet = true;
218 m_requestType = value;
219 }
221 SetRequestType(value);
222 return *this;
223 }
225 private:
226 Aws::String m_arn;
227
228 Aws::String m_ingestionId;
229
230 IngestionStatus m_ingestionStatus{IngestionStatus::NOT_SET};
231
232 ErrorInfo m_errorInfo;
233
234 RowInfo m_rowInfo;
235
236 QueueInfo m_queueInfo;
237
238 Aws::Utils::DateTime m_createdTime{};
239
240 long long m_ingestionTimeInSeconds{0};
241
242 long long m_ingestionSizeInBytes{0};
243
245
247 bool m_arnHasBeenSet = false;
248 bool m_ingestionIdHasBeenSet = false;
249 bool m_ingestionStatusHasBeenSet = false;
250 bool m_errorInfoHasBeenSet = false;
251 bool m_rowInfoHasBeenSet = false;
252 bool m_queueInfoHasBeenSet = false;
253 bool m_createdTimeHasBeenSet = false;
254 bool m_ingestionTimeInSecondsHasBeenSet = false;
255 bool m_ingestionSizeInBytesHasBeenSet = false;
256 bool m_requestSourceHasBeenSet = false;
257 bool m_requestTypeHasBeenSet = false;
258};
259
260} // namespace Model
261} // namespace QuickSight
262} // namespace Aws
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Ingestion.h:148
AWS_QUICKSIGHT_API Ingestion()=default
Ingestion & WithArn(ArnT &&value)
Definition Ingestion.h:54
Ingestion & WithIngestionId(IngestionIdT &&value)
Definition Ingestion.h:72
AWS_QUICKSIGHT_API Ingestion & operator=(Aws::Utils::Json::JsonView jsonValue)
IngestionRequestSource GetRequestSource() const
Definition Ingestion.h:198
Ingestion & WithIngestionStatus(IngestionStatus value)
Definition Ingestion.h:88
void SetRowInfo(RowInfoT &&value)
Definition Ingestion.h:117
void SetIngestionTimeInSeconds(long long value)
Definition Ingestion.h:168
void SetCreatedTime(CreatedTimeT &&value)
Definition Ingestion.h:151
IngestionStatus GetIngestionStatus() const
Definition Ingestion.h:82
long long GetIngestionTimeInSeconds() const
Definition Ingestion.h:166
Ingestion & WithIngestionSizeInBytes(long long value)
Definition Ingestion.h:188
long long GetIngestionSizeInBytes() const
Definition Ingestion.h:182
const QueueInfo & GetQueueInfo() const
Definition Ingestion.h:130
const ErrorInfo & GetErrorInfo() const
Definition Ingestion.h:98
Ingestion & WithErrorInfo(ErrorInfoT &&value)
Definition Ingestion.h:106
IngestionRequestType GetRequestType() const
Definition Ingestion.h:214
const RowInfo & GetRowInfo() const
Definition Ingestion.h:114
Ingestion & WithRequestType(IngestionRequestType value)
Definition Ingestion.h:220
void SetIngestionId(IngestionIdT &&value)
Definition Ingestion.h:67
void SetIngestionSizeInBytes(long long value)
Definition Ingestion.h:184
void SetRequestSource(IngestionRequestSource value)
Definition Ingestion.h:200
const Aws::String & GetArn() const
Definition Ingestion.h:46
Ingestion & WithRequestSource(IngestionRequestSource value)
Definition Ingestion.h:204
Ingestion & WithRowInfo(RowInfoT &&value)
Definition Ingestion.h:122
bool IngestionTimeInSecondsHasBeenSet() const
Definition Ingestion.h:167
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIngestionStatus(IngestionStatus value)
Definition Ingestion.h:84
Ingestion & WithQueueInfo(QueueInfoT &&value)
Definition Ingestion.h:138
AWS_QUICKSIGHT_API Ingestion(Aws::Utils::Json::JsonView jsonValue)
void SetErrorInfo(ErrorInfoT &&value)
Definition Ingestion.h:101
Ingestion & WithIngestionTimeInSeconds(long long value)
Definition Ingestion.h:172
Ingestion & WithCreatedTime(CreatedTimeT &&value)
Definition Ingestion.h:156
void SetRequestType(IngestionRequestType value)
Definition Ingestion.h:216
void SetQueueInfo(QueueInfoT &&value)
Definition Ingestion.h:133
const Aws::String & GetIngestionId() const
Definition Ingestion.h:64
bool IngestionSizeInBytesHasBeenSet() const
Definition Ingestion.h:183
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue