AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GetStatusResult.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/importexport/ImportExport_EXPORTS.h>
12#include <aws/importexport/model/Artifact.h>
13#include <aws/importexport/model/JobType.h>
14#include <aws/importexport/model/ResponseMetadata.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Xml {
24class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace ImportExport {
28namespace Model {
35 public:
36 AWS_IMPORTEXPORT_API GetStatusResult() = default;
39
41
42 inline const Aws::String& GetJobId() const { return m_jobId; }
43 template <typename JobIdT = Aws::String>
44 void SetJobId(JobIdT&& value) {
45 m_jobIdHasBeenSet = true;
46 m_jobId = std::forward<JobIdT>(value);
47 }
48 template <typename JobIdT = Aws::String>
49 GetStatusResult& WithJobId(JobIdT&& value) {
50 SetJobId(std::forward<JobIdT>(value));
51 return *this;
52 }
54
56
57 inline JobType GetJobType() const { return m_jobType; }
58 inline void SetJobType(JobType value) {
59 m_jobTypeHasBeenSet = true;
60 m_jobType = value;
61 }
63 SetJobType(value);
64 return *this;
65 }
67
69
70 inline const Aws::String& GetLocationCode() const { return m_locationCode; }
71 template <typename LocationCodeT = Aws::String>
72 void SetLocationCode(LocationCodeT&& value) {
73 m_locationCodeHasBeenSet = true;
74 m_locationCode = std::forward<LocationCodeT>(value);
75 }
76 template <typename LocationCodeT = Aws::String>
77 GetStatusResult& WithLocationCode(LocationCodeT&& value) {
78 SetLocationCode(std::forward<LocationCodeT>(value));
79 return *this;
80 }
82
84
85 inline const Aws::String& GetLocationMessage() const { return m_locationMessage; }
86 template <typename LocationMessageT = Aws::String>
87 void SetLocationMessage(LocationMessageT&& value) {
88 m_locationMessageHasBeenSet = true;
89 m_locationMessage = std::forward<LocationMessageT>(value);
90 }
91 template <typename LocationMessageT = Aws::String>
92 GetStatusResult& WithLocationMessage(LocationMessageT&& value) {
93 SetLocationMessage(std::forward<LocationMessageT>(value));
94 return *this;
95 }
97
99
100 inline const Aws::String& GetProgressCode() const { return m_progressCode; }
101 template <typename ProgressCodeT = Aws::String>
102 void SetProgressCode(ProgressCodeT&& value) {
103 m_progressCodeHasBeenSet = true;
104 m_progressCode = std::forward<ProgressCodeT>(value);
105 }
106 template <typename ProgressCodeT = Aws::String>
107 GetStatusResult& WithProgressCode(ProgressCodeT&& value) {
108 SetProgressCode(std::forward<ProgressCodeT>(value));
109 return *this;
110 }
112
114
115 inline const Aws::String& GetProgressMessage() const { return m_progressMessage; }
116 template <typename ProgressMessageT = Aws::String>
117 void SetProgressMessage(ProgressMessageT&& value) {
118 m_progressMessageHasBeenSet = true;
119 m_progressMessage = std::forward<ProgressMessageT>(value);
120 }
121 template <typename ProgressMessageT = Aws::String>
122 GetStatusResult& WithProgressMessage(ProgressMessageT&& value) {
123 SetProgressMessage(std::forward<ProgressMessageT>(value));
124 return *this;
125 }
127
129
130 inline const Aws::String& GetCarrier() const { return m_carrier; }
131 template <typename CarrierT = Aws::String>
132 void SetCarrier(CarrierT&& value) {
133 m_carrierHasBeenSet = true;
134 m_carrier = std::forward<CarrierT>(value);
135 }
136 template <typename CarrierT = Aws::String>
137 GetStatusResult& WithCarrier(CarrierT&& value) {
138 SetCarrier(std::forward<CarrierT>(value));
139 return *this;
140 }
142
144
145 inline const Aws::String& GetTrackingNumber() const { return m_trackingNumber; }
146 template <typename TrackingNumberT = Aws::String>
147 void SetTrackingNumber(TrackingNumberT&& value) {
148 m_trackingNumberHasBeenSet = true;
149 m_trackingNumber = std::forward<TrackingNumberT>(value);
150 }
151 template <typename TrackingNumberT = Aws::String>
152 GetStatusResult& WithTrackingNumber(TrackingNumberT&& value) {
153 SetTrackingNumber(std::forward<TrackingNumberT>(value));
154 return *this;
155 }
157
159
160 inline const Aws::String& GetLogBucket() const { return m_logBucket; }
161 template <typename LogBucketT = Aws::String>
162 void SetLogBucket(LogBucketT&& value) {
163 m_logBucketHasBeenSet = true;
164 m_logBucket = std::forward<LogBucketT>(value);
165 }
166 template <typename LogBucketT = Aws::String>
167 GetStatusResult& WithLogBucket(LogBucketT&& value) {
168 SetLogBucket(std::forward<LogBucketT>(value));
169 return *this;
170 }
172
174
175 inline const Aws::String& GetLogKey() const { return m_logKey; }
176 template <typename LogKeyT = Aws::String>
177 void SetLogKey(LogKeyT&& value) {
178 m_logKeyHasBeenSet = true;
179 m_logKey = std::forward<LogKeyT>(value);
180 }
181 template <typename LogKeyT = Aws::String>
182 GetStatusResult& WithLogKey(LogKeyT&& value) {
183 SetLogKey(std::forward<LogKeyT>(value));
184 return *this;
185 }
187
189
190 inline int GetErrorCount() const { return m_errorCount; }
191 inline void SetErrorCount(int value) {
192 m_errorCountHasBeenSet = true;
193 m_errorCount = value;
194 }
195 inline GetStatusResult& WithErrorCount(int value) {
196 SetErrorCount(value);
197 return *this;
198 }
200
202
203 inline const Aws::String& GetSignature() const { return m_signature; }
204 template <typename SignatureT = Aws::String>
205 void SetSignature(SignatureT&& value) {
206 m_signatureHasBeenSet = true;
207 m_signature = std::forward<SignatureT>(value);
208 }
209 template <typename SignatureT = Aws::String>
210 GetStatusResult& WithSignature(SignatureT&& value) {
211 SetSignature(std::forward<SignatureT>(value));
212 return *this;
213 }
215
217
218 inline const Aws::String& GetSignatureFileContents() const { return m_signatureFileContents; }
219 template <typename SignatureFileContentsT = Aws::String>
220 void SetSignatureFileContents(SignatureFileContentsT&& value) {
221 m_signatureFileContentsHasBeenSet = true;
222 m_signatureFileContents = std::forward<SignatureFileContentsT>(value);
223 }
224 template <typename SignatureFileContentsT = Aws::String>
225 GetStatusResult& WithSignatureFileContents(SignatureFileContentsT&& value) {
226 SetSignatureFileContents(std::forward<SignatureFileContentsT>(value));
227 return *this;
228 }
230
232
233 inline const Aws::String& GetCurrentManifest() const { return m_currentManifest; }
234 template <typename CurrentManifestT = Aws::String>
235 void SetCurrentManifest(CurrentManifestT&& value) {
236 m_currentManifestHasBeenSet = true;
237 m_currentManifest = std::forward<CurrentManifestT>(value);
238 }
239 template <typename CurrentManifestT = Aws::String>
240 GetStatusResult& WithCurrentManifest(CurrentManifestT&& value) {
241 SetCurrentManifest(std::forward<CurrentManifestT>(value));
242 return *this;
243 }
245
247
248 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
249 template <typename CreationDateT = Aws::Utils::DateTime>
250 void SetCreationDate(CreationDateT&& value) {
251 m_creationDateHasBeenSet = true;
252 m_creationDate = std::forward<CreationDateT>(value);
253 }
254 template <typename CreationDateT = Aws::Utils::DateTime>
255 GetStatusResult& WithCreationDate(CreationDateT&& value) {
256 SetCreationDate(std::forward<CreationDateT>(value));
257 return *this;
258 }
260
262
263 inline const Aws::Vector<Artifact>& GetArtifactList() const { return m_artifactList; }
264 template <typename ArtifactListT = Aws::Vector<Artifact>>
265 void SetArtifactList(ArtifactListT&& value) {
266 m_artifactListHasBeenSet = true;
267 m_artifactList = std::forward<ArtifactListT>(value);
268 }
269 template <typename ArtifactListT = Aws::Vector<Artifact>>
270 GetStatusResult& WithArtifactList(ArtifactListT&& value) {
271 SetArtifactList(std::forward<ArtifactListT>(value));
272 return *this;
273 }
274 template <typename ArtifactListT = Artifact>
275 GetStatusResult& AddArtifactList(ArtifactListT&& value) {
276 m_artifactListHasBeenSet = true;
277 m_artifactList.emplace_back(std::forward<ArtifactListT>(value));
278 return *this;
279 }
281
283
284 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
285 template <typename ResponseMetadataT = ResponseMetadata>
286 void SetResponseMetadata(ResponseMetadataT&& value) {
287 m_responseMetadataHasBeenSet = true;
288 m_responseMetadata = std::forward<ResponseMetadataT>(value);
289 }
290 template <typename ResponseMetadataT = ResponseMetadata>
291 GetStatusResult& WithResponseMetadata(ResponseMetadataT&& value) {
292 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
293 return *this;
294 }
296 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
297
298 private:
299 Aws::String m_jobId;
300
301 JobType m_jobType{JobType::NOT_SET};
302
303 Aws::String m_locationCode;
304
305 Aws::String m_locationMessage;
306
307 Aws::String m_progressCode;
308
309 Aws::String m_progressMessage;
310
311 Aws::String m_carrier;
312
313 Aws::String m_trackingNumber;
314
315 Aws::String m_logBucket;
316
317 Aws::String m_logKey;
318
319 int m_errorCount{0};
320
321 Aws::String m_signature;
322
323 Aws::String m_signatureFileContents;
324
325 Aws::String m_currentManifest;
326
327 Aws::Utils::DateTime m_creationDate{};
328
329 Aws::Vector<Artifact> m_artifactList;
330
331 ResponseMetadata m_responseMetadata;
332 Aws::Http::HttpResponseCode m_HttpResponseCode;
333 bool m_jobIdHasBeenSet = false;
334 bool m_jobTypeHasBeenSet = false;
335 bool m_locationCodeHasBeenSet = false;
336 bool m_locationMessageHasBeenSet = false;
337 bool m_progressCodeHasBeenSet = false;
338 bool m_progressMessageHasBeenSet = false;
339 bool m_carrierHasBeenSet = false;
340 bool m_trackingNumberHasBeenSet = false;
341 bool m_logBucketHasBeenSet = false;
342 bool m_logKeyHasBeenSet = false;
343 bool m_errorCountHasBeenSet = false;
344 bool m_signatureHasBeenSet = false;
345 bool m_signatureFileContentsHasBeenSet = false;
346 bool m_currentManifestHasBeenSet = false;
347 bool m_creationDateHasBeenSet = false;
348 bool m_artifactListHasBeenSet = false;
349 bool m_responseMetadataHasBeenSet = false;
350};
351
352} // namespace Model
353} // namespace ImportExport
354} // namespace Aws
void SetProgressCode(ProgressCodeT &&value)
const Aws::Vector< Artifact > & GetArtifactList() const
AWS_IMPORTEXPORT_API GetStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetSignatureFileContents() const
void SetProgressMessage(ProgressMessageT &&value)
GetStatusResult & WithJobId(JobIdT &&value)
const ResponseMetadata & GetResponseMetadata() const
void SetTrackingNumber(TrackingNumberT &&value)
const Aws::String & GetProgressMessage() const
GetStatusResult & WithResponseMetadata(ResponseMetadataT &&value)
GetStatusResult & WithLocationCode(LocationCodeT &&value)
GetStatusResult & WithProgressMessage(ProgressMessageT &&value)
GetStatusResult & WithCreationDate(CreationDateT &&value)
GetStatusResult & WithCarrier(CarrierT &&value)
void SetArtifactList(ArtifactListT &&value)
GetStatusResult & WithArtifactList(ArtifactListT &&value)
const Aws::String & GetCurrentManifest() const
const Aws::Utils::DateTime & GetCreationDate() const
GetStatusResult & WithProgressCode(ProgressCodeT &&value)
GetStatusResult & WithSignature(SignatureT &&value)
void SetLocationMessage(LocationMessageT &&value)
const Aws::String & GetTrackingNumber() const
GetStatusResult & WithSignatureFileContents(SignatureFileContentsT &&value)
GetStatusResult & WithCurrentManifest(CurrentManifestT &&value)
const Aws::String & GetLocationMessage() const
void SetLocationCode(LocationCodeT &&value)
GetStatusResult & WithTrackingNumber(TrackingNumberT &&value)
GetStatusResult & WithLocationMessage(LocationMessageT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
AWS_IMPORTEXPORT_API GetStatusResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetStatusResult & WithJobType(JobType value)
void SetCurrentManifest(CurrentManifestT &&value)
const Aws::String & GetProgressCode() const
AWS_IMPORTEXPORT_API GetStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetCreationDate(CreationDateT &&value)
void SetSignatureFileContents(SignatureFileContentsT &&value)
const Aws::String & GetLogBucket() const
GetStatusResult & WithLogKey(LogKeyT &&value)
GetStatusResult & AddArtifactList(ArtifactListT &&value)
GetStatusResult & WithLogBucket(LogBucketT &&value)
const Aws::String & GetSignature() const
GetStatusResult & WithErrorCount(int value)
const Aws::String & GetLocationCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument