AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ExecutionRecord.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/ExecutionResult.h>
9#include <aws/appflow/model/ExecutionStatus.h>
10#include <aws/appflow/model/MetadataCatalogDetail.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Appflow {
25namespace Model {
26
34 public:
35 AWS_APPFLOW_API ExecutionRecord() = default;
36 AWS_APPFLOW_API ExecutionRecord(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetExecutionId() const { return m_executionId; }
45 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
46 template <typename ExecutionIdT = Aws::String>
47 void SetExecutionId(ExecutionIdT&& value) {
48 m_executionIdHasBeenSet = true;
49 m_executionId = std::forward<ExecutionIdT>(value);
50 }
51 template <typename ExecutionIdT = Aws::String>
52 ExecutionRecord& WithExecutionId(ExecutionIdT&& value) {
53 SetExecutionId(std::forward<ExecutionIdT>(value));
54 return *this;
55 }
57
59
63 inline ExecutionStatus GetExecutionStatus() const { return m_executionStatus; }
64 inline bool ExecutionStatusHasBeenSet() const { return m_executionStatusHasBeenSet; }
66 m_executionStatusHasBeenSet = true;
67 m_executionStatus = value;
68 }
70 SetExecutionStatus(value);
71 return *this;
72 }
74
76
79 inline const ExecutionResult& GetExecutionResult() const { return m_executionResult; }
80 inline bool ExecutionResultHasBeenSet() const { return m_executionResultHasBeenSet; }
81 template <typename ExecutionResultT = ExecutionResult>
82 void SetExecutionResult(ExecutionResultT&& value) {
83 m_executionResultHasBeenSet = true;
84 m_executionResult = std::forward<ExecutionResultT>(value);
85 }
86 template <typename ExecutionResultT = ExecutionResult>
87 ExecutionRecord& WithExecutionResult(ExecutionResultT&& value) {
88 SetExecutionResult(std::forward<ExecutionResultT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
98 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
99 template <typename StartedAtT = Aws::Utils::DateTime>
100 void SetStartedAt(StartedAtT&& value) {
101 m_startedAtHasBeenSet = true;
102 m_startedAt = std::forward<StartedAtT>(value);
103 }
104 template <typename StartedAtT = Aws::Utils::DateTime>
105 ExecutionRecord& WithStartedAt(StartedAtT&& value) {
106 SetStartedAt(std::forward<StartedAtT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
116 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
117 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
118 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
119 m_lastUpdatedAtHasBeenSet = true;
120 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
121 }
122 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
123 ExecutionRecord& WithLastUpdatedAt(LastUpdatedAtT&& value) {
124 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Utils::DateTime& GetDataPullStartTime() const { return m_dataPullStartTime; }
135 inline bool DataPullStartTimeHasBeenSet() const { return m_dataPullStartTimeHasBeenSet; }
136 template <typename DataPullStartTimeT = Aws::Utils::DateTime>
137 void SetDataPullStartTime(DataPullStartTimeT&& value) {
138 m_dataPullStartTimeHasBeenSet = true;
139 m_dataPullStartTime = std::forward<DataPullStartTimeT>(value);
140 }
141 template <typename DataPullStartTimeT = Aws::Utils::DateTime>
142 ExecutionRecord& WithDataPullStartTime(DataPullStartTimeT&& value) {
143 SetDataPullStartTime(std::forward<DataPullStartTimeT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::Utils::DateTime& GetDataPullEndTime() const { return m_dataPullEndTime; }
154 inline bool DataPullEndTimeHasBeenSet() const { return m_dataPullEndTimeHasBeenSet; }
155 template <typename DataPullEndTimeT = Aws::Utils::DateTime>
156 void SetDataPullEndTime(DataPullEndTimeT&& value) {
157 m_dataPullEndTimeHasBeenSet = true;
158 m_dataPullEndTime = std::forward<DataPullEndTimeT>(value);
159 }
160 template <typename DataPullEndTimeT = Aws::Utils::DateTime>
161 ExecutionRecord& WithDataPullEndTime(DataPullEndTimeT&& value) {
162 SetDataPullEndTime(std::forward<DataPullEndTimeT>(value));
163 return *this;
164 }
166
168
172 inline const Aws::Vector<MetadataCatalogDetail>& GetMetadataCatalogDetails() const { return m_metadataCatalogDetails; }
173 inline bool MetadataCatalogDetailsHasBeenSet() const { return m_metadataCatalogDetailsHasBeenSet; }
174 template <typename MetadataCatalogDetailsT = Aws::Vector<MetadataCatalogDetail>>
175 void SetMetadataCatalogDetails(MetadataCatalogDetailsT&& value) {
176 m_metadataCatalogDetailsHasBeenSet = true;
177 m_metadataCatalogDetails = std::forward<MetadataCatalogDetailsT>(value);
178 }
179 template <typename MetadataCatalogDetailsT = Aws::Vector<MetadataCatalogDetail>>
180 ExecutionRecord& WithMetadataCatalogDetails(MetadataCatalogDetailsT&& value) {
181 SetMetadataCatalogDetails(std::forward<MetadataCatalogDetailsT>(value));
182 return *this;
183 }
184 template <typename MetadataCatalogDetailsT = MetadataCatalogDetail>
185 ExecutionRecord& AddMetadataCatalogDetails(MetadataCatalogDetailsT&& value) {
186 m_metadataCatalogDetailsHasBeenSet = true;
187 m_metadataCatalogDetails.emplace_back(std::forward<MetadataCatalogDetailsT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_executionId;
193
194 ExecutionStatus m_executionStatus{ExecutionStatus::NOT_SET};
195
196 ExecutionResult m_executionResult;
197
198 Aws::Utils::DateTime m_startedAt{};
199
200 Aws::Utils::DateTime m_lastUpdatedAt{};
201
202 Aws::Utils::DateTime m_dataPullStartTime{};
203
204 Aws::Utils::DateTime m_dataPullEndTime{};
205
206 Aws::Vector<MetadataCatalogDetail> m_metadataCatalogDetails;
207 bool m_executionIdHasBeenSet = false;
208 bool m_executionStatusHasBeenSet = false;
209 bool m_executionResultHasBeenSet = false;
210 bool m_startedAtHasBeenSet = false;
211 bool m_lastUpdatedAtHasBeenSet = false;
212 bool m_dataPullStartTimeHasBeenSet = false;
213 bool m_dataPullEndTimeHasBeenSet = false;
214 bool m_metadataCatalogDetailsHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace Appflow
219} // namespace Aws
ExecutionRecord & WithExecutionStatus(ExecutionStatus value)
ExecutionStatus GetExecutionStatus() const
AWS_APPFLOW_API ExecutionRecord()=default
void SetDataPullStartTime(DataPullStartTimeT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
const ExecutionResult & GetExecutionResult() const
ExecutionRecord & WithStartedAt(StartedAtT &&value)
ExecutionRecord & AddMetadataCatalogDetails(MetadataCatalogDetailsT &&value)
ExecutionRecord & WithExecutionId(ExecutionIdT &&value)
const Aws::Vector< MetadataCatalogDetail > & GetMetadataCatalogDetails() const
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPFLOW_API ExecutionRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
ExecutionRecord & WithDataPullEndTime(DataPullEndTimeT &&value)
ExecutionRecord & WithExecutionResult(ExecutionResultT &&value)
void SetMetadataCatalogDetails(MetadataCatalogDetailsT &&value)
void SetDataPullEndTime(DataPullEndTimeT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
const Aws::String & GetExecutionId() const
const Aws::Utils::DateTime & GetDataPullStartTime() const
void SetExecutionResult(ExecutionResultT &&value)
const Aws::Utils::DateTime & GetDataPullEndTime() const
ExecutionRecord & WithLastUpdatedAt(LastUpdatedAtT &&value)
void SetExecutionStatus(ExecutionStatus value)
ExecutionRecord & WithMetadataCatalogDetails(MetadataCatalogDetailsT &&value)
ExecutionRecord & WithDataPullStartTime(DataPullStartTimeT &&value)
AWS_APPFLOW_API ExecutionRecord(Aws::Utils::Json::JsonView jsonValue)
void SetExecutionId(ExecutionIdT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetStartedAt(StartedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue