AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CompleteMultipartUploadRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/CompletedMultipartUpload.h>
11#include <aws/s3/model/ChecksumType.h>
12#include <aws/s3/model/RequestPayer.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace S3
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_S3_API CompleteMultipartUploadRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CompleteMultipartUpload"; }
39
40 AWS_S3_API Aws::String SerializePayload() const override;
41
42 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
45
46 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
50 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
51
53
88 inline const Aws::String& GetBucket() const { return m_bucket; }
89 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
90 template<typename BucketT = Aws::String>
91 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
92 template<typename BucketT = Aws::String>
93 CompleteMultipartUploadRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
95
97
100 inline const Aws::String& GetKey() const { return m_key; }
101 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
102 template<typename KeyT = Aws::String>
103 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
104 template<typename KeyT = Aws::String>
105 CompleteMultipartUploadRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
107
109
112 inline const CompletedMultipartUpload& GetMultipartUpload() const { return m_multipartUpload; }
113 inline bool MultipartUploadHasBeenSet() const { return m_multipartUploadHasBeenSet; }
114 template<typename MultipartUploadT = CompletedMultipartUpload>
115 void SetMultipartUpload(MultipartUploadT&& value) { m_multipartUploadHasBeenSet = true; m_multipartUpload = std::forward<MultipartUploadT>(value); }
116 template<typename MultipartUploadT = CompletedMultipartUpload>
117 CompleteMultipartUploadRequest& WithMultipartUpload(MultipartUploadT&& value) { SetMultipartUpload(std::forward<MultipartUploadT>(value)); return *this;}
119
121
124 inline const Aws::String& GetUploadId() const { return m_uploadId; }
125 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
126 template<typename UploadIdT = Aws::String>
127 void SetUploadId(UploadIdT&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::forward<UploadIdT>(value); }
128 template<typename UploadIdT = Aws::String>
129 CompleteMultipartUploadRequest& WithUploadId(UploadIdT&& value) { SetUploadId(std::forward<UploadIdT>(value)); return *this;}
131
133
141 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
142 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
143 template<typename ChecksumCRC32T = Aws::String>
144 void SetChecksumCRC32(ChecksumCRC32T&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::forward<ChecksumCRC32T>(value); }
145 template<typename ChecksumCRC32T = Aws::String>
146 CompleteMultipartUploadRequest& WithChecksumCRC32(ChecksumCRC32T&& value) { SetChecksumCRC32(std::forward<ChecksumCRC32T>(value)); return *this;}
148
150
158 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
159 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
160 template<typename ChecksumCRC32CT = Aws::String>
161 void SetChecksumCRC32C(ChecksumCRC32CT&& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value); }
162 template<typename ChecksumCRC32CT = Aws::String>
163 CompleteMultipartUploadRequest& WithChecksumCRC32C(ChecksumCRC32CT&& value) { SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value)); return *this;}
165
167
176 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
177 inline bool ChecksumCRC64NVMEHasBeenSet() const { return m_checksumCRC64NVMEHasBeenSet; }
178 template<typename ChecksumCRC64NVMET = Aws::String>
179 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) { m_checksumCRC64NVMEHasBeenSet = true; m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value); }
180 template<typename ChecksumCRC64NVMET = Aws::String>
181 CompleteMultipartUploadRequest& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) { SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value)); return *this;}
183
185
193 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
194 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
195 template<typename ChecksumSHA1T = Aws::String>
196 void SetChecksumSHA1(ChecksumSHA1T&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::forward<ChecksumSHA1T>(value); }
197 template<typename ChecksumSHA1T = Aws::String>
198 CompleteMultipartUploadRequest& WithChecksumSHA1(ChecksumSHA1T&& value) { SetChecksumSHA1(std::forward<ChecksumSHA1T>(value)); return *this;}
200
202
210 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
211 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
212 template<typename ChecksumSHA256T = Aws::String>
213 void SetChecksumSHA256(ChecksumSHA256T&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::forward<ChecksumSHA256T>(value); }
214 template<typename ChecksumSHA256T = Aws::String>
215 CompleteMultipartUploadRequest& WithChecksumSHA256(ChecksumSHA256T&& value) { SetChecksumSHA256(std::forward<ChecksumSHA256T>(value)); return *this;}
217
219
229 inline ChecksumType GetChecksumType() const { return m_checksumType; }
230 inline bool ChecksumTypeHasBeenSet() const { return m_checksumTypeHasBeenSet; }
231 inline void SetChecksumType(ChecksumType value) { m_checksumTypeHasBeenSet = true; m_checksumType = value; }
234
236
241 inline long long GetMpuObjectSize() const { return m_mpuObjectSize; }
242 inline bool MpuObjectSizeHasBeenSet() const { return m_mpuObjectSizeHasBeenSet; }
243 inline void SetMpuObjectSize(long long value) { m_mpuObjectSizeHasBeenSet = true; m_mpuObjectSize = value; }
244 inline CompleteMultipartUploadRequest& WithMpuObjectSize(long long value) { SetMpuObjectSize(value); return *this;}
246
248
249 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
250 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
251 inline void SetRequestPayer(RequestPayer value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
254
256
261 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
262 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
263 template<typename ExpectedBucketOwnerT = Aws::String>
264 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
265 template<typename ExpectedBucketOwnerT = Aws::String>
266 CompleteMultipartUploadRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
268
270
283 inline const Aws::String& GetIfMatch() const { return m_ifMatch; }
284 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
285 template<typename IfMatchT = Aws::String>
286 void SetIfMatch(IfMatchT&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::forward<IfMatchT>(value); }
287 template<typename IfMatchT = Aws::String>
288 CompleteMultipartUploadRequest& WithIfMatch(IfMatchT&& value) { SetIfMatch(std::forward<IfMatchT>(value)); return *this;}
290
292
304 inline const Aws::String& GetIfNoneMatch() const { return m_ifNoneMatch; }
305 inline bool IfNoneMatchHasBeenSet() const { return m_ifNoneMatchHasBeenSet; }
306 template<typename IfNoneMatchT = Aws::String>
307 void SetIfNoneMatch(IfNoneMatchT&& value) { m_ifNoneMatchHasBeenSet = true; m_ifNoneMatch = std::forward<IfNoneMatchT>(value); }
308 template<typename IfNoneMatchT = Aws::String>
309 CompleteMultipartUploadRequest& WithIfNoneMatch(IfNoneMatchT&& value) { SetIfNoneMatch(std::forward<IfNoneMatchT>(value)); return *this;}
311
313
322 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
323 inline bool SSECustomerAlgorithmHasBeenSet() const { return m_sSECustomerAlgorithmHasBeenSet; }
324 template<typename SSECustomerAlgorithmT = Aws::String>
325 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value); }
326 template<typename SSECustomerAlgorithmT = Aws::String>
327 CompleteMultipartUploadRequest& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value)); return *this;}
329
331
339 inline const Aws::String& GetSSECustomerKey() const { return m_sSECustomerKey; }
340 inline bool SSECustomerKeyHasBeenSet() const { return m_sSECustomerKeyHasBeenSet; }
341 template<typename SSECustomerKeyT = Aws::String>
342 void SetSSECustomerKey(SSECustomerKeyT&& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = std::forward<SSECustomerKeyT>(value); }
343 template<typename SSECustomerKeyT = Aws::String>
344 CompleteMultipartUploadRequest& WithSSECustomerKey(SSECustomerKeyT&& value) { SetSSECustomerKey(std::forward<SSECustomerKeyT>(value)); return *this;}
346
348
356 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
357 inline bool SSECustomerKeyMD5HasBeenSet() const { return m_sSECustomerKeyMD5HasBeenSet; }
358 template<typename SSECustomerKeyMD5T = Aws::String>
359 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value); }
360 template<typename SSECustomerKeyMD5T = Aws::String>
361 CompleteMultipartUploadRequest& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value)); return *this;}
363
365
366 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
367 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
368 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
369 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
370 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
371 CompleteMultipartUploadRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
372 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
373 CompleteMultipartUploadRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
374 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
375 }
377 private:
378
379 Aws::String m_bucket;
380 bool m_bucketHasBeenSet = false;
381
382 Aws::String m_key;
383 bool m_keyHasBeenSet = false;
384
385 CompletedMultipartUpload m_multipartUpload;
386 bool m_multipartUploadHasBeenSet = false;
387
388 Aws::String m_uploadId;
389 bool m_uploadIdHasBeenSet = false;
390
391 Aws::String m_checksumCRC32;
392 bool m_checksumCRC32HasBeenSet = false;
393
394 Aws::String m_checksumCRC32C;
395 bool m_checksumCRC32CHasBeenSet = false;
396
397 Aws::String m_checksumCRC64NVME;
398 bool m_checksumCRC64NVMEHasBeenSet = false;
399
400 Aws::String m_checksumSHA1;
401 bool m_checksumSHA1HasBeenSet = false;
402
403 Aws::String m_checksumSHA256;
404 bool m_checksumSHA256HasBeenSet = false;
405
406 ChecksumType m_checksumType{ChecksumType::NOT_SET};
407 bool m_checksumTypeHasBeenSet = false;
408
409 long long m_mpuObjectSize{0};
410 bool m_mpuObjectSizeHasBeenSet = false;
411
412 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
413 bool m_requestPayerHasBeenSet = false;
414
415 Aws::String m_expectedBucketOwner;
416 bool m_expectedBucketOwnerHasBeenSet = false;
417
418 Aws::String m_ifMatch;
419 bool m_ifMatchHasBeenSet = false;
420
421 Aws::String m_ifNoneMatch;
422 bool m_ifNoneMatchHasBeenSet = false;
423
424 Aws::String m_sSECustomerAlgorithm;
425 bool m_sSECustomerAlgorithmHasBeenSet = false;
426
427 Aws::String m_sSECustomerKey;
428 bool m_sSECustomerKeyHasBeenSet = false;
429
430 Aws::String m_sSECustomerKeyMD5;
431 bool m_sSECustomerKeyMD5HasBeenSet = false;
432
433 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
434 bool m_customizedAccessLogTagHasBeenSet = false;
435 };
436
437} // namespace Model
438} // namespace S3
439} // 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:22
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