AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListPartsResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3/S3_EXPORTS.h>
11#include <aws/s3/model/ChecksumAlgorithm.h>
12#include <aws/s3/model/ChecksumType.h>
13#include <aws/s3/model/Initiator.h>
14#include <aws/s3/model/Owner.h>
15#include <aws/s3/model/Part.h>
16#include <aws/s3/model/RequestCharged.h>
17#include <aws/s3/model/StorageClass.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Xml {
27class XmlDocument;
28} // namespace Xml
29} // namespace Utils
30namespace S3 {
31namespace Model {
33 public:
34 AWS_S3_API ListPartsResult() = default;
37
39
52 inline const Aws::Utils::DateTime& GetAbortDate() const { return m_abortDate; }
53 template <typename AbortDateT = Aws::Utils::DateTime>
54 void SetAbortDate(AbortDateT&& value) {
55 m_abortDateHasBeenSet = true;
56 m_abortDate = std::forward<AbortDateT>(value);
57 }
58 template <typename AbortDateT = Aws::Utils::DateTime>
59 ListPartsResult& WithAbortDate(AbortDateT&& value) {
60 SetAbortDate(std::forward<AbortDateT>(value));
61 return *this;
62 }
64
66
72 inline const Aws::String& GetAbortRuleId() const { return m_abortRuleId; }
73 template <typename AbortRuleIdT = Aws::String>
74 void SetAbortRuleId(AbortRuleIdT&& value) {
75 m_abortRuleIdHasBeenSet = true;
76 m_abortRuleId = std::forward<AbortRuleIdT>(value);
77 }
78 template <typename AbortRuleIdT = Aws::String>
79 ListPartsResult& WithAbortRuleId(AbortRuleIdT&& value) {
80 SetAbortRuleId(std::forward<AbortRuleIdT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetBucket() const { return m_bucket; }
91 template <typename BucketT = Aws::String>
92 void SetBucket(BucketT&& value) {
93 m_bucketHasBeenSet = true;
94 m_bucket = std::forward<BucketT>(value);
95 }
96 template <typename BucketT = Aws::String>
97 ListPartsResult& WithBucket(BucketT&& value) {
98 SetBucket(std::forward<BucketT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetKey() const { return m_key; }
108 template <typename KeyT = Aws::String>
109 void SetKey(KeyT&& value) {
110 m_keyHasBeenSet = true;
111 m_key = std::forward<KeyT>(value);
112 }
113 template <typename KeyT = Aws::String>
114 ListPartsResult& WithKey(KeyT&& value) {
115 SetKey(std::forward<KeyT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetUploadId() const { return m_uploadId; }
125 template <typename UploadIdT = Aws::String>
126 void SetUploadId(UploadIdT&& value) {
127 m_uploadIdHasBeenSet = true;
128 m_uploadId = std::forward<UploadIdT>(value);
129 }
130 template <typename UploadIdT = Aws::String>
131 ListPartsResult& WithUploadId(UploadIdT&& value) {
132 SetUploadId(std::forward<UploadIdT>(value));
133 return *this;
134 }
136
138
142 inline int GetPartNumberMarker() const { return m_partNumberMarker; }
143 inline void SetPartNumberMarker(int value) {
144 m_partNumberMarkerHasBeenSet = true;
145 m_partNumberMarker = value;
146 }
148 SetPartNumberMarker(value);
149 return *this;
150 }
152
154
159 inline int GetNextPartNumberMarker() const { return m_nextPartNumberMarker; }
160 inline void SetNextPartNumberMarker(int value) {
161 m_nextPartNumberMarkerHasBeenSet = true;
162 m_nextPartNumberMarker = value;
163 }
166 return *this;
167 }
169
171
174 inline int GetMaxParts() const { return m_maxParts; }
175 inline void SetMaxParts(int value) {
176 m_maxPartsHasBeenSet = true;
177 m_maxParts = value;
178 }
179 inline ListPartsResult& WithMaxParts(int value) {
180 SetMaxParts(value);
181 return *this;
182 }
184
186
191 inline bool GetIsTruncated() const { return m_isTruncated; }
192 inline void SetIsTruncated(bool value) {
193 m_isTruncatedHasBeenSet = true;
194 m_isTruncated = value;
195 }
196 inline ListPartsResult& WithIsTruncated(bool value) {
197 SetIsTruncated(value);
198 return *this;
199 }
201
203
207 inline const Aws::Vector<Part>& GetParts() const { return m_parts; }
208 template <typename PartsT = Aws::Vector<Part>>
209 void SetParts(PartsT&& value) {
210 m_partsHasBeenSet = true;
211 m_parts = std::forward<PartsT>(value);
212 }
213 template <typename PartsT = Aws::Vector<Part>>
214 ListPartsResult& WithParts(PartsT&& value) {
215 SetParts(std::forward<PartsT>(value));
216 return *this;
217 }
218 template <typename PartsT = Part>
219 ListPartsResult& AddParts(PartsT&& value) {
220 m_partsHasBeenSet = true;
221 m_parts.emplace_back(std::forward<PartsT>(value));
222 return *this;
223 }
225
227
233 inline const Initiator& GetInitiator() const { return m_initiator; }
234 template <typename InitiatorT = Initiator>
235 void SetInitiator(InitiatorT&& value) {
236 m_initiatorHasBeenSet = true;
237 m_initiator = std::forward<InitiatorT>(value);
238 }
239 template <typename InitiatorT = Initiator>
240 ListPartsResult& WithInitiator(InitiatorT&& value) {
241 SetInitiator(std::forward<InitiatorT>(value));
242 return *this;
243 }
245
247
253 inline const Owner& GetOwner() const { return m_owner; }
254 template <typename OwnerT = Owner>
255 void SetOwner(OwnerT&& value) {
256 m_ownerHasBeenSet = true;
257 m_owner = std::forward<OwnerT>(value);
258 }
259 template <typename OwnerT = Owner>
260 ListPartsResult& WithOwner(OwnerT&& value) {
261 SetOwner(std::forward<OwnerT>(value));
262 return *this;
263 }
265
267
274 inline StorageClass GetStorageClass() const { return m_storageClass; }
275 inline void SetStorageClass(StorageClass value) {
276 m_storageClassHasBeenSet = true;
277 m_storageClass = value;
278 }
280 SetStorageClass(value);
281 return *this;
282 }
284
286
287 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
289 m_requestChargedHasBeenSet = true;
290 m_requestCharged = value;
291 }
293 SetRequestCharged(value);
294 return *this;
295 }
297
299
302 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
304 m_checksumAlgorithmHasBeenSet = true;
305 m_checksumAlgorithm = value;
306 }
309 return *this;
310 }
312
314
323 inline ChecksumType GetChecksumType() const { return m_checksumType; }
324 inline void SetChecksumType(ChecksumType value) {
325 m_checksumTypeHasBeenSet = true;
326 m_checksumType = value;
327 }
329 SetChecksumType(value);
330 return *this;
331 }
333
335
336 inline const Aws::String& GetRequestId() const { return m_requestId; }
337 template <typename RequestIdT = Aws::String>
338 void SetRequestId(RequestIdT&& value) {
339 m_requestIdHasBeenSet = true;
340 m_requestId = std::forward<RequestIdT>(value);
341 }
342 template <typename RequestIdT = Aws::String>
343 ListPartsResult& WithRequestId(RequestIdT&& value) {
344 SetRequestId(std::forward<RequestIdT>(value));
345 return *this;
346 }
348 private:
349 Aws::Utils::DateTime m_abortDate{};
350
351 Aws::String m_abortRuleId;
352
353 Aws::String m_bucket;
354
355 Aws::String m_key;
356
357 Aws::String m_uploadId;
358
359 int m_partNumberMarker{0};
360
361 int m_nextPartNumberMarker{0};
362
363 int m_maxParts{0};
364
365 bool m_isTruncated{false};
366
367 Aws::Vector<Part> m_parts;
368
369 Initiator m_initiator;
370
371 Owner m_owner;
372
373 StorageClass m_storageClass{StorageClass::NOT_SET};
374
375 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
376
378
379 ChecksumType m_checksumType{ChecksumType::NOT_SET};
380
381 Aws::String m_requestId;
382 bool m_abortDateHasBeenSet = false;
383 bool m_abortRuleIdHasBeenSet = false;
384 bool m_bucketHasBeenSet = false;
385 bool m_keyHasBeenSet = false;
386 bool m_uploadIdHasBeenSet = false;
387 bool m_partNumberMarkerHasBeenSet = false;
388 bool m_nextPartNumberMarkerHasBeenSet = false;
389 bool m_maxPartsHasBeenSet = false;
390 bool m_isTruncatedHasBeenSet = false;
391 bool m_partsHasBeenSet = false;
392 bool m_initiatorHasBeenSet = false;
393 bool m_ownerHasBeenSet = false;
394 bool m_storageClassHasBeenSet = false;
395 bool m_requestChargedHasBeenSet = false;
396 bool m_checksumAlgorithmHasBeenSet = false;
397 bool m_checksumTypeHasBeenSet = false;
398 bool m_requestIdHasBeenSet = false;
399};
400
401} // namespace Model
402} // namespace S3
403} // namespace Aws
const Aws::String & GetRequestId() 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