AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CopyObjectRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/s3/model/ObjectCannedACL.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/s3/model/ChecksumAlgorithm.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/s3/model/MetadataDirective.h>
15#include <aws/s3/model/TaggingDirective.h>
16#include <aws/s3/model/ServerSideEncryption.h>
17#include <aws/s3/model/StorageClass.h>
18#include <aws/s3/model/RequestPayer.h>
19#include <aws/s3/model/ObjectLockMode.h>
20#include <aws/s3/model/ObjectLockLegalHoldStatus.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Http
26{
27 class URI;
28} //namespace Http
29namespace S3
30{
31namespace Model
32{
33
37 {
38 public:
39 AWS_S3_API CopyObjectRequest() = default;
40
41 // Service request name is the Operation name which will send this request out,
42 // each operation should has unique request name, so that we can get operation's name from this request.
43 // Note: this is not true for response, multiple operations may have the same response name,
44 // so we can not get operation's name from response.
45 inline virtual const char* GetServiceRequestName() const override { return "CopyObject"; }
46
47 AWS_S3_API Aws::String SerializePayload() const override;
48
49 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
50
52
53 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
57 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
58
60
83 inline ObjectCannedACL GetACL() const { return m_aCL; }
84 inline bool ACLHasBeenSet() const { return m_aCLHasBeenSet; }
85 inline void SetACL(ObjectCannedACL value) { m_aCLHasBeenSet = true; m_aCL = value; }
86 inline CopyObjectRequest& WithACL(ObjectCannedACL value) { SetACL(value); return *this;}
88
90
134 inline const Aws::String& GetBucket() const { return m_bucket; }
135 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
136 template<typename BucketT = Aws::String>
137 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
138 template<typename BucketT = Aws::String>
139 CopyObjectRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
141
143
146 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
147 inline bool CacheControlHasBeenSet() const { return m_cacheControlHasBeenSet; }
148 template<typename CacheControlT = Aws::String>
149 void SetCacheControl(CacheControlT&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = std::forward<CacheControlT>(value); }
150 template<typename CacheControlT = Aws::String>
151 CopyObjectRequest& WithCacheControl(CacheControlT&& value) { SetCacheControl(std::forward<CacheControlT>(value)); return *this;}
153
155
171 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
172 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
173 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
176
178
183 inline const Aws::String& GetContentDisposition() const { return m_contentDisposition; }
184 inline bool ContentDispositionHasBeenSet() const { return m_contentDispositionHasBeenSet; }
185 template<typename ContentDispositionT = Aws::String>
186 void SetContentDisposition(ContentDispositionT&& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = std::forward<ContentDispositionT>(value); }
187 template<typename ContentDispositionT = Aws::String>
188 CopyObjectRequest& WithContentDisposition(ContentDispositionT&& value) { SetContentDisposition(std::forward<ContentDispositionT>(value)); return *this;}
190
192
198 inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
199 inline bool ContentEncodingHasBeenSet() const { return m_contentEncodingHasBeenSet; }
200 template<typename ContentEncodingT = Aws::String>
201 void SetContentEncoding(ContentEncodingT&& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = std::forward<ContentEncodingT>(value); }
202 template<typename ContentEncodingT = Aws::String>
203 CopyObjectRequest& WithContentEncoding(ContentEncodingT&& value) { SetContentEncoding(std::forward<ContentEncodingT>(value)); return *this;}
205
207
210 inline const Aws::String& GetContentLanguage() const { return m_contentLanguage; }
211 inline bool ContentLanguageHasBeenSet() const { return m_contentLanguageHasBeenSet; }
212 template<typename ContentLanguageT = Aws::String>
213 void SetContentLanguage(ContentLanguageT&& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = std::forward<ContentLanguageT>(value); }
214 template<typename ContentLanguageT = Aws::String>
215 CopyObjectRequest& WithContentLanguage(ContentLanguageT&& value) { SetContentLanguage(std::forward<ContentLanguageT>(value)); return *this;}
217
219
222 inline const Aws::String& GetContentType() const { return m_contentType; }
223 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
224 template<typename ContentTypeT = Aws::String>
225 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
226 template<typename ContentTypeT = Aws::String>
227 CopyObjectRequest& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
229
231
285 inline const Aws::String& GetCopySource() const { return m_copySource; }
286 inline bool CopySourceHasBeenSet() const { return m_copySourceHasBeenSet; }
287 template<typename CopySourceT = Aws::String>
288 void SetCopySource(CopySourceT&& value) { m_copySourceHasBeenSet = true; m_copySource = std::forward<CopySourceT>(value); }
289 template<typename CopySourceT = Aws::String>
290 CopyObjectRequest& WithCopySource(CopySourceT&& value) { SetCopySource(std::forward<CopySourceT>(value)); return *this;}
292
294
304 inline const Aws::String& GetCopySourceIfMatch() const { return m_copySourceIfMatch; }
305 inline bool CopySourceIfMatchHasBeenSet() const { return m_copySourceIfMatchHasBeenSet; }
306 template<typename CopySourceIfMatchT = Aws::String>
307 void SetCopySourceIfMatch(CopySourceIfMatchT&& value) { m_copySourceIfMatchHasBeenSet = true; m_copySourceIfMatch = std::forward<CopySourceIfMatchT>(value); }
308 template<typename CopySourceIfMatchT = Aws::String>
309 CopyObjectRequest& WithCopySourceIfMatch(CopySourceIfMatchT&& value) { SetCopySourceIfMatch(std::forward<CopySourceIfMatchT>(value)); return *this;}
311
313
323 inline const Aws::Utils::DateTime& GetCopySourceIfModifiedSince() const { return m_copySourceIfModifiedSince; }
324 inline bool CopySourceIfModifiedSinceHasBeenSet() const { return m_copySourceIfModifiedSinceHasBeenSet; }
325 template<typename CopySourceIfModifiedSinceT = Aws::Utils::DateTime>
326 void SetCopySourceIfModifiedSince(CopySourceIfModifiedSinceT&& value) { m_copySourceIfModifiedSinceHasBeenSet = true; m_copySourceIfModifiedSince = std::forward<CopySourceIfModifiedSinceT>(value); }
327 template<typename CopySourceIfModifiedSinceT = Aws::Utils::DateTime>
328 CopyObjectRequest& WithCopySourceIfModifiedSince(CopySourceIfModifiedSinceT&& value) { SetCopySourceIfModifiedSince(std::forward<CopySourceIfModifiedSinceT>(value)); return *this;}
330
332
342 inline const Aws::String& GetCopySourceIfNoneMatch() const { return m_copySourceIfNoneMatch; }
343 inline bool CopySourceIfNoneMatchHasBeenSet() const { return m_copySourceIfNoneMatchHasBeenSet; }
344 template<typename CopySourceIfNoneMatchT = Aws::String>
345 void SetCopySourceIfNoneMatch(CopySourceIfNoneMatchT&& value) { m_copySourceIfNoneMatchHasBeenSet = true; m_copySourceIfNoneMatch = std::forward<CopySourceIfNoneMatchT>(value); }
346 template<typename CopySourceIfNoneMatchT = Aws::String>
347 CopyObjectRequest& WithCopySourceIfNoneMatch(CopySourceIfNoneMatchT&& value) { SetCopySourceIfNoneMatch(std::forward<CopySourceIfNoneMatchT>(value)); return *this;}
349
351
361 inline const Aws::Utils::DateTime& GetCopySourceIfUnmodifiedSince() const { return m_copySourceIfUnmodifiedSince; }
362 inline bool CopySourceIfUnmodifiedSinceHasBeenSet() const { return m_copySourceIfUnmodifiedSinceHasBeenSet; }
363 template<typename CopySourceIfUnmodifiedSinceT = Aws::Utils::DateTime>
364 void SetCopySourceIfUnmodifiedSince(CopySourceIfUnmodifiedSinceT&& value) { m_copySourceIfUnmodifiedSinceHasBeenSet = true; m_copySourceIfUnmodifiedSince = std::forward<CopySourceIfUnmodifiedSinceT>(value); }
365 template<typename CopySourceIfUnmodifiedSinceT = Aws::Utils::DateTime>
366 CopyObjectRequest& WithCopySourceIfUnmodifiedSince(CopySourceIfUnmodifiedSinceT&& value) { SetCopySourceIfUnmodifiedSince(std::forward<CopySourceIfUnmodifiedSinceT>(value)); return *this;}
368
370
373 inline const Aws::Utils::DateTime& GetExpires() const { return m_expires; }
374 inline bool ExpiresHasBeenSet() const { return m_expiresHasBeenSet; }
375 template<typename ExpiresT = Aws::Utils::DateTime>
376 void SetExpires(ExpiresT&& value) { m_expiresHasBeenSet = true; m_expires = std::forward<ExpiresT>(value); }
377 template<typename ExpiresT = Aws::Utils::DateTime>
378 CopyObjectRequest& WithExpires(ExpiresT&& value) { SetExpires(std::forward<ExpiresT>(value)); return *this;}
380
382
388 inline const Aws::String& GetGrantFullControl() const { return m_grantFullControl; }
389 inline bool GrantFullControlHasBeenSet() const { return m_grantFullControlHasBeenSet; }
390 template<typename GrantFullControlT = Aws::String>
391 void SetGrantFullControl(GrantFullControlT&& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = std::forward<GrantFullControlT>(value); }
392 template<typename GrantFullControlT = Aws::String>
393 CopyObjectRequest& WithGrantFullControl(GrantFullControlT&& value) { SetGrantFullControl(std::forward<GrantFullControlT>(value)); return *this;}
395
397
403 inline const Aws::String& GetGrantRead() const { return m_grantRead; }
404 inline bool GrantReadHasBeenSet() const { return m_grantReadHasBeenSet; }
405 template<typename GrantReadT = Aws::String>
406 void SetGrantRead(GrantReadT&& value) { m_grantReadHasBeenSet = true; m_grantRead = std::forward<GrantReadT>(value); }
407 template<typename GrantReadT = Aws::String>
408 CopyObjectRequest& WithGrantRead(GrantReadT&& value) { SetGrantRead(std::forward<GrantReadT>(value)); return *this;}
410
412
418 inline const Aws::String& GetGrantReadACP() const { return m_grantReadACP; }
419 inline bool GrantReadACPHasBeenSet() const { return m_grantReadACPHasBeenSet; }
420 template<typename GrantReadACPT = Aws::String>
421 void SetGrantReadACP(GrantReadACPT&& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = std::forward<GrantReadACPT>(value); }
422 template<typename GrantReadACPT = Aws::String>
423 CopyObjectRequest& WithGrantReadACP(GrantReadACPT&& value) { SetGrantReadACP(std::forward<GrantReadACPT>(value)); return *this;}
425
427
433 inline const Aws::String& GetGrantWriteACP() const { return m_grantWriteACP; }
434 inline bool GrantWriteACPHasBeenSet() const { return m_grantWriteACPHasBeenSet; }
435 template<typename GrantWriteACPT = Aws::String>
436 void SetGrantWriteACP(GrantWriteACPT&& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = std::forward<GrantWriteACPT>(value); }
437 template<typename GrantWriteACPT = Aws::String>
438 CopyObjectRequest& WithGrantWriteACP(GrantWriteACPT&& value) { SetGrantWriteACP(std::forward<GrantWriteACPT>(value)); return *this;}
440
442
445 inline const Aws::String& GetKey() const { return m_key; }
446 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
447 template<typename KeyT = Aws::String>
448 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
449 template<typename KeyT = Aws::String>
450 CopyObjectRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
452
454
457 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
458 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
459 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
460 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
461 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
462 CopyObjectRequest& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
463 template<typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
464 CopyObjectRequest& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
465 m_metadataHasBeenSet = true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value)); return *this;
466 }
468
470
486 inline MetadataDirective GetMetadataDirective() const { return m_metadataDirective; }
487 inline bool MetadataDirectiveHasBeenSet() const { return m_metadataDirectiveHasBeenSet; }
488 inline void SetMetadataDirective(MetadataDirective value) { m_metadataDirectiveHasBeenSet = true; m_metadataDirective = value; }
491
493
524 inline TaggingDirective GetTaggingDirective() const { return m_taggingDirective; }
525 inline bool TaggingDirectiveHasBeenSet() const { return m_taggingDirectiveHasBeenSet; }
526 inline void SetTaggingDirective(TaggingDirective value) { m_taggingDirectiveHasBeenSet = true; m_taggingDirective = value; }
529
531
600 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
601 inline bool ServerSideEncryptionHasBeenSet() const { return m_serverSideEncryptionHasBeenSet; }
602 inline void SetServerSideEncryption(ServerSideEncryption value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
605
607
637 inline StorageClass GetStorageClass() const { return m_storageClass; }
638 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
639 inline void SetStorageClass(StorageClass value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
640 inline CopyObjectRequest& WithStorageClass(StorageClass value) { SetStorageClass(value); return *this;}
642
644
654 inline const Aws::String& GetWebsiteRedirectLocation() const { return m_websiteRedirectLocation; }
655 inline bool WebsiteRedirectLocationHasBeenSet() const { return m_websiteRedirectLocationHasBeenSet; }
656 template<typename WebsiteRedirectLocationT = Aws::String>
657 void SetWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) { m_websiteRedirectLocationHasBeenSet = true; m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value); }
658 template<typename WebsiteRedirectLocationT = Aws::String>
659 CopyObjectRequest& WithWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) { SetWebsiteRedirectLocation(std::forward<WebsiteRedirectLocationT>(value)); return *this;}
661
663
675 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
676 inline bool SSECustomerAlgorithmHasBeenSet() const { return m_sSECustomerAlgorithmHasBeenSet; }
677 template<typename SSECustomerAlgorithmT = Aws::String>
678 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value); }
679 template<typename SSECustomerAlgorithmT = Aws::String>
680 CopyObjectRequest& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value)); return *this;}
682
684
693 inline const Aws::String& GetSSECustomerKey() const { return m_sSECustomerKey; }
694 inline bool SSECustomerKeyHasBeenSet() const { return m_sSECustomerKeyHasBeenSet; }
695 template<typename SSECustomerKeyT = Aws::String>
696 void SetSSECustomerKey(SSECustomerKeyT&& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = std::forward<SSECustomerKeyT>(value); }
697 template<typename SSECustomerKeyT = Aws::String>
698 CopyObjectRequest& WithSSECustomerKey(SSECustomerKeyT&& value) { SetSSECustomerKey(std::forward<SSECustomerKeyT>(value)); return *this;}
700
702
708 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
709 inline bool SSECustomerKeyMD5HasBeenSet() const { return m_sSECustomerKeyMD5HasBeenSet; }
710 template<typename SSECustomerKeyMD5T = Aws::String>
711 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value); }
712 template<typename SSECustomerKeyMD5T = Aws::String>
713 CopyObjectRequest& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value)); return *this;}
715
717
739 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
740 inline bool SSEKMSKeyIdHasBeenSet() const { return m_sSEKMSKeyIdHasBeenSet; }
741 template<typename SSEKMSKeyIdT = Aws::String>
742 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value); }
743 template<typename SSEKMSKeyIdT = Aws::String>
744 CopyObjectRequest& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) { SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value)); return *this;}
746
748
763 inline const Aws::String& GetSSEKMSEncryptionContext() const { return m_sSEKMSEncryptionContext; }
764 inline bool SSEKMSEncryptionContextHasBeenSet() const { return m_sSEKMSEncryptionContextHasBeenSet; }
765 template<typename SSEKMSEncryptionContextT = Aws::String>
766 void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) { m_sSEKMSEncryptionContextHasBeenSet = true; m_sSEKMSEncryptionContext = std::forward<SSEKMSEncryptionContextT>(value); }
767 template<typename SSEKMSEncryptionContextT = Aws::String>
768 CopyObjectRequest& WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) { SetSSEKMSEncryptionContext(std::forward<SSEKMSEncryptionContextT>(value)); return *this;}
770
772
789 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
790 inline bool BucketKeyEnabledHasBeenSet() const { return m_bucketKeyEnabledHasBeenSet; }
791 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabledHasBeenSet = true; m_bucketKeyEnabled = value; }
792 inline CopyObjectRequest& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
794
796
804 inline const Aws::String& GetCopySourceSSECustomerAlgorithm() const { return m_copySourceSSECustomerAlgorithm; }
805 inline bool CopySourceSSECustomerAlgorithmHasBeenSet() const { return m_copySourceSSECustomerAlgorithmHasBeenSet; }
806 template<typename CopySourceSSECustomerAlgorithmT = Aws::String>
807 void SetCopySourceSSECustomerAlgorithm(CopySourceSSECustomerAlgorithmT&& value) { m_copySourceSSECustomerAlgorithmHasBeenSet = true; m_copySourceSSECustomerAlgorithm = std::forward<CopySourceSSECustomerAlgorithmT>(value); }
808 template<typename CopySourceSSECustomerAlgorithmT = Aws::String>
809 CopyObjectRequest& WithCopySourceSSECustomerAlgorithm(CopySourceSSECustomerAlgorithmT&& value) { SetCopySourceSSECustomerAlgorithm(std::forward<CopySourceSSECustomerAlgorithmT>(value)); return *this;}
811
813
822 inline const Aws::String& GetCopySourceSSECustomerKey() const { return m_copySourceSSECustomerKey; }
823 inline bool CopySourceSSECustomerKeyHasBeenSet() const { return m_copySourceSSECustomerKeyHasBeenSet; }
824 template<typename CopySourceSSECustomerKeyT = Aws::String>
825 void SetCopySourceSSECustomerKey(CopySourceSSECustomerKeyT&& value) { m_copySourceSSECustomerKeyHasBeenSet = true; m_copySourceSSECustomerKey = std::forward<CopySourceSSECustomerKeyT>(value); }
826 template<typename CopySourceSSECustomerKeyT = Aws::String>
827 CopyObjectRequest& WithCopySourceSSECustomerKey(CopySourceSSECustomerKeyT&& value) { SetCopySourceSSECustomerKey(std::forward<CopySourceSSECustomerKeyT>(value)); return *this;}
829
831
840 inline const Aws::String& GetCopySourceSSECustomerKeyMD5() const { return m_copySourceSSECustomerKeyMD5; }
841 inline bool CopySourceSSECustomerKeyMD5HasBeenSet() const { return m_copySourceSSECustomerKeyMD5HasBeenSet; }
842 template<typename CopySourceSSECustomerKeyMD5T = Aws::String>
843 void SetCopySourceSSECustomerKeyMD5(CopySourceSSECustomerKeyMD5T&& value) { m_copySourceSSECustomerKeyMD5HasBeenSet = true; m_copySourceSSECustomerKeyMD5 = std::forward<CopySourceSSECustomerKeyMD5T>(value); }
844 template<typename CopySourceSSECustomerKeyMD5T = Aws::String>
845 CopyObjectRequest& WithCopySourceSSECustomerKeyMD5(CopySourceSSECustomerKeyMD5T&& value) { SetCopySourceSSECustomerKeyMD5(std::forward<CopySourceSSECustomerKeyMD5T>(value)); return *this;}
847
849
850 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
851 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
852 inline void SetRequestPayer(RequestPayer value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
853 inline CopyObjectRequest& WithRequestPayer(RequestPayer value) { SetRequestPayer(value); return *this;}
855
857
892 inline const Aws::String& GetTagging() const { return m_tagging; }
893 inline bool TaggingHasBeenSet() const { return m_taggingHasBeenSet; }
894 template<typename TaggingT = Aws::String>
895 void SetTagging(TaggingT&& value) { m_taggingHasBeenSet = true; m_tagging = std::forward<TaggingT>(value); }
896 template<typename TaggingT = Aws::String>
897 CopyObjectRequest& WithTagging(TaggingT&& value) { SetTagging(std::forward<TaggingT>(value)); return *this;}
899
901
905 inline ObjectLockMode GetObjectLockMode() const { return m_objectLockMode; }
906 inline bool ObjectLockModeHasBeenSet() const { return m_objectLockModeHasBeenSet; }
907 inline void SetObjectLockMode(ObjectLockMode value) { m_objectLockModeHasBeenSet = true; m_objectLockMode = value; }
910
912
917 inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const { return m_objectLockRetainUntilDate; }
918 inline bool ObjectLockRetainUntilDateHasBeenSet() const { return m_objectLockRetainUntilDateHasBeenSet; }
919 template<typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
920 void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) { m_objectLockRetainUntilDateHasBeenSet = true; m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value); }
921 template<typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
922 CopyObjectRequest& WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) { SetObjectLockRetainUntilDate(std::forward<ObjectLockRetainUntilDateT>(value)); return *this;}
924
926
930 inline ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const { return m_objectLockLegalHoldStatus; }
931 inline bool ObjectLockLegalHoldStatusHasBeenSet() const { return m_objectLockLegalHoldStatusHasBeenSet; }
932 inline void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value) { m_objectLockLegalHoldStatusHasBeenSet = true; m_objectLockLegalHoldStatus = value; }
935
937
943 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
944 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
945 template<typename ExpectedBucketOwnerT = Aws::String>
946 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
947 template<typename ExpectedBucketOwnerT = Aws::String>
948 CopyObjectRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
950
952
957 inline const Aws::String& GetExpectedSourceBucketOwner() const { return m_expectedSourceBucketOwner; }
958 inline bool ExpectedSourceBucketOwnerHasBeenSet() const { return m_expectedSourceBucketOwnerHasBeenSet; }
959 template<typename ExpectedSourceBucketOwnerT = Aws::String>
960 void SetExpectedSourceBucketOwner(ExpectedSourceBucketOwnerT&& value) { m_expectedSourceBucketOwnerHasBeenSet = true; m_expectedSourceBucketOwner = std::forward<ExpectedSourceBucketOwnerT>(value); }
961 template<typename ExpectedSourceBucketOwnerT = Aws::String>
962 CopyObjectRequest& WithExpectedSourceBucketOwner(ExpectedSourceBucketOwnerT&& value) { SetExpectedSourceBucketOwner(std::forward<ExpectedSourceBucketOwnerT>(value)); return *this;}
964
966
967 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
968 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
969 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
970 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
971 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
972 CopyObjectRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
973 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
974 CopyObjectRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
975 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
976 }
978 private:
979
981 bool m_aCLHasBeenSet = false;
982
983 Aws::String m_bucket;
984 bool m_bucketHasBeenSet = false;
985
986 Aws::String m_cacheControl;
987 bool m_cacheControlHasBeenSet = false;
988
990 bool m_checksumAlgorithmHasBeenSet = false;
991
992 Aws::String m_contentDisposition;
993 bool m_contentDispositionHasBeenSet = false;
994
995 Aws::String m_contentEncoding;
996 bool m_contentEncodingHasBeenSet = false;
997
998 Aws::String m_contentLanguage;
999 bool m_contentLanguageHasBeenSet = false;
1000
1001 Aws::String m_contentType;
1002 bool m_contentTypeHasBeenSet = false;
1003
1004 Aws::String m_copySource;
1005 bool m_copySourceHasBeenSet = false;
1006
1007 Aws::String m_copySourceIfMatch;
1008 bool m_copySourceIfMatchHasBeenSet = false;
1009
1010 Aws::Utils::DateTime m_copySourceIfModifiedSince{};
1011 bool m_copySourceIfModifiedSinceHasBeenSet = false;
1012
1013 Aws::String m_copySourceIfNoneMatch;
1014 bool m_copySourceIfNoneMatchHasBeenSet = false;
1015
1016 Aws::Utils::DateTime m_copySourceIfUnmodifiedSince{};
1017 bool m_copySourceIfUnmodifiedSinceHasBeenSet = false;
1018
1019 Aws::Utils::DateTime m_expires{};
1020 bool m_expiresHasBeenSet = false;
1021
1022 Aws::String m_grantFullControl;
1023 bool m_grantFullControlHasBeenSet = false;
1024
1025 Aws::String m_grantRead;
1026 bool m_grantReadHasBeenSet = false;
1027
1028 Aws::String m_grantReadACP;
1029 bool m_grantReadACPHasBeenSet = false;
1030
1031 Aws::String m_grantWriteACP;
1032 bool m_grantWriteACPHasBeenSet = false;
1033
1034 Aws::String m_key;
1035 bool m_keyHasBeenSet = false;
1036
1038 bool m_metadataHasBeenSet = false;
1039
1040 MetadataDirective m_metadataDirective{MetadataDirective::NOT_SET};
1041 bool m_metadataDirectiveHasBeenSet = false;
1042
1043 TaggingDirective m_taggingDirective{TaggingDirective::NOT_SET};
1044 bool m_taggingDirectiveHasBeenSet = false;
1045
1047 bool m_serverSideEncryptionHasBeenSet = false;
1048
1049 StorageClass m_storageClass{StorageClass::NOT_SET};
1050 bool m_storageClassHasBeenSet = false;
1051
1052 Aws::String m_websiteRedirectLocation;
1053 bool m_websiteRedirectLocationHasBeenSet = false;
1054
1055 Aws::String m_sSECustomerAlgorithm;
1056 bool m_sSECustomerAlgorithmHasBeenSet = false;
1057
1058 Aws::String m_sSECustomerKey;
1059 bool m_sSECustomerKeyHasBeenSet = false;
1060
1061 Aws::String m_sSECustomerKeyMD5;
1062 bool m_sSECustomerKeyMD5HasBeenSet = false;
1063
1064 Aws::String m_sSEKMSKeyId;
1065 bool m_sSEKMSKeyIdHasBeenSet = false;
1066
1067 Aws::String m_sSEKMSEncryptionContext;
1068 bool m_sSEKMSEncryptionContextHasBeenSet = false;
1069
1070 bool m_bucketKeyEnabled{false};
1071 bool m_bucketKeyEnabledHasBeenSet = false;
1072
1073 Aws::String m_copySourceSSECustomerAlgorithm;
1074 bool m_copySourceSSECustomerAlgorithmHasBeenSet = false;
1075
1076 Aws::String m_copySourceSSECustomerKey;
1077 bool m_copySourceSSECustomerKeyHasBeenSet = false;
1078
1079 Aws::String m_copySourceSSECustomerKeyMD5;
1080 bool m_copySourceSSECustomerKeyMD5HasBeenSet = false;
1081
1082 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
1083 bool m_requestPayerHasBeenSet = false;
1084
1085 Aws::String m_tagging;
1086 bool m_taggingHasBeenSet = false;
1087
1088 ObjectLockMode m_objectLockMode{ObjectLockMode::NOT_SET};
1089 bool m_objectLockModeHasBeenSet = false;
1090
1091 Aws::Utils::DateTime m_objectLockRetainUntilDate{};
1092 bool m_objectLockRetainUntilDateHasBeenSet = false;
1093
1095 bool m_objectLockLegalHoldStatusHasBeenSet = false;
1096
1097 Aws::String m_expectedBucketOwner;
1098 bool m_expectedBucketOwnerHasBeenSet = false;
1099
1100 Aws::String m_expectedSourceBucketOwner;
1101 bool m_expectedSourceBucketOwnerHasBeenSet = false;
1102
1103 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
1104 bool m_customizedAccessLogTagHasBeenSet = false;
1105 };
1106
1107} // namespace Model
1108} // namespace S3
1109} // namespace Aws
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
void SetCopySourceIfNoneMatch(CopySourceIfNoneMatchT &&value)
CopyObjectRequest & WithStorageClass(StorageClass value)
CopyObjectRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const
AWS_S3_API CopyObjectRequest()=default
CopyObjectRequest & WithBucketKeyEnabled(bool value)
void SetCopySource(CopySourceT &&value)
CopyObjectRequest & WithContentEncoding(ContentEncodingT &&value)
CopyObjectRequest & WithServerSideEncryption(ServerSideEncryption value)
const Aws::String & GetContentDisposition() const
CopyObjectRequest & WithExpectedSourceBucketOwner(ExpectedSourceBucketOwnerT &&value)
void SetMetadata(MetadataT &&value)
CopyObjectRequest & WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
CopyObjectRequest & WithCacheControl(CacheControlT &&value)
void SetContentLanguage(ContentLanguageT &&value)
CopyObjectRequest & WithBucket(BucketT &&value)
const Aws::Utils::DateTime & GetCopySourceIfUnmodifiedSince() const
ServerSideEncryption GetServerSideEncryption() const
const Aws::String & GetWebsiteRedirectLocation() const
const Aws::String & GetExpectedSourceBucketOwner() const
void SetCopySourceSSECustomerKey(CopySourceSSECustomerKeyT &&value)
void SetObjectLockMode(ObjectLockMode value)
const Aws::String & GetTagging() const
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
void SetGrantWriteACP(GrantWriteACPT &&value)
void SetGrantFullControl(GrantFullControlT &&value)
void SetCopySourceIfMatch(CopySourceIfMatchT &&value)
void SetContentDisposition(ContentDispositionT &&value)
const Aws::Utils::DateTime & GetExpires() const
const Aws::String & GetContentLanguage() const
const Aws::String & GetGrantWriteACP() const
void SetMetadataDirective(MetadataDirective value)
CopyObjectRequest & WithCopySourceSSECustomerKeyMD5(CopySourceSSECustomerKeyMD5T &&value)
CopyObjectRequest & WithCopySourceSSECustomerKey(CopySourceSSECustomerKeyT &&value)
CopyObjectRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
CopyObjectRequest & WithMetadata(MetadataT &&value)
CopyObjectRequest & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
void SetCopySourceIfModifiedSince(CopySourceIfModifiedSinceT &&value)
CopyObjectRequest & WithCopySourceIfUnmodifiedSince(CopySourceIfUnmodifiedSinceT &&value)
CopyObjectRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
void SetContentEncoding(ContentEncodingT &&value)
CopyObjectRequest & WithGrantWriteACP(GrantWriteACPT &&value)
CopyObjectRequest & WithContentDisposition(ContentDispositionT &&value)
void SetSSECustomerKey(SSECustomerKeyT &&value)
const Aws::String & GetSSECustomerKeyMD5() const
void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
CopyObjectRequest & WithContentType(ContentTypeT &&value)
void SetServerSideEncryption(ServerSideEncryption value)
void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
CopyObjectRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
CopyObjectRequest & WithObjectLockMode(ObjectLockMode value)
CopyObjectRequest & WithGrantRead(GrantReadT &&value)
CopyObjectRequest & WithCopySource(CopySourceT &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
CopyObjectRequest & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
virtual const char * GetServiceRequestName() const override
CopyObjectRequest & WithSSECustomerKey(SSECustomerKeyT &&value)
const Aws::String & GetCopySourceSSECustomerKeyMD5() const
CopyObjectRequest & WithCopySourceIfMatch(CopySourceIfMatchT &&value)
const Aws::String & GetGrantFullControl() const
const Aws::String & GetCopySourceSSECustomerKey() const
CopyObjectRequest & WithContentLanguage(ContentLanguageT &&value)
const Aws::String & GetSSEKMSEncryptionContext() const
const Aws::String & GetCopySourceIfMatch() const
CopyObjectRequest & WithRequestPayer(RequestPayer value)
void SetCacheControl(CacheControlT &&value)
const Aws::Utils::DateTime & GetCopySourceIfModifiedSince() const
CopyObjectRequest & WithMetadataDirective(MetadataDirective value)
CopyObjectRequest & WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
CopyObjectRequest & WithWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
CopyObjectRequest & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
CopyObjectRequest & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
CopyObjectRequest & WithCopySourceSSECustomerAlgorithm(CopySourceSSECustomerAlgorithmT &&value)
void SetChecksumAlgorithm(ChecksumAlgorithm value)
const Aws::String & GetGrantReadACP() const
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
void SetStorageClass(StorageClass value)
const Aws::Utils::DateTime & GetObjectLockRetainUntilDate() const
const Aws::String & GetBucket() const
CopyObjectRequest & WithKey(KeyT &&value)
const Aws::String & GetCopySourceIfNoneMatch() const
const Aws::String & GetKey() const
void SetExpectedSourceBucketOwner(ExpectedSourceBucketOwnerT &&value)
ObjectLockMode GetObjectLockMode() const
const Aws::String & GetCacheControl() const
ChecksumAlgorithm GetChecksumAlgorithm() const
CopyObjectRequest & WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
void SetCopySourceIfUnmodifiedSince(CopySourceIfUnmodifiedSinceT &&value)
void SetContentType(ContentTypeT &&value)
CopyObjectRequest & WithGrantReadACP(GrantReadACPT &&value)
CopyObjectRequest & WithTaggingDirective(TaggingDirective value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
CopyObjectRequest & WithExpires(ExpiresT &&value)
CopyObjectRequest & WithCopySourceIfModifiedSince(CopySourceIfModifiedSinceT &&value)
void SetGrantReadACP(GrantReadACPT &&value)
const Aws::String & GetContentType() const
void SetRequestPayer(RequestPayer value)
const Aws::String & GetExpectedBucketOwner() const
const Aws::String & GetSSECustomerKey() const
void SetCopySourceSSECustomerAlgorithm(CopySourceSSECustomerAlgorithmT &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3_API Aws::String SerializePayload() const override
CopyObjectRequest & WithCopySourceIfNoneMatch(CopySourceIfNoneMatchT &&value)
const Aws::String & GetSSECustomerAlgorithm() const
MetadataDirective GetMetadataDirective() const
CopyObjectRequest & WithTagging(TaggingT &&value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
void SetWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
const Aws::String & GetCopySource() const
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetCopySourceSSECustomerKeyMD5(CopySourceSSECustomerKeyMD5T &&value)
CopyObjectRequest & WithGrantFullControl(GrantFullControlT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
const Aws::String & GetGrantRead() const
void SetGrantRead(GrantReadT &&value)
CopyObjectRequest & WithACL(ObjectCannedACL value)
void SetTaggingDirective(TaggingDirective value)
const Aws::String & GetContentEncoding() const
void SetACL(ObjectCannedACL value)
const Aws::String & GetCopySourceSSECustomerAlgorithm() const
const Aws::String & GetSSEKMSKeyId() const
TaggingDirective GetTaggingDirective() const
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