AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
ListPartsResult.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/s3/S3_EXPORTS.h>
12#include <aws/s3/model/ChecksumAlgorithm.h>
13#include <aws/s3/model/ChecksumType.h>
14#include <aws/s3/model/Initiator.h>
15#include <aws/s3/model/Owner.h>
16#include <aws/s3/model/Part.h>
17#include <aws/s3/model/RequestCharged.h>
18#include <aws/s3/model/StorageClass.h>
19
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Xml {
28class XmlDocument;
29} // namespace Xml
30} // namespace Utils
31namespace S3 {
32namespace Model {
34 public:
35 AWS_S3_API ListPartsResult() = default;
38
40
53 inline const Aws::Utils::DateTime& GetAbortDate() const { return m_abortDate; }
54 template <typename AbortDateT = Aws::Utils::DateTime>
55 void SetAbortDate(AbortDateT&& value) {
56 m_abortDateHasBeenSet = true;
57 m_abortDate = std::forward<AbortDateT>(value);
58 }
59 template <typename AbortDateT = Aws::Utils::DateTime>
60 ListPartsResult& WithAbortDate(AbortDateT&& value) {
61 SetAbortDate(std::forward<AbortDateT>(value));
62 return *this;
63 }
65
67
73 inline const Aws::String& GetAbortRuleId() const { return m_abortRuleId; }
74 template <typename AbortRuleIdT = Aws::String>
75 void SetAbortRuleId(AbortRuleIdT&& value) {
76 m_abortRuleIdHasBeenSet = true;
77 m_abortRuleId = std::forward<AbortRuleIdT>(value);
78 }
79 template <typename AbortRuleIdT = Aws::String>
80 ListPartsResult& WithAbortRuleId(AbortRuleIdT&& value) {
81 SetAbortRuleId(std::forward<AbortRuleIdT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetBucket() const { return m_bucket; }
92 template <typename BucketT = Aws::String>
93 void SetBucket(BucketT&& value) {
94 m_bucketHasBeenSet = true;
95 m_bucket = std::forward<BucketT>(value);
96 }
97 template <typename BucketT = Aws::String>
98 ListPartsResult& WithBucket(BucketT&& value) {
99 SetBucket(std::forward<BucketT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetKey() const { return m_key; }
109 template <typename KeyT = Aws::String>
110 void SetKey(KeyT&& value) {
111 m_keyHasBeenSet = true;
112 m_key = std::forward<KeyT>(value);
113 }
114 template <typename KeyT = Aws::String>
115 ListPartsResult& WithKey(KeyT&& value) {
116 SetKey(std::forward<KeyT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetUploadId() const { return m_uploadId; }
126 template <typename UploadIdT = Aws::String>
127 void SetUploadId(UploadIdT&& value) {
128 m_uploadIdHasBeenSet = true;
129 m_uploadId = std::forward<UploadIdT>(value);
130 }
131 template <typename UploadIdT = Aws::String>
132 ListPartsResult& WithUploadId(UploadIdT&& value) {
133 SetUploadId(std::forward<UploadIdT>(value));
134 return *this;
135 }
137
139
143 inline int GetPartNumberMarker() const { return m_partNumberMarker; }
144 inline void SetPartNumberMarker(int value) {
145 m_partNumberMarkerHasBeenSet = true;
146 m_partNumberMarker = value;
147 }
149 SetPartNumberMarker(value);
150 return *this;
151 }
153
155
160 inline int GetNextPartNumberMarker() const { return m_nextPartNumberMarker; }
161 inline void SetNextPartNumberMarker(int value) {
162 m_nextPartNumberMarkerHasBeenSet = true;
163 m_nextPartNumberMarker = value;
164 }
167 return *this;
168 }
170
172
175 inline int GetMaxParts() const { return m_maxParts; }
176 inline void SetMaxParts(int value) {
177 m_maxPartsHasBeenSet = true;
178 m_maxParts = value;
179 }
180 inline ListPartsResult& WithMaxParts(int value) {
181 SetMaxParts(value);
182 return *this;
183 }
185
187
192 inline bool GetIsTruncated() const { return m_isTruncated; }
193 inline void SetIsTruncated(bool value) {
194 m_isTruncatedHasBeenSet = true;
195 m_isTruncated = value;
196 }
197 inline ListPartsResult& WithIsTruncated(bool value) {
198 SetIsTruncated(value);
199 return *this;
200 }
202
204
208 inline const Aws::Vector<Part>& GetParts() const { return m_parts; }
209 template <typename PartsT = Aws::Vector<Part>>
210 void SetParts(PartsT&& value) {
211 m_partsHasBeenSet = true;
212 m_parts = std::forward<PartsT>(value);
213 }
214 template <typename PartsT = Aws::Vector<Part>>
215 ListPartsResult& WithParts(PartsT&& value) {
216 SetParts(std::forward<PartsT>(value));
217 return *this;
218 }
219 template <typename PartsT = Part>
220 ListPartsResult& AddParts(PartsT&& value) {
221 m_partsHasBeenSet = true;
222 m_parts.emplace_back(std::forward<PartsT>(value));
223 return *this;
224 }
226
228
234 inline const Initiator& GetInitiator() const { return m_initiator; }
235 template <typename InitiatorT = Initiator>
236 void SetInitiator(InitiatorT&& value) {
237 m_initiatorHasBeenSet = true;
238 m_initiator = std::forward<InitiatorT>(value);
239 }
240 template <typename InitiatorT = Initiator>
241 ListPartsResult& WithInitiator(InitiatorT&& value) {
242 SetInitiator(std::forward<InitiatorT>(value));
243 return *this;
244 }
246
248
254 inline const Owner& GetOwner() const { return m_owner; }
255 template <typename OwnerT = Owner>
256 void SetOwner(OwnerT&& value) {
257 m_ownerHasBeenSet = true;
258 m_owner = std::forward<OwnerT>(value);
259 }
260 template <typename OwnerT = Owner>
261 ListPartsResult& WithOwner(OwnerT&& value) {
262 SetOwner(std::forward<OwnerT>(value));
263 return *this;
264 }
266
268
275 inline StorageClass GetStorageClass() const { return m_storageClass; }
276 inline void SetStorageClass(StorageClass value) {
277 m_storageClassHasBeenSet = true;
278 m_storageClass = value;
279 }
281 SetStorageClass(value);
282 return *this;
283 }
285
287
288 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
290 m_requestChargedHasBeenSet = true;
291 m_requestCharged = value;
292 }
294 SetRequestCharged(value);
295 return *this;
296 }
298
300
303 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
305 m_checksumAlgorithmHasBeenSet = true;
306 m_checksumAlgorithm = value;
307 }
310 return *this;
311 }
313
315
324 inline ChecksumType GetChecksumType() const { return m_checksumType; }
325 inline void SetChecksumType(ChecksumType value) {
326 m_checksumTypeHasBeenSet = true;
327 m_checksumType = value;
328 }
330 SetChecksumType(value);
331 return *this;
332 }
334
336
337 inline const Aws::String& GetRequestId() const { return m_requestId; }
338 template <typename RequestIdT = Aws::String>
339 void SetRequestId(RequestIdT&& value) {
340 m_requestIdHasBeenSet = true;
341 m_requestId = std::forward<RequestIdT>(value);
342 }
343 template <typename RequestIdT = Aws::String>
344 ListPartsResult& WithRequestId(RequestIdT&& value) {
345 SetRequestId(std::forward<RequestIdT>(value));
346 return *this;
347 }
349 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
350
351 private:
352 Aws::Utils::DateTime m_abortDate{};
353
354 Aws::String m_abortRuleId;
355
356 Aws::String m_bucket;
357
358 Aws::String m_key;
359
360 Aws::String m_uploadId;
361
362 int m_partNumberMarker{0};
363
364 int m_nextPartNumberMarker{0};
365
366 int m_maxParts{0};
367
368 bool m_isTruncated{false};
369
370 Aws::Vector<Part> m_parts;
371
372 Initiator m_initiator;
373
374 Owner m_owner;
375
376 StorageClass m_storageClass{StorageClass::NOT_SET};
377
378 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
379
381
382 ChecksumType m_checksumType{ChecksumType::NOT_SET};
383
384 Aws::String m_requestId;
385 Aws::Http::HttpResponseCode m_HttpResponseCode;
386 bool m_abortDateHasBeenSet = false;
387 bool m_abortRuleIdHasBeenSet = false;
388 bool m_bucketHasBeenSet = false;
389 bool m_keyHasBeenSet = false;
390 bool m_uploadIdHasBeenSet = false;
391 bool m_partNumberMarkerHasBeenSet = false;
392 bool m_nextPartNumberMarkerHasBeenSet = false;
393 bool m_maxPartsHasBeenSet = false;
394 bool m_isTruncatedHasBeenSet = false;
395 bool m_partsHasBeenSet = false;
396 bool m_initiatorHasBeenSet = false;
397 bool m_ownerHasBeenSet = false;
398 bool m_storageClassHasBeenSet = false;
399 bool m_requestChargedHasBeenSet = false;
400 bool m_checksumAlgorithmHasBeenSet = false;
401 bool m_checksumTypeHasBeenSet = false;
402 bool m_requestIdHasBeenSet = false;
403};
404
405} // namespace Model
406} // namespace S3
407} // namespace Aws
const Aws::String & GetRequestId() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListPartsResult & WithStorageClass(StorageClass value)
void SetAbortRuleId(AbortRuleIdT &&value)
ListPartsResult & WithAbortRuleId(AbortRuleIdT &&value)
ListPartsResult & WithInitiator(InitiatorT &&value)
const Aws::String & GetAbortRuleId() const
StorageClass GetStorageClass() const
ListPartsResult & WithNextPartNumberMarker(int value)
RequestCharged GetRequestCharged() const
void SetAbortDate(AbortDateT &&value)
ListPartsResult & WithBucket(BucketT &&value)
ListPartsResult & WithAbortDate(AbortDateT &&value)
ChecksumType GetChecksumType() const
ListPartsResult & WithChecksumType(ChecksumType value)
const Aws::Utils::DateTime & GetAbortDate() const
void SetChecksumAlgorithm(ChecksumAlgorithm value)
AWS_S3_API ListPartsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetStorageClass(StorageClass value)
ListPartsResult & WithMaxParts(int value)
void SetBucket(BucketT &&value)
ListPartsResult & WithRequestId(RequestIdT &&value)
const Initiator & GetInitiator() const
void SetUploadId(UploadIdT &&value)
AWS_S3_API ListPartsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetKey() const
ChecksumAlgorithm GetChecksumAlgorithm() const
const Aws::String & GetUploadId() const
ListPartsResult & WithChecksumAlgorithm(ChecksumAlgorithm value)
ListPartsResult & WithUploadId(UploadIdT &&value)
void SetChecksumType(ChecksumType value)
void SetInitiator(InitiatorT &&value)
void SetRequestId(RequestIdT &&value)
ListPartsResult & WithPartNumberMarker(int value)
ListPartsResult & WithKey(KeyT &&value)
ListPartsResult & WithRequestCharged(RequestCharged value)
ListPartsResult & AddParts(PartsT &&value)
AWS_S3_API ListPartsResult()=default
const Aws::Vector< Part > & GetParts() const
ListPartsResult & WithIsTruncated(bool value)
void SetRequestCharged(RequestCharged value)
ListPartsResult & WithParts(PartsT &&value)
ListPartsResult & WithOwner(OwnerT &&value)
const Aws::String & GetBucket() 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