AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CompleteMultipartUploadRequest.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/S3CrtRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3-crt/model/CompletedMultipartUpload.h>
11#include <aws/s3-crt/model/RequestPayer.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace S3Crt
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CompleteMultipartUpload"; }
38
39 AWS_S3CRT_API Aws::String SerializePayload() const override;
40
41 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
45 AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
49 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
50
52
85 inline const Aws::String& GetBucket() const{ return m_bucket; }
86 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
87 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
88 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
89 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
90 inline CompleteMultipartUploadRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
91 inline CompleteMultipartUploadRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
92 inline CompleteMultipartUploadRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
94
96
99 inline const Aws::String& GetKey() const{ return m_key; }
100 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
101 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
102 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
103 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
104 inline CompleteMultipartUploadRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
105 inline CompleteMultipartUploadRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
106 inline CompleteMultipartUploadRequest& WithKey(const char* value) { SetKey(value); return *this;}
108
110
113 inline const CompletedMultipartUpload& GetMultipartUpload() const{ return m_multipartUpload; }
114 inline bool MultipartUploadHasBeenSet() const { return m_multipartUploadHasBeenSet; }
115 inline void SetMultipartUpload(const CompletedMultipartUpload& value) { m_multipartUploadHasBeenSet = true; m_multipartUpload = value; }
116 inline void SetMultipartUpload(CompletedMultipartUpload&& value) { m_multipartUploadHasBeenSet = true; m_multipartUpload = std::move(value); }
120
122
125 inline const Aws::String& GetUploadId() const{ return m_uploadId; }
126 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
127 inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
128 inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
129 inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
130 inline CompleteMultipartUploadRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
131 inline CompleteMultipartUploadRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
132 inline CompleteMultipartUploadRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
134
136
144 inline const Aws::String& GetChecksumCRC32() const{ return m_checksumCRC32; }
145 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
146 inline void SetChecksumCRC32(const Aws::String& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = value; }
147 inline void SetChecksumCRC32(Aws::String&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::move(value); }
148 inline void SetChecksumCRC32(const char* value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32.assign(value); }
150 inline CompleteMultipartUploadRequest& WithChecksumCRC32(Aws::String&& value) { SetChecksumCRC32(std::move(value)); return *this;}
151 inline CompleteMultipartUploadRequest& WithChecksumCRC32(const char* value) { SetChecksumCRC32(value); return *this;}
153
155
163 inline const Aws::String& GetChecksumCRC32C() const{ return m_checksumCRC32C; }
164 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
165 inline void SetChecksumCRC32C(const Aws::String& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = value; }
166 inline void SetChecksumCRC32C(Aws::String&& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::move(value); }
167 inline void SetChecksumCRC32C(const char* value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C.assign(value); }
169 inline CompleteMultipartUploadRequest& WithChecksumCRC32C(Aws::String&& value) { SetChecksumCRC32C(std::move(value)); return *this;}
170 inline CompleteMultipartUploadRequest& WithChecksumCRC32C(const char* value) { SetChecksumCRC32C(value); return *this;}
172
174
181 inline const Aws::String& GetChecksumSHA1() const{ return m_checksumSHA1; }
182 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
183 inline void SetChecksumSHA1(const Aws::String& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = value; }
184 inline void SetChecksumSHA1(Aws::String&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::move(value); }
185 inline void SetChecksumSHA1(const char* value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1.assign(value); }
186 inline CompleteMultipartUploadRequest& WithChecksumSHA1(const Aws::String& value) { SetChecksumSHA1(value); return *this;}
187 inline CompleteMultipartUploadRequest& WithChecksumSHA1(Aws::String&& value) { SetChecksumSHA1(std::move(value)); return *this;}
188 inline CompleteMultipartUploadRequest& WithChecksumSHA1(const char* value) { SetChecksumSHA1(value); return *this;}
190
192
200 inline const Aws::String& GetChecksumSHA256() const{ return m_checksumSHA256; }
201 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
202 inline void SetChecksumSHA256(const Aws::String& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = value; }
203 inline void SetChecksumSHA256(Aws::String&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::move(value); }
204 inline void SetChecksumSHA256(const char* value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256.assign(value); }
206 inline CompleteMultipartUploadRequest& WithChecksumSHA256(Aws::String&& value) { SetChecksumSHA256(std::move(value)); return *this;}
207 inline CompleteMultipartUploadRequest& WithChecksumSHA256(const char* value) { SetChecksumSHA256(value); return *this;}
209
211
212 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
213 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
214 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
215 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
217 inline CompleteMultipartUploadRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
219
221
226 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
227 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
228 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
229 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
230 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
233 inline CompleteMultipartUploadRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
235
237
249 inline const Aws::String& GetIfNoneMatch() const{ return m_ifNoneMatch; }
250 inline bool IfNoneMatchHasBeenSet() const { return m_ifNoneMatchHasBeenSet; }
251 inline void SetIfNoneMatch(const Aws::String& value) { m_ifNoneMatchHasBeenSet = true; m_ifNoneMatch = value; }
252 inline void SetIfNoneMatch(Aws::String&& value) { m_ifNoneMatchHasBeenSet = true; m_ifNoneMatch = std::move(value); }
253 inline void SetIfNoneMatch(const char* value) { m_ifNoneMatchHasBeenSet = true; m_ifNoneMatch.assign(value); }
254 inline CompleteMultipartUploadRequest& WithIfNoneMatch(const Aws::String& value) { SetIfNoneMatch(value); return *this;}
255 inline CompleteMultipartUploadRequest& WithIfNoneMatch(Aws::String&& value) { SetIfNoneMatch(std::move(value)); return *this;}
256 inline CompleteMultipartUploadRequest& WithIfNoneMatch(const char* value) { SetIfNoneMatch(value); return *this;}
258
260
269 inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
270 inline bool SSECustomerAlgorithmHasBeenSet() const { return m_sSECustomerAlgorithmHasBeenSet; }
271 inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = value; }
272 inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::move(value); }
273 inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm.assign(value); }
276 inline CompleteMultipartUploadRequest& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
278
280
288 inline const Aws::String& GetSSECustomerKey() const{ return m_sSECustomerKey; }
289 inline bool SSECustomerKeyHasBeenSet() const { return m_sSECustomerKeyHasBeenSet; }
290 inline void SetSSECustomerKey(const Aws::String& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = value; }
291 inline void SetSSECustomerKey(Aws::String&& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = std::move(value); }
292 inline void SetSSECustomerKey(const char* value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey.assign(value); }
294 inline CompleteMultipartUploadRequest& WithSSECustomerKey(Aws::String&& value) { SetSSECustomerKey(std::move(value)); return *this;}
295 inline CompleteMultipartUploadRequest& WithSSECustomerKey(const char* value) { SetSSECustomerKey(value); return *this;}
297
299
307 inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
308 inline bool SSECustomerKeyMD5HasBeenSet() const { return m_sSECustomerKeyMD5HasBeenSet; }
309 inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = value; }
310 inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::move(value); }
311 inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5.assign(value); }
314 inline CompleteMultipartUploadRequest& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
316
318
319 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
320 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
321 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
322 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
325 inline CompleteMultipartUploadRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
326 inline CompleteMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
327 inline CompleteMultipartUploadRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
328 inline CompleteMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
329 inline CompleteMultipartUploadRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
330 inline CompleteMultipartUploadRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
331 inline CompleteMultipartUploadRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
333 private:
334
335 Aws::String m_bucket;
336 bool m_bucketHasBeenSet = false;
337
338 Aws::String m_key;
339 bool m_keyHasBeenSet = false;
340
341 CompletedMultipartUpload m_multipartUpload;
342 bool m_multipartUploadHasBeenSet = false;
343
344 Aws::String m_uploadId;
345 bool m_uploadIdHasBeenSet = false;
346
347 Aws::String m_checksumCRC32;
348 bool m_checksumCRC32HasBeenSet = false;
349
350 Aws::String m_checksumCRC32C;
351 bool m_checksumCRC32CHasBeenSet = false;
352
353 Aws::String m_checksumSHA1;
354 bool m_checksumSHA1HasBeenSet = false;
355
356 Aws::String m_checksumSHA256;
357 bool m_checksumSHA256HasBeenSet = false;
358
359 RequestPayer m_requestPayer;
360 bool m_requestPayerHasBeenSet = false;
361
362 Aws::String m_expectedBucketOwner;
363 bool m_expectedBucketOwnerHasBeenSet = false;
364
365 Aws::String m_ifNoneMatch;
366 bool m_ifNoneMatchHasBeenSet = false;
367
368 Aws::String m_sSECustomerAlgorithm;
369 bool m_sSECustomerAlgorithmHasBeenSet = false;
370
371 Aws::String m_sSECustomerKey;
372 bool m_sSECustomerKeyHasBeenSet = false;
373
374 Aws::String m_sSECustomerKeyMD5;
375 bool m_sSECustomerKeyMD5HasBeenSet = false;
376
377 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
378 bool m_customizedAccessLogTagHasBeenSet = false;
379 };
380
381} // namespace Model
382} // namespace S3Crt
383} // namespace Aws
CompleteMultipartUploadRequest & WithChecksumCRC32(const char *value)
CompleteMultipartUploadRequest & WithKey(Aws::String &&value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
CompleteMultipartUploadRequest & WithKey(const char *value)
CompleteMultipartUploadRequest & WithExpectedBucketOwner(const Aws::String &value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
CompleteMultipartUploadRequest & WithRequestPayer(RequestPayer &&value)
CompleteMultipartUploadRequest & WithSSECustomerKey(const Aws::String &value)
CompleteMultipartUploadRequest & WithChecksumSHA256(const char *value)
CompleteMultipartUploadRequest & WithChecksumCRC32C(const char *value)
CompleteMultipartUploadRequest & WithChecksumSHA256(Aws::String &&value)
CompleteMultipartUploadRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
const CompletedMultipartUpload & GetMultipartUpload() const
CompleteMultipartUploadRequest & WithSSECustomerKeyMD5(Aws::String &&value)
CompleteMultipartUploadRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
CompleteMultipartUploadRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
CompleteMultipartUploadRequest & WithIfNoneMatch(const Aws::String &value)
CompleteMultipartUploadRequest & WithSSECustomerKey(const char *value)
CompleteMultipartUploadRequest & WithSSECustomerKey(Aws::String &&value)
CompleteMultipartUploadRequest & WithChecksumCRC32C(Aws::String &&value)
CompleteMultipartUploadRequest & WithUploadId(const char *value)
CompleteMultipartUploadRequest & WithUploadId(const Aws::String &value)
CompleteMultipartUploadRequest & WithIfNoneMatch(const char *value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
CompleteMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
CompleteMultipartUploadRequest & WithSSECustomerAlgorithm(const Aws::String &value)
CompleteMultipartUploadRequest & WithBucket(const char *value)
CompleteMultipartUploadRequest & WithMultipartUpload(CompletedMultipartUpload &&value)
CompleteMultipartUploadRequest & WithRequestPayer(const RequestPayer &value)
CompleteMultipartUploadRequest & WithSSECustomerKeyMD5(const Aws::String &value)
CompleteMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
CompleteMultipartUploadRequest & WithSSECustomerKeyMD5(const char *value)
CompleteMultipartUploadRequest & WithBucket(const Aws::String &value)
CompleteMultipartUploadRequest & WithBucket(Aws::String &&value)
CompleteMultipartUploadRequest & WithChecksumSHA1(Aws::String &&value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
CompleteMultipartUploadRequest & WithExpectedBucketOwner(const char *value)
CompleteMultipartUploadRequest & WithChecksumCRC32C(const Aws::String &value)
CompleteMultipartUploadRequest & WithChecksumSHA256(const Aws::String &value)
CompleteMultipartUploadRequest & WithChecksumSHA1(const Aws::String &value)
CompleteMultipartUploadRequest & WithMultipartUpload(const CompletedMultipartUpload &value)
void SetMultipartUpload(const CompletedMultipartUpload &value)
CompleteMultipartUploadRequest & WithChecksumCRC32(const Aws::String &value)
CompleteMultipartUploadRequest & WithChecksumSHA1(const char *value)
CompleteMultipartUploadRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
CompleteMultipartUploadRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3CRT_API Aws::String SerializePayload() const override
CompleteMultipartUploadRequest & WithIfNoneMatch(Aws::String &&value)
CompleteMultipartUploadRequest & WithUploadId(Aws::String &&value)
CompleteMultipartUploadRequest & WithSSECustomerAlgorithm(Aws::String &&value)
CompleteMultipartUploadRequest & WithKey(const Aws::String &value)
CompleteMultipartUploadRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
CompleteMultipartUploadRequest & WithExpectedBucketOwner(Aws::String &&value)
CompleteMultipartUploadRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
CompleteMultipartUploadRequest & WithChecksumCRC32(Aws::String &&value)
CompleteMultipartUploadRequest & WithSSECustomerAlgorithm(const char *value)
Aws::Endpoint::EndpointParameters EndpointParameters
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