AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CompleteMultipartUploadRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/S3Request.h>
10#include <aws/s3/S3_EXPORTS.h>
11#include <aws/s3/model/ChecksumType.h>
12#include <aws/s3/model/CompletedMultipartUpload.h>
13#include <aws/s3/model/RequestPayer.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace S3 {
22namespace Model {
23
27 public:
28 AWS_S3_API CompleteMultipartUploadRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CompleteMultipartUpload"; }
35
36 AWS_S3_API Aws::String SerializePayload() const override;
37
38 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
42 AWS_S3_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
46 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
47
49
84 inline const Aws::String& GetBucket() const { return m_bucket; }
85 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
86 template <typename BucketT = Aws::String>
87 void SetBucket(BucketT&& value) {
88 m_bucketHasBeenSet = true;
89 m_bucket = std::forward<BucketT>(value);
90 }
91 template <typename BucketT = Aws::String>
93 SetBucket(std::forward<BucketT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetKey() const { return m_key; }
103 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
104 template <typename KeyT = Aws::String>
105 void SetKey(KeyT&& value) {
106 m_keyHasBeenSet = true;
107 m_key = std::forward<KeyT>(value);
108 }
109 template <typename KeyT = Aws::String>
111 SetKey(std::forward<KeyT>(value));
112 return *this;
113 }
115
117
120 inline const CompletedMultipartUpload& GetMultipartUpload() const { return m_multipartUpload; }
121 inline bool MultipartUploadHasBeenSet() const { return m_multipartUploadHasBeenSet; }
122 template <typename MultipartUploadT = CompletedMultipartUpload>
123 void SetMultipartUpload(MultipartUploadT&& value) {
124 m_multipartUploadHasBeenSet = true;
125 m_multipartUpload = std::forward<MultipartUploadT>(value);
126 }
127 template <typename MultipartUploadT = CompletedMultipartUpload>
129 SetMultipartUpload(std::forward<MultipartUploadT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetUploadId() const { return m_uploadId; }
139 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
140 template <typename UploadIdT = Aws::String>
141 void SetUploadId(UploadIdT&& value) {
142 m_uploadIdHasBeenSet = true;
143 m_uploadId = std::forward<UploadIdT>(value);
144 }
145 template <typename UploadIdT = Aws::String>
147 SetUploadId(std::forward<UploadIdT>(value));
148 return *this;
149 }
151
153
161 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
162 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
163 template <typename ChecksumCRC32T = Aws::String>
164 void SetChecksumCRC32(ChecksumCRC32T&& value) {
165 m_checksumCRC32HasBeenSet = true;
166 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
167 }
168 template <typename ChecksumCRC32T = Aws::String>
170 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
171 return *this;
172 }
174
176
184 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
185 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
186 template <typename ChecksumCRC32CT = Aws::String>
187 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
188 m_checksumCRC32CHasBeenSet = true;
189 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
190 }
191 template <typename ChecksumCRC32CT = Aws::String>
193 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
194 return *this;
195 }
197
199
208 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
209 inline bool ChecksumCRC64NVMEHasBeenSet() const { return m_checksumCRC64NVMEHasBeenSet; }
210 template <typename ChecksumCRC64NVMET = Aws::String>
211 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
212 m_checksumCRC64NVMEHasBeenSet = true;
213 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
214 }
215 template <typename ChecksumCRC64NVMET = Aws::String>
217 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
218 return *this;
219 }
221
223
231 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
232 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
233 template <typename ChecksumSHA1T = Aws::String>
234 void SetChecksumSHA1(ChecksumSHA1T&& value) {
235 m_checksumSHA1HasBeenSet = true;
236 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
237 }
238 template <typename ChecksumSHA1T = Aws::String>
240 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
241 return *this;
242 }
244
246
254 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
255 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
256 template <typename ChecksumSHA256T = Aws::String>
257 void SetChecksumSHA256(ChecksumSHA256T&& value) {
258 m_checksumSHA256HasBeenSet = true;
259 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
260 }
261 template <typename ChecksumSHA256T = Aws::String>
263 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
264 return *this;
265 }
267
269
279 inline ChecksumType GetChecksumType() const { return m_checksumType; }
280 inline bool ChecksumTypeHasBeenSet() const { return m_checksumTypeHasBeenSet; }
281 inline void SetChecksumType(ChecksumType value) {
282 m_checksumTypeHasBeenSet = true;
283 m_checksumType = value;
284 }
286 SetChecksumType(value);
287 return *this;
288 }
290
292
297 inline long long GetMpuObjectSize() const { return m_mpuObjectSize; }
298 inline bool MpuObjectSizeHasBeenSet() const { return m_mpuObjectSizeHasBeenSet; }
299 inline void SetMpuObjectSize(long long value) {
300 m_mpuObjectSizeHasBeenSet = true;
301 m_mpuObjectSize = value;
302 }
304 SetMpuObjectSize(value);
305 return *this;
306 }
308
310
311 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
312 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
313 inline void SetRequestPayer(RequestPayer value) {
314 m_requestPayerHasBeenSet = true;
315 m_requestPayer = value;
316 }
318 SetRequestPayer(value);
319 return *this;
320 }
322
324
329 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
330 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
331 template <typename ExpectedBucketOwnerT = Aws::String>
332 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
333 m_expectedBucketOwnerHasBeenSet = true;
334 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
335 }
336 template <typename ExpectedBucketOwnerT = Aws::String>
338 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
339 return *this;
340 }
342
344
357 inline const Aws::String& GetIfMatch() const { return m_ifMatch; }
358 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
359 template <typename IfMatchT = Aws::String>
360 void SetIfMatch(IfMatchT&& value) {
361 m_ifMatchHasBeenSet = true;
362 m_ifMatch = std::forward<IfMatchT>(value);
363 }
364 template <typename IfMatchT = Aws::String>
366 SetIfMatch(std::forward<IfMatchT>(value));
367 return *this;
368 }
370
372
384 inline const Aws::String& GetIfNoneMatch() const { return m_ifNoneMatch; }
385 inline bool IfNoneMatchHasBeenSet() const { return m_ifNoneMatchHasBeenSet; }
386 template <typename IfNoneMatchT = Aws::String>
387 void SetIfNoneMatch(IfNoneMatchT&& value) {
388 m_ifNoneMatchHasBeenSet = true;
389 m_ifNoneMatch = std::forward<IfNoneMatchT>(value);
390 }
391 template <typename IfNoneMatchT = Aws::String>
393 SetIfNoneMatch(std::forward<IfNoneMatchT>(value));
394 return *this;
395 }
397
399
408 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
409 inline bool SSECustomerAlgorithmHasBeenSet() const { return m_sSECustomerAlgorithmHasBeenSet; }
410 template <typename SSECustomerAlgorithmT = Aws::String>
411 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
412 m_sSECustomerAlgorithmHasBeenSet = true;
413 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
414 }
415 template <typename SSECustomerAlgorithmT = Aws::String>
417 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
418 return *this;
419 }
421
423
431 inline const Aws::String& GetSSECustomerKey() const { return m_sSECustomerKey; }
432 inline bool SSECustomerKeyHasBeenSet() const { return m_sSECustomerKeyHasBeenSet; }
433 template <typename SSECustomerKeyT = Aws::String>
434 void SetSSECustomerKey(SSECustomerKeyT&& value) {
435 m_sSECustomerKeyHasBeenSet = true;
436 m_sSECustomerKey = std::forward<SSECustomerKeyT>(value);
437 }
438 template <typename SSECustomerKeyT = Aws::String>
440 SetSSECustomerKey(std::forward<SSECustomerKeyT>(value));
441 return *this;
442 }
444
446
454 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
455 inline bool SSECustomerKeyMD5HasBeenSet() const { return m_sSECustomerKeyMD5HasBeenSet; }
456 template <typename SSECustomerKeyMD5T = Aws::String>
457 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
458 m_sSECustomerKeyMD5HasBeenSet = true;
459 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
460 }
461 template <typename SSECustomerKeyMD5T = Aws::String>
463 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
464 return *this;
465 }
467
469
470 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
471 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
472 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
473 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
474 m_customizedAccessLogTagHasBeenSet = true;
475 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
476 }
477 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
479 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
480 return *this;
481 }
482 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
483 CompleteMultipartUploadRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
484 m_customizedAccessLogTagHasBeenSet = true;
485 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
486 return *this;
487 }
489 private:
490 Aws::String m_bucket;
491 bool m_bucketHasBeenSet = false;
492
493 Aws::String m_key;
494 bool m_keyHasBeenSet = false;
495
496 CompletedMultipartUpload m_multipartUpload;
497 bool m_multipartUploadHasBeenSet = false;
498
499 Aws::String m_uploadId;
500 bool m_uploadIdHasBeenSet = false;
501
502 Aws::String m_checksumCRC32;
503 bool m_checksumCRC32HasBeenSet = false;
504
505 Aws::String m_checksumCRC32C;
506 bool m_checksumCRC32CHasBeenSet = false;
507
508 Aws::String m_checksumCRC64NVME;
509 bool m_checksumCRC64NVMEHasBeenSet = false;
510
511 Aws::String m_checksumSHA1;
512 bool m_checksumSHA1HasBeenSet = false;
513
514 Aws::String m_checksumSHA256;
515 bool m_checksumSHA256HasBeenSet = false;
516
517 ChecksumType m_checksumType{ChecksumType::NOT_SET};
518 bool m_checksumTypeHasBeenSet = false;
519
520 long long m_mpuObjectSize{0};
521 bool m_mpuObjectSizeHasBeenSet = false;
522
523 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
524 bool m_requestPayerHasBeenSet = false;
525
526 Aws::String m_expectedBucketOwner;
527 bool m_expectedBucketOwnerHasBeenSet = false;
528
529 Aws::String m_ifMatch;
530 bool m_ifMatchHasBeenSet = false;
531
532 Aws::String m_ifNoneMatch;
533 bool m_ifNoneMatchHasBeenSet = false;
534
535 Aws::String m_sSECustomerAlgorithm;
536 bool m_sSECustomerAlgorithmHasBeenSet = false;
537
538 Aws::String m_sSECustomerKey;
539 bool m_sSECustomerKeyHasBeenSet = false;
540
541 Aws::String m_sSECustomerKeyMD5;
542 bool m_sSECustomerKeyMD5HasBeenSet = false;
543
544 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
545 bool m_customizedAccessLogTagHasBeenSet = false;
546};
547
548} // namespace Model
549} // namespace S3
550} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_S3_API Aws::String SerializePayload() const override
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
CompleteMultipartUploadRequest & WithKey(KeyT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
CompleteMultipartUploadRequest & WithChecksumCRC32C(ChecksumCRC32CT &&value)
CompleteMultipartUploadRequest & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
CompleteMultipartUploadRequest & WithIfNoneMatch(IfNoneMatchT &&value)
CompleteMultipartUploadRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
CompleteMultipartUploadRequest & WithChecksumCRC32(ChecksumCRC32T &&value)
CompleteMultipartUploadRequest & WithBucket(BucketT &&value)
CompleteMultipartUploadRequest & WithIfMatch(IfMatchT &&value)
CompleteMultipartUploadRequest & WithChecksumType(ChecksumType value)
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
const CompletedMultipartUpload & GetMultipartUpload() const
CompleteMultipartUploadRequest & WithRequestPayer(RequestPayer value)
CompleteMultipartUploadRequest & WithMultipartUpload(MultipartUploadT &&value)
CompleteMultipartUploadRequest & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
CompleteMultipartUploadRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
CompleteMultipartUploadRequest & WithChecksumSHA256(ChecksumSHA256T &&value)
CompleteMultipartUploadRequest & WithSSECustomerKey(SSECustomerKeyT &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CompleteMultipartUploadRequest & WithChecksumSHA1(ChecksumSHA1T &&value)
CompleteMultipartUploadRequest & WithMpuObjectSize(long long value)
CompleteMultipartUploadRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CompleteMultipartUploadRequest & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
CompleteMultipartUploadRequest & WithUploadId(UploadIdT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Definition S3Request.h:19
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String