AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UploadPartCopyRequest.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/core/utils/DateTime.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:
31 AWS_S3CRT_API UploadPartCopyRequest() = default;
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 "UploadPartCopy"; }
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
92 inline const Aws::String& GetBucket() const { return m_bucket; }
93 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
94 template<typename BucketT = Aws::String>
95 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
96 template<typename BucketT = Aws::String>
97 UploadPartCopyRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
99
101
146 inline const Aws::String& GetCopySource() const { return m_copySource; }
147 inline bool CopySourceHasBeenSet() const { return m_copySourceHasBeenSet; }
148 template<typename CopySourceT = Aws::String>
149 void SetCopySource(CopySourceT&& value) { m_copySourceHasBeenSet = true; m_copySource = std::forward<CopySourceT>(value); }
150 template<typename CopySourceT = Aws::String>
151 UploadPartCopyRequest& WithCopySource(CopySourceT&& value) { SetCopySource(std::forward<CopySourceT>(value)); return *this;}
153
155
165 inline const Aws::String& GetCopySourceIfMatch() const { return m_copySourceIfMatch; }
166 inline bool CopySourceIfMatchHasBeenSet() const { return m_copySourceIfMatchHasBeenSet; }
167 template<typename CopySourceIfMatchT = Aws::String>
168 void SetCopySourceIfMatch(CopySourceIfMatchT&& value) { m_copySourceIfMatchHasBeenSet = true; m_copySourceIfMatch = std::forward<CopySourceIfMatchT>(value); }
169 template<typename CopySourceIfMatchT = Aws::String>
170 UploadPartCopyRequest& WithCopySourceIfMatch(CopySourceIfMatchT&& value) { SetCopySourceIfMatch(std::forward<CopySourceIfMatchT>(value)); return *this;}
172
174
184 inline const Aws::Utils::DateTime& GetCopySourceIfModifiedSince() const { return m_copySourceIfModifiedSince; }
185 inline bool CopySourceIfModifiedSinceHasBeenSet() const { return m_copySourceIfModifiedSinceHasBeenSet; }
186 template<typename CopySourceIfModifiedSinceT = Aws::Utils::DateTime>
187 void SetCopySourceIfModifiedSince(CopySourceIfModifiedSinceT&& value) { m_copySourceIfModifiedSinceHasBeenSet = true; m_copySourceIfModifiedSince = std::forward<CopySourceIfModifiedSinceT>(value); }
188 template<typename CopySourceIfModifiedSinceT = Aws::Utils::DateTime>
189 UploadPartCopyRequest& WithCopySourceIfModifiedSince(CopySourceIfModifiedSinceT&& value) { SetCopySourceIfModifiedSince(std::forward<CopySourceIfModifiedSinceT>(value)); return *this;}
191
193
203 inline const Aws::String& GetCopySourceIfNoneMatch() const { return m_copySourceIfNoneMatch; }
204 inline bool CopySourceIfNoneMatchHasBeenSet() const { return m_copySourceIfNoneMatchHasBeenSet; }
205 template<typename CopySourceIfNoneMatchT = Aws::String>
206 void SetCopySourceIfNoneMatch(CopySourceIfNoneMatchT&& value) { m_copySourceIfNoneMatchHasBeenSet = true; m_copySourceIfNoneMatch = std::forward<CopySourceIfNoneMatchT>(value); }
207 template<typename CopySourceIfNoneMatchT = Aws::String>
208 UploadPartCopyRequest& WithCopySourceIfNoneMatch(CopySourceIfNoneMatchT&& value) { SetCopySourceIfNoneMatch(std::forward<CopySourceIfNoneMatchT>(value)); return *this;}
210
212
222 inline const Aws::Utils::DateTime& GetCopySourceIfUnmodifiedSince() const { return m_copySourceIfUnmodifiedSince; }
223 inline bool CopySourceIfUnmodifiedSinceHasBeenSet() const { return m_copySourceIfUnmodifiedSinceHasBeenSet; }
224 template<typename CopySourceIfUnmodifiedSinceT = Aws::Utils::DateTime>
225 void SetCopySourceIfUnmodifiedSince(CopySourceIfUnmodifiedSinceT&& value) { m_copySourceIfUnmodifiedSinceHasBeenSet = true; m_copySourceIfUnmodifiedSince = std::forward<CopySourceIfUnmodifiedSinceT>(value); }
226 template<typename CopySourceIfUnmodifiedSinceT = Aws::Utils::DateTime>
227 UploadPartCopyRequest& WithCopySourceIfUnmodifiedSince(CopySourceIfUnmodifiedSinceT&& value) { SetCopySourceIfUnmodifiedSince(std::forward<CopySourceIfUnmodifiedSinceT>(value)); return *this;}
229
231
238 inline const Aws::String& GetCopySourceRange() const { return m_copySourceRange; }
239 inline bool CopySourceRangeHasBeenSet() const { return m_copySourceRangeHasBeenSet; }
240 template<typename CopySourceRangeT = Aws::String>
241 void SetCopySourceRange(CopySourceRangeT&& value) { m_copySourceRangeHasBeenSet = true; m_copySourceRange = std::forward<CopySourceRangeT>(value); }
242 template<typename CopySourceRangeT = Aws::String>
243 UploadPartCopyRequest& WithCopySourceRange(CopySourceRangeT&& value) { SetCopySourceRange(std::forward<CopySourceRangeT>(value)); return *this;}
245
247
250 inline const Aws::String& GetKey() const { return m_key; }
251 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
252 template<typename KeyT = Aws::String>
253 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
254 template<typename KeyT = Aws::String>
255 UploadPartCopyRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
257
259
263 inline int GetPartNumber() const { return m_partNumber; }
264 inline bool PartNumberHasBeenSet() const { return m_partNumberHasBeenSet; }
265 inline void SetPartNumber(int value) { m_partNumberHasBeenSet = true; m_partNumber = value; }
266 inline UploadPartCopyRequest& WithPartNumber(int value) { SetPartNumber(value); return *this;}
268
270
273 inline const Aws::String& GetUploadId() const { return m_uploadId; }
274 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
275 template<typename UploadIdT = Aws::String>
276 void SetUploadId(UploadIdT&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::forward<UploadIdT>(value); }
277 template<typename UploadIdT = Aws::String>
278 UploadPartCopyRequest& WithUploadId(UploadIdT&& value) { SetUploadId(std::forward<UploadIdT>(value)); return *this;}
280
282
287 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
288 inline bool SSECustomerAlgorithmHasBeenSet() const { return m_sSECustomerAlgorithmHasBeenSet; }
289 template<typename SSECustomerAlgorithmT = Aws::String>
290 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value); }
291 template<typename SSECustomerAlgorithmT = Aws::String>
292 UploadPartCopyRequest& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value)); return *this;}
294
296
306 inline const Aws::String& GetSSECustomerKey() const { return m_sSECustomerKey; }
307 inline bool SSECustomerKeyHasBeenSet() const { return m_sSECustomerKeyHasBeenSet; }
308 template<typename SSECustomerKeyT = Aws::String>
309 void SetSSECustomerKey(SSECustomerKeyT&& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = std::forward<SSECustomerKeyT>(value); }
310 template<typename SSECustomerKeyT = Aws::String>
311 UploadPartCopyRequest& WithSSECustomerKey(SSECustomerKeyT&& value) { SetSSECustomerKey(std::forward<SSECustomerKeyT>(value)); return *this;}
313
315
321 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
322 inline bool SSECustomerKeyMD5HasBeenSet() const { return m_sSECustomerKeyMD5HasBeenSet; }
323 template<typename SSECustomerKeyMD5T = Aws::String>
324 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value); }
325 template<typename SSECustomerKeyMD5T = Aws::String>
326 UploadPartCopyRequest& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value)); return *this;}
328
330
335 inline const Aws::String& GetCopySourceSSECustomerAlgorithm() const { return m_copySourceSSECustomerAlgorithm; }
336 inline bool CopySourceSSECustomerAlgorithmHasBeenSet() const { return m_copySourceSSECustomerAlgorithmHasBeenSet; }
337 template<typename CopySourceSSECustomerAlgorithmT = Aws::String>
338 void SetCopySourceSSECustomerAlgorithm(CopySourceSSECustomerAlgorithmT&& value) { m_copySourceSSECustomerAlgorithmHasBeenSet = true; m_copySourceSSECustomerAlgorithm = std::forward<CopySourceSSECustomerAlgorithmT>(value); }
339 template<typename CopySourceSSECustomerAlgorithmT = Aws::String>
340 UploadPartCopyRequest& WithCopySourceSSECustomerAlgorithm(CopySourceSSECustomerAlgorithmT&& value) { SetCopySourceSSECustomerAlgorithm(std::forward<CopySourceSSECustomerAlgorithmT>(value)); return *this;}
342
344
351 inline const Aws::String& GetCopySourceSSECustomerKey() const { return m_copySourceSSECustomerKey; }
352 inline bool CopySourceSSECustomerKeyHasBeenSet() const { return m_copySourceSSECustomerKeyHasBeenSet; }
353 template<typename CopySourceSSECustomerKeyT = Aws::String>
354 void SetCopySourceSSECustomerKey(CopySourceSSECustomerKeyT&& value) { m_copySourceSSECustomerKeyHasBeenSet = true; m_copySourceSSECustomerKey = std::forward<CopySourceSSECustomerKeyT>(value); }
355 template<typename CopySourceSSECustomerKeyT = Aws::String>
356 UploadPartCopyRequest& WithCopySourceSSECustomerKey(CopySourceSSECustomerKeyT&& value) { SetCopySourceSSECustomerKey(std::forward<CopySourceSSECustomerKeyT>(value)); return *this;}
358
360
366 inline const Aws::String& GetCopySourceSSECustomerKeyMD5() const { return m_copySourceSSECustomerKeyMD5; }
367 inline bool CopySourceSSECustomerKeyMD5HasBeenSet() const { return m_copySourceSSECustomerKeyMD5HasBeenSet; }
368 template<typename CopySourceSSECustomerKeyMD5T = Aws::String>
369 void SetCopySourceSSECustomerKeyMD5(CopySourceSSECustomerKeyMD5T&& value) { m_copySourceSSECustomerKeyMD5HasBeenSet = true; m_copySourceSSECustomerKeyMD5 = std::forward<CopySourceSSECustomerKeyMD5T>(value); }
370 template<typename CopySourceSSECustomerKeyMD5T = Aws::String>
371 UploadPartCopyRequest& WithCopySourceSSECustomerKeyMD5(CopySourceSSECustomerKeyMD5T&& value) { SetCopySourceSSECustomerKeyMD5(std::forward<CopySourceSSECustomerKeyMD5T>(value)); return *this;}
373
375
376 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
377 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
378 inline void SetRequestPayer(RequestPayer value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
381
383
389 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
390 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
391 template<typename ExpectedBucketOwnerT = Aws::String>
392 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
393 template<typename ExpectedBucketOwnerT = Aws::String>
394 UploadPartCopyRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
396
398
403 inline const Aws::String& GetExpectedSourceBucketOwner() const { return m_expectedSourceBucketOwner; }
404 inline bool ExpectedSourceBucketOwnerHasBeenSet() const { return m_expectedSourceBucketOwnerHasBeenSet; }
405 template<typename ExpectedSourceBucketOwnerT = Aws::String>
406 void SetExpectedSourceBucketOwner(ExpectedSourceBucketOwnerT&& value) { m_expectedSourceBucketOwnerHasBeenSet = true; m_expectedSourceBucketOwner = std::forward<ExpectedSourceBucketOwnerT>(value); }
407 template<typename ExpectedSourceBucketOwnerT = Aws::String>
408 UploadPartCopyRequest& WithExpectedSourceBucketOwner(ExpectedSourceBucketOwnerT&& value) { SetExpectedSourceBucketOwner(std::forward<ExpectedSourceBucketOwnerT>(value)); return *this;}
410
412
413 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
414 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
415 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
416 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
417 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
418 UploadPartCopyRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
419 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
420 UploadPartCopyRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
421 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
422 }
424 private:
425
426 Aws::String m_bucket;
427 bool m_bucketHasBeenSet = false;
428
429 Aws::String m_copySource;
430 bool m_copySourceHasBeenSet = false;
431
432 Aws::String m_copySourceIfMatch;
433 bool m_copySourceIfMatchHasBeenSet = false;
434
435 Aws::Utils::DateTime m_copySourceIfModifiedSince{};
436 bool m_copySourceIfModifiedSinceHasBeenSet = false;
437
438 Aws::String m_copySourceIfNoneMatch;
439 bool m_copySourceIfNoneMatchHasBeenSet = false;
440
441 Aws::Utils::DateTime m_copySourceIfUnmodifiedSince{};
442 bool m_copySourceIfUnmodifiedSinceHasBeenSet = false;
443
444 Aws::String m_copySourceRange;
445 bool m_copySourceRangeHasBeenSet = false;
446
447 Aws::String m_key;
448 bool m_keyHasBeenSet = false;
449
450 int m_partNumber{0};
451 bool m_partNumberHasBeenSet = false;
452
453 Aws::String m_uploadId;
454 bool m_uploadIdHasBeenSet = false;
455
456 Aws::String m_sSECustomerAlgorithm;
457 bool m_sSECustomerAlgorithmHasBeenSet = false;
458
459 Aws::String m_sSECustomerKey;
460 bool m_sSECustomerKeyHasBeenSet = false;
461
462 Aws::String m_sSECustomerKeyMD5;
463 bool m_sSECustomerKeyMD5HasBeenSet = false;
464
465 Aws::String m_copySourceSSECustomerAlgorithm;
466 bool m_copySourceSSECustomerAlgorithmHasBeenSet = false;
467
468 Aws::String m_copySourceSSECustomerKey;
469 bool m_copySourceSSECustomerKeyHasBeenSet = false;
470
471 Aws::String m_copySourceSSECustomerKeyMD5;
472 bool m_copySourceSSECustomerKeyMD5HasBeenSet = false;
473
474 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
475 bool m_requestPayerHasBeenSet = false;
476
477 Aws::String m_expectedBucketOwner;
478 bool m_expectedBucketOwnerHasBeenSet = false;
479
480 Aws::String m_expectedSourceBucketOwner;
481 bool m_expectedSourceBucketOwnerHasBeenSet = false;
482
483 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
484 bool m_customizedAccessLogTagHasBeenSet = false;
485 };
486
487} // namespace Model
488} // namespace S3Crt
489} // namespace Aws
UploadPartCopyRequest & WithBucket(BucketT &&value)
void SetCopySourceRange(CopySourceRangeT &&value)
UploadPartCopyRequest & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
UploadPartCopyRequest & WithKey(KeyT &&value)
const Aws::String & GetCopySourceSSECustomerKey() const
UploadPartCopyRequest & WithCopySourceSSECustomerKeyMD5(CopySourceSSECustomerKeyMD5T &&value)
void SetCopySourceIfMatch(CopySourceIfMatchT &&value)
const Aws::String & GetCopySourceSSECustomerKeyMD5() const
UploadPartCopyRequest & WithCopySourceIfMatch(CopySourceIfMatchT &&value)
UploadPartCopyRequest & WithCopySourceIfUnmodifiedSince(CopySourceIfUnmodifiedSinceT &&value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UploadPartCopyRequest & WithUploadId(UploadIdT &&value)
UploadPartCopyRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
void SetCopySourceIfUnmodifiedSince(CopySourceIfUnmodifiedSinceT &&value)
void SetExpectedSourceBucketOwner(ExpectedSourceBucketOwnerT &&value)
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetCopySourceSSECustomerAlgorithm(CopySourceSSECustomerAlgorithmT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetCopySourceIfNoneMatch(CopySourceIfNoneMatchT &&value)
void SetCopySourceSSECustomerKeyMD5(CopySourceSSECustomerKeyMD5T &&value)
UploadPartCopyRequest & WithCopySource(CopySourceT &&value)
UploadPartCopyRequest & WithCopySourceSSECustomerKey(CopySourceSSECustomerKeyT &&value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
UploadPartCopyRequest & WithExpectedSourceBucketOwner(ExpectedSourceBucketOwnerT &&value)
const Aws::Utils::DateTime & GetCopySourceIfUnmodifiedSince() const
UploadPartCopyRequest & WithCopySourceIfNoneMatch(CopySourceIfNoneMatchT &&value)
UploadPartCopyRequest & WithCopySourceIfModifiedSince(CopySourceIfModifiedSinceT &&value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
UploadPartCopyRequest & WithPartNumber(int value)
UploadPartCopyRequest & WithCopySourceRange(CopySourceRangeT &&value)
UploadPartCopyRequest & WithRequestPayer(RequestPayer value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::Utils::DateTime & GetCopySourceIfModifiedSince() const
const Aws::String & GetCopySourceIfNoneMatch() const
UploadPartCopyRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
const Aws::String & GetSSECustomerAlgorithm() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetExpectedSourceBucketOwner() const
UploadPartCopyRequest & WithSSECustomerKey(SSECustomerKeyT &&value)
void SetCopySourceIfModifiedSince(CopySourceIfModifiedSinceT &&value)
const Aws::String & GetExpectedBucketOwner() const
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3CRT_API UploadPartCopyRequest()=default
AWS_S3CRT_API Aws::String SerializePayload() const override
UploadPartCopyRequest & WithCopySourceSSECustomerAlgorithm(CopySourceSSECustomerAlgorithmT &&value)
void SetCopySourceSSECustomerKey(CopySourceSSECustomerKeyT &&value)
UploadPartCopyRequest & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
const Aws::String & GetCopySourceSSECustomerAlgorithm() const
UploadPartCopyRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
void SetSSECustomerKey(SSECustomerKeyT &&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