AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
GetUploadJobResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
12#include <aws/customer-profiles/model/ObjectTypeField.h>
13#include <aws/customer-profiles/model/ResultsSummary.h>
14#include <aws/customer-profiles/model/StatusReason.h>
15#include <aws/customer-profiles/model/UploadJobStatus.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace CustomerProfiles {
29namespace Model {
31 public:
32 AWS_CUSTOMERPROFILES_API GetUploadJobResult() = default;
35
37
40 inline const Aws::String& GetJobId() const { return m_jobId; }
41 template <typename JobIdT = Aws::String>
42 void SetJobId(JobIdT&& value) {
43 m_jobIdHasBeenSet = true;
44 m_jobId = std::forward<JobIdT>(value);
45 }
46 template <typename JobIdT = Aws::String>
47 GetUploadJobResult& WithJobId(JobIdT&& value) {
48 SetJobId(std::forward<JobIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetDisplayName() const { return m_displayName; }
59 template <typename DisplayNameT = Aws::String>
60 void SetDisplayName(DisplayNameT&& value) {
61 m_displayNameHasBeenSet = true;
62 m_displayName = std::forward<DisplayNameT>(value);
63 }
64 template <typename DisplayNameT = Aws::String>
65 GetUploadJobResult& WithDisplayName(DisplayNameT&& value) {
66 SetDisplayName(std::forward<DisplayNameT>(value));
67 return *this;
68 }
70
72
84 inline UploadJobStatus GetStatus() const { return m_status; }
85 inline void SetStatus(UploadJobStatus value) {
86 m_statusHasBeenSet = true;
87 m_status = value;
88 }
90 SetStatus(value);
91 return *this;
92 }
94
96
102 inline StatusReason GetStatusReason() const { return m_statusReason; }
103 inline void SetStatusReason(StatusReason value) {
104 m_statusReasonHasBeenSet = true;
105 m_statusReason = value;
106 }
108 SetStatusReason(value);
109 return *this;
110 }
112
114
117 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
118 template <typename CreatedAtT = Aws::Utils::DateTime>
119 void SetCreatedAt(CreatedAtT&& value) {
120 m_createdAtHasBeenSet = true;
121 m_createdAt = std::forward<CreatedAtT>(value);
122 }
123 template <typename CreatedAtT = Aws::Utils::DateTime>
124 GetUploadJobResult& WithCreatedAt(CreatedAtT&& value) {
125 SetCreatedAt(std::forward<CreatedAtT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
135 template <typename CompletedAtT = Aws::Utils::DateTime>
136 void SetCompletedAt(CompletedAtT&& value) {
137 m_completedAtHasBeenSet = true;
138 m_completedAt = std::forward<CompletedAtT>(value);
139 }
140 template <typename CompletedAtT = Aws::Utils::DateTime>
141 GetUploadJobResult& WithCompletedAt(CompletedAtT&& value) {
142 SetCompletedAt(std::forward<CompletedAtT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::Map<Aws::String, ObjectTypeField>& GetFields() const { return m_fields; }
153 template <typename FieldsT = Aws::Map<Aws::String, ObjectTypeField>>
154 void SetFields(FieldsT&& value) {
155 m_fieldsHasBeenSet = true;
156 m_fields = std::forward<FieldsT>(value);
157 }
158 template <typename FieldsT = Aws::Map<Aws::String, ObjectTypeField>>
159 GetUploadJobResult& WithFields(FieldsT&& value) {
160 SetFields(std::forward<FieldsT>(value));
161 return *this;
162 }
163 template <typename FieldsKeyT = Aws::String, typename FieldsValueT = ObjectTypeField>
164 GetUploadJobResult& AddFields(FieldsKeyT&& key, FieldsValueT&& value) {
165 m_fieldsHasBeenSet = true;
166 m_fields.emplace(std::forward<FieldsKeyT>(key), std::forward<FieldsValueT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetUniqueKey() const { return m_uniqueKey; }
176 template <typename UniqueKeyT = Aws::String>
177 void SetUniqueKey(UniqueKeyT&& value) {
178 m_uniqueKeyHasBeenSet = true;
179 m_uniqueKey = std::forward<UniqueKeyT>(value);
180 }
181 template <typename UniqueKeyT = Aws::String>
182 GetUploadJobResult& WithUniqueKey(UniqueKeyT&& value) {
183 SetUniqueKey(std::forward<UniqueKeyT>(value));
184 return *this;
185 }
187
189
193 inline const ResultsSummary& GetResultsSummary() const { return m_resultsSummary; }
194 template <typename ResultsSummaryT = ResultsSummary>
195 void SetResultsSummary(ResultsSummaryT&& value) {
196 m_resultsSummaryHasBeenSet = true;
197 m_resultsSummary = std::forward<ResultsSummaryT>(value);
198 }
199 template <typename ResultsSummaryT = ResultsSummary>
200 GetUploadJobResult& WithResultsSummary(ResultsSummaryT&& value) {
201 SetResultsSummary(std::forward<ResultsSummaryT>(value));
202 return *this;
203 }
205
207
210 inline int GetDataExpiry() const { return m_dataExpiry; }
211 inline void SetDataExpiry(int value) {
212 m_dataExpiryHasBeenSet = true;
213 m_dataExpiry = value;
214 }
216 SetDataExpiry(value);
217 return *this;
218 }
220
222
223 inline const Aws::String& GetRequestId() const { return m_requestId; }
224 template <typename RequestIdT = Aws::String>
225 void SetRequestId(RequestIdT&& value) {
226 m_requestIdHasBeenSet = true;
227 m_requestId = std::forward<RequestIdT>(value);
228 }
229 template <typename RequestIdT = Aws::String>
230 GetUploadJobResult& WithRequestId(RequestIdT&& value) {
231 SetRequestId(std::forward<RequestIdT>(value));
232 return *this;
233 }
235 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
236
237 private:
238 Aws::String m_jobId;
239
240 Aws::String m_displayName;
241
243
244 StatusReason m_statusReason{StatusReason::NOT_SET};
245
246 Aws::Utils::DateTime m_createdAt{};
247
248 Aws::Utils::DateTime m_completedAt{};
249
251
252 Aws::String m_uniqueKey;
253
254 ResultsSummary m_resultsSummary;
255
256 int m_dataExpiry{0};
257
258 Aws::String m_requestId;
259 Aws::Http::HttpResponseCode m_HttpResponseCode;
260 bool m_jobIdHasBeenSet = false;
261 bool m_displayNameHasBeenSet = false;
262 bool m_statusHasBeenSet = false;
263 bool m_statusReasonHasBeenSet = false;
264 bool m_createdAtHasBeenSet = false;
265 bool m_completedAtHasBeenSet = false;
266 bool m_fieldsHasBeenSet = false;
267 bool m_uniqueKeyHasBeenSet = false;
268 bool m_resultsSummaryHasBeenSet = false;
269 bool m_dataExpiryHasBeenSet = false;
270 bool m_requestIdHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace CustomerProfiles
275} // namespace Aws
GetUploadJobResult & WithRequestId(RequestIdT &&value)
AWS_CUSTOMERPROFILES_API GetUploadJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUploadJobResult & WithDisplayName(DisplayNameT &&value)
GetUploadJobResult & WithJobId(JobIdT &&value)
GetUploadJobResult & WithStatus(UploadJobStatus value)
GetUploadJobResult & WithFields(FieldsT &&value)
AWS_CUSTOMERPROFILES_API GetUploadJobResult()=default
GetUploadJobResult & WithUniqueKey(UniqueKeyT &&value)
AWS_CUSTOMERPROFILES_API GetUploadJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, ObjectTypeField > & GetFields() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetCreatedAt() const
GetUploadJobResult & WithStatusReason(StatusReason value)
GetUploadJobResult & AddFields(FieldsKeyT &&key, FieldsValueT &&value)
const Aws::Utils::DateTime & GetCompletedAt() const
GetUploadJobResult & WithCompletedAt(CompletedAtT &&value)
GetUploadJobResult & WithCreatedAt(CreatedAtT &&value)
GetUploadJobResult & WithResultsSummary(ResultsSummaryT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue