AWS SDK for C++  0.14.3
AWS SDK for C++
CopyObjectRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/s3/S3_EXPORTS.h>
17 #include <aws/s3/S3Request.h>
26 
27 namespace Aws
28 {
29 namespace S3
30 {
31 namespace Model
32 {
33 
37  {
38  public:
40  Aws::String SerializePayload() const override;
41 
42  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43 
47  inline const ObjectCannedACL& GetACL() const{ return m_aCL; }
48 
52  inline void SetACL(const ObjectCannedACL& value) { m_aCLHasBeenSet = true; m_aCL = value; }
53 
57  inline void SetACL(ObjectCannedACL&& value) { m_aCLHasBeenSet = true; m_aCL = value; }
58 
62  inline CopyObjectRequest& WithACL(const ObjectCannedACL& value) { SetACL(value); return *this;}
63 
67  inline CopyObjectRequest& WithACL(ObjectCannedACL&& value) { SetACL(value); return *this;}
68 
69 
70  inline const Aws::String& GetBucket() const{ return m_bucket; }
71 
72 
73  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
74 
75 
76  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
77 
78 
79  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
80 
81 
82  inline CopyObjectRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
83 
84 
85  inline CopyObjectRequest& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
86 
87 
88  inline CopyObjectRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
89 
93  inline const Aws::String& GetCacheControl() const{ return m_cacheControl; }
94 
98  inline void SetCacheControl(const Aws::String& value) { m_cacheControlHasBeenSet = true; m_cacheControl = value; }
99 
103  inline void SetCacheControl(Aws::String&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = value; }
104 
108  inline void SetCacheControl(const char* value) { m_cacheControlHasBeenSet = true; m_cacheControl.assign(value); }
109 
113  inline CopyObjectRequest& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;}
114 
118  inline CopyObjectRequest& WithCacheControl(Aws::String&& value) { SetCacheControl(value); return *this;}
119 
123  inline CopyObjectRequest& WithCacheControl(const char* value) { SetCacheControl(value); return *this;}
124 
128  inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; }
129 
133  inline void SetContentDisposition(const Aws::String& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = value; }
134 
138  inline void SetContentDisposition(Aws::String&& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = value; }
139 
143  inline void SetContentDisposition(const char* value) { m_contentDispositionHasBeenSet = true; m_contentDisposition.assign(value); }
144 
148  inline CopyObjectRequest& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;}
149 
153  inline CopyObjectRequest& WithContentDisposition(Aws::String&& value) { SetContentDisposition(value); return *this;}
154 
158  inline CopyObjectRequest& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;}
159 
165  inline const Aws::String& GetContentEncoding() const{ return m_contentEncoding; }
166 
172  inline void SetContentEncoding(const Aws::String& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = value; }
173 
179  inline void SetContentEncoding(Aws::String&& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = value; }
180 
186  inline void SetContentEncoding(const char* value) { m_contentEncodingHasBeenSet = true; m_contentEncoding.assign(value); }
187 
193  inline CopyObjectRequest& WithContentEncoding(const Aws::String& value) { SetContentEncoding(value); return *this;}
194 
200  inline CopyObjectRequest& WithContentEncoding(Aws::String&& value) { SetContentEncoding(value); return *this;}
201 
207  inline CopyObjectRequest& WithContentEncoding(const char* value) { SetContentEncoding(value); return *this;}
208 
212  inline const Aws::String& GetContentLanguage() const{ return m_contentLanguage; }
213 
217  inline void SetContentLanguage(const Aws::String& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = value; }
218 
222  inline void SetContentLanguage(Aws::String&& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = value; }
223 
227  inline void SetContentLanguage(const char* value) { m_contentLanguageHasBeenSet = true; m_contentLanguage.assign(value); }
228 
232  inline CopyObjectRequest& WithContentLanguage(const Aws::String& value) { SetContentLanguage(value); return *this;}
233 
237  inline CopyObjectRequest& WithContentLanguage(Aws::String&& value) { SetContentLanguage(value); return *this;}
238 
242  inline CopyObjectRequest& WithContentLanguage(const char* value) { SetContentLanguage(value); return *this;}
243 
247  inline const Aws::String& GetContentType() const{ return m_contentType; }
248 
252  inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
253 
257  inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
258 
262  inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
263 
267  inline CopyObjectRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
268 
272  inline CopyObjectRequest& WithContentType(Aws::String&& value) { SetContentType(value); return *this;}
273 
277  inline CopyObjectRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
278 
283  inline const Aws::String& GetCopySource() const{ return m_copySource; }
284 
289  inline void SetCopySource(const Aws::String& value) { m_copySourceHasBeenSet = true; m_copySource = value; }
290 
295  inline void SetCopySource(Aws::String&& value) { m_copySourceHasBeenSet = true; m_copySource = value; }
296 
301  inline void SetCopySource(const char* value) { m_copySourceHasBeenSet = true; m_copySource.assign(value); }
302 
307  inline CopyObjectRequest& WithCopySource(const Aws::String& value) { SetCopySource(value); return *this;}
308 
313  inline CopyObjectRequest& WithCopySource(Aws::String&& value) { SetCopySource(value); return *this;}
314 
319  inline CopyObjectRequest& WithCopySource(const char* value) { SetCopySource(value); return *this;}
320 
324  inline const Aws::String& GetCopySourceIfMatch() const{ return m_copySourceIfMatch; }
325 
329  inline void SetCopySourceIfMatch(const Aws::String& value) { m_copySourceIfMatchHasBeenSet = true; m_copySourceIfMatch = value; }
330 
334  inline void SetCopySourceIfMatch(Aws::String&& value) { m_copySourceIfMatchHasBeenSet = true; m_copySourceIfMatch = value; }
335 
339  inline void SetCopySourceIfMatch(const char* value) { m_copySourceIfMatchHasBeenSet = true; m_copySourceIfMatch.assign(value); }
340 
344  inline CopyObjectRequest& WithCopySourceIfMatch(const Aws::String& value) { SetCopySourceIfMatch(value); return *this;}
345 
349  inline CopyObjectRequest& WithCopySourceIfMatch(Aws::String&& value) { SetCopySourceIfMatch(value); return *this;}
350 
354  inline CopyObjectRequest& WithCopySourceIfMatch(const char* value) { SetCopySourceIfMatch(value); return *this;}
355 
359  inline const Aws::Utils::DateTime& GetCopySourceIfModifiedSince() const{ return m_copySourceIfModifiedSince; }
360 
364  inline void SetCopySourceIfModifiedSince(const Aws::Utils::DateTime& value) { m_copySourceIfModifiedSinceHasBeenSet = true; m_copySourceIfModifiedSince = value; }
365 
369  inline void SetCopySourceIfModifiedSince(Aws::Utils::DateTime&& value) { m_copySourceIfModifiedSinceHasBeenSet = true; m_copySourceIfModifiedSince = value; }
370 
374  inline CopyObjectRequest& WithCopySourceIfModifiedSince(const Aws::Utils::DateTime& value) { SetCopySourceIfModifiedSince(value); return *this;}
375 
379  inline CopyObjectRequest& WithCopySourceIfModifiedSince(Aws::Utils::DateTime&& value) { SetCopySourceIfModifiedSince(value); return *this;}
380 
384  inline const Aws::String& GetCopySourceIfNoneMatch() const{ return m_copySourceIfNoneMatch; }
385 
389  inline void SetCopySourceIfNoneMatch(const Aws::String& value) { m_copySourceIfNoneMatchHasBeenSet = true; m_copySourceIfNoneMatch = value; }
390 
394  inline void SetCopySourceIfNoneMatch(Aws::String&& value) { m_copySourceIfNoneMatchHasBeenSet = true; m_copySourceIfNoneMatch = value; }
395 
399  inline void SetCopySourceIfNoneMatch(const char* value) { m_copySourceIfNoneMatchHasBeenSet = true; m_copySourceIfNoneMatch.assign(value); }
400 
404  inline CopyObjectRequest& WithCopySourceIfNoneMatch(const Aws::String& value) { SetCopySourceIfNoneMatch(value); return *this;}
405 
409  inline CopyObjectRequest& WithCopySourceIfNoneMatch(Aws::String&& value) { SetCopySourceIfNoneMatch(value); return *this;}
410 
414  inline CopyObjectRequest& WithCopySourceIfNoneMatch(const char* value) { SetCopySourceIfNoneMatch(value); return *this;}
415 
419  inline const Aws::Utils::DateTime& GetCopySourceIfUnmodifiedSince() const{ return m_copySourceIfUnmodifiedSince; }
420 
424  inline void SetCopySourceIfUnmodifiedSince(const Aws::Utils::DateTime& value) { m_copySourceIfUnmodifiedSinceHasBeenSet = true; m_copySourceIfUnmodifiedSince = value; }
425 
429  inline void SetCopySourceIfUnmodifiedSince(Aws::Utils::DateTime&& value) { m_copySourceIfUnmodifiedSinceHasBeenSet = true; m_copySourceIfUnmodifiedSince = value; }
430 
434  inline CopyObjectRequest& WithCopySourceIfUnmodifiedSince(const Aws::Utils::DateTime& value) { SetCopySourceIfUnmodifiedSince(value); return *this;}
435 
439  inline CopyObjectRequest& WithCopySourceIfUnmodifiedSince(Aws::Utils::DateTime&& value) { SetCopySourceIfUnmodifiedSince(value); return *this;}
440 
444  inline const Aws::Utils::DateTime& GetExpires() const{ return m_expires; }
445 
449  inline void SetExpires(const Aws::Utils::DateTime& value) { m_expiresHasBeenSet = true; m_expires = value; }
450 
454  inline void SetExpires(Aws::Utils::DateTime&& value) { m_expiresHasBeenSet = true; m_expires = value; }
455 
459  inline CopyObjectRequest& WithExpires(const Aws::Utils::DateTime& value) { SetExpires(value); return *this;}
460 
464  inline CopyObjectRequest& WithExpires(Aws::Utils::DateTime&& value) { SetExpires(value); return *this;}
465 
469  inline const Aws::String& GetGrantFullControl() const{ return m_grantFullControl; }
470 
474  inline void SetGrantFullControl(const Aws::String& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = value; }
475 
479  inline void SetGrantFullControl(Aws::String&& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = value; }
480 
484  inline void SetGrantFullControl(const char* value) { m_grantFullControlHasBeenSet = true; m_grantFullControl.assign(value); }
485 
489  inline CopyObjectRequest& WithGrantFullControl(const Aws::String& value) { SetGrantFullControl(value); return *this;}
490 
494  inline CopyObjectRequest& WithGrantFullControl(Aws::String&& value) { SetGrantFullControl(value); return *this;}
495 
499  inline CopyObjectRequest& WithGrantFullControl(const char* value) { SetGrantFullControl(value); return *this;}
500 
504  inline const Aws::String& GetGrantRead() const{ return m_grantRead; }
505 
509  inline void SetGrantRead(const Aws::String& value) { m_grantReadHasBeenSet = true; m_grantRead = value; }
510 
514  inline void SetGrantRead(Aws::String&& value) { m_grantReadHasBeenSet = true; m_grantRead = value; }
515 
519  inline void SetGrantRead(const char* value) { m_grantReadHasBeenSet = true; m_grantRead.assign(value); }
520 
524  inline CopyObjectRequest& WithGrantRead(const Aws::String& value) { SetGrantRead(value); return *this;}
525 
529  inline CopyObjectRequest& WithGrantRead(Aws::String&& value) { SetGrantRead(value); return *this;}
530 
534  inline CopyObjectRequest& WithGrantRead(const char* value) { SetGrantRead(value); return *this;}
535 
539  inline const Aws::String& GetGrantReadACP() const{ return m_grantReadACP; }
540 
544  inline void SetGrantReadACP(const Aws::String& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = value; }
545 
549  inline void SetGrantReadACP(Aws::String&& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = value; }
550 
554  inline void SetGrantReadACP(const char* value) { m_grantReadACPHasBeenSet = true; m_grantReadACP.assign(value); }
555 
559  inline CopyObjectRequest& WithGrantReadACP(const Aws::String& value) { SetGrantReadACP(value); return *this;}
560 
564  inline CopyObjectRequest& WithGrantReadACP(Aws::String&& value) { SetGrantReadACP(value); return *this;}
565 
569  inline CopyObjectRequest& WithGrantReadACP(const char* value) { SetGrantReadACP(value); return *this;}
570 
574  inline const Aws::String& GetGrantWriteACP() const{ return m_grantWriteACP; }
575 
579  inline void SetGrantWriteACP(const Aws::String& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = value; }
580 
584  inline void SetGrantWriteACP(Aws::String&& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = value; }
585 
589  inline void SetGrantWriteACP(const char* value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP.assign(value); }
590 
594  inline CopyObjectRequest& WithGrantWriteACP(const Aws::String& value) { SetGrantWriteACP(value); return *this;}
595 
599  inline CopyObjectRequest& WithGrantWriteACP(Aws::String&& value) { SetGrantWriteACP(value); return *this;}
600 
604  inline CopyObjectRequest& WithGrantWriteACP(const char* value) { SetGrantWriteACP(value); return *this;}
605 
606 
607  inline const Aws::String& GetKey() const{ return m_key; }
608 
609 
610  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
611 
612 
613  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
614 
615 
616  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
617 
618 
619  inline CopyObjectRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
620 
621 
622  inline CopyObjectRequest& WithKey(Aws::String&& value) { SetKey(value); return *this;}
623 
624 
625  inline CopyObjectRequest& WithKey(const char* value) { SetKey(value); return *this;}
626 
630  inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
631 
635  inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
636 
640  inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = value; }
641 
645  inline CopyObjectRequest& WithMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetMetadata(value); return *this;}
646 
650  inline CopyObjectRequest& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(value); return *this;}
651 
655  inline CopyObjectRequest& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
656 
660  inline CopyObjectRequest& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
661 
665  inline CopyObjectRequest& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
666 
670  inline CopyObjectRequest& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
671 
675  inline CopyObjectRequest& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
676 
680  inline CopyObjectRequest& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
681 
685  inline CopyObjectRequest& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
686 
691  inline const MetadataDirective& GetMetadataDirective() const{ return m_metadataDirective; }
692 
697  inline void SetMetadataDirective(const MetadataDirective& value) { m_metadataDirectiveHasBeenSet = true; m_metadataDirective = value; }
698 
703  inline void SetMetadataDirective(MetadataDirective&& value) { m_metadataDirectiveHasBeenSet = true; m_metadataDirective = value; }
704 
709  inline CopyObjectRequest& WithMetadataDirective(const MetadataDirective& value) { SetMetadataDirective(value); return *this;}
710 
715  inline CopyObjectRequest& WithMetadataDirective(MetadataDirective&& value) { SetMetadataDirective(value); return *this;}
716 
721  inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
722 
727  inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
728 
733  inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
734 
739  inline CopyObjectRequest& WithServerSideEncryption(const ServerSideEncryption& value) { SetServerSideEncryption(value); return *this;}
740 
745  inline CopyObjectRequest& WithServerSideEncryption(ServerSideEncryption&& value) { SetServerSideEncryption(value); return *this;}
746 
750  inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
751 
755  inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
756 
760  inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
761 
765  inline CopyObjectRequest& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
766 
770  inline CopyObjectRequest& WithStorageClass(StorageClass&& value) { SetStorageClass(value); return *this;}
771 
777  inline const Aws::String& GetWebsiteRedirectLocation() const{ return m_websiteRedirectLocation; }
778 
784  inline void SetWebsiteRedirectLocation(const Aws::String& value) { m_websiteRedirectLocationHasBeenSet = true; m_websiteRedirectLocation = value; }
785 
791  inline void SetWebsiteRedirectLocation(Aws::String&& value) { m_websiteRedirectLocationHasBeenSet = true; m_websiteRedirectLocation = value; }
792 
798  inline void SetWebsiteRedirectLocation(const char* value) { m_websiteRedirectLocationHasBeenSet = true; m_websiteRedirectLocation.assign(value); }
799 
805  inline CopyObjectRequest& WithWebsiteRedirectLocation(const Aws::String& value) { SetWebsiteRedirectLocation(value); return *this;}
806 
812  inline CopyObjectRequest& WithWebsiteRedirectLocation(Aws::String&& value) { SetWebsiteRedirectLocation(value); return *this;}
813 
819  inline CopyObjectRequest& WithWebsiteRedirectLocation(const char* value) { SetWebsiteRedirectLocation(value); return *this;}
820 
824  inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
825 
829  inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = value; }
830 
834  inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = value; }
835 
839  inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm.assign(value); }
840 
844  inline CopyObjectRequest& WithSSECustomerAlgorithm(const Aws::String& value) { SetSSECustomerAlgorithm(value); return *this;}
845 
849  inline CopyObjectRequest& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(value); return *this;}
850 
854  inline CopyObjectRequest& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
855 
863  inline const Aws::String& GetSSECustomerKey() const{ return m_sSECustomerKey; }
864 
872  inline void SetSSECustomerKey(const Aws::String& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = value; }
873 
881  inline void SetSSECustomerKey(Aws::String&& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = value; }
882 
890  inline void SetSSECustomerKey(const char* value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey.assign(value); }
891 
899  inline CopyObjectRequest& WithSSECustomerKey(const Aws::String& value) { SetSSECustomerKey(value); return *this;}
900 
908  inline CopyObjectRequest& WithSSECustomerKey(Aws::String&& value) { SetSSECustomerKey(value); return *this;}
909 
917  inline CopyObjectRequest& WithSSECustomerKey(const char* value) { SetSSECustomerKey(value); return *this;}
918 
924  inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
925 
931  inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = value; }
932 
938  inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = value; }
939 
945  inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5.assign(value); }
946 
952  inline CopyObjectRequest& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
953 
959  inline CopyObjectRequest& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(value); return *this;}
960 
966  inline CopyObjectRequest& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
967 
975  inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
976 
984  inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = value; }
985 
993  inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = value; }
994 
1002  inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId.assign(value); }
1003 
1011  inline CopyObjectRequest& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
1012 
1020  inline CopyObjectRequest& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(value); return *this;}
1021 
1029  inline CopyObjectRequest& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
1030 
1034  inline const Aws::String& GetCopySourceSSECustomerAlgorithm() const{ return m_copySourceSSECustomerAlgorithm; }
1035 
1039  inline void SetCopySourceSSECustomerAlgorithm(const Aws::String& value) { m_copySourceSSECustomerAlgorithmHasBeenSet = true; m_copySourceSSECustomerAlgorithm = value; }
1040 
1044  inline void SetCopySourceSSECustomerAlgorithm(Aws::String&& value) { m_copySourceSSECustomerAlgorithmHasBeenSet = true; m_copySourceSSECustomerAlgorithm = value; }
1045 
1049  inline void SetCopySourceSSECustomerAlgorithm(const char* value) { m_copySourceSSECustomerAlgorithmHasBeenSet = true; m_copySourceSSECustomerAlgorithm.assign(value); }
1050 
1054  inline CopyObjectRequest& WithCopySourceSSECustomerAlgorithm(const Aws::String& value) { SetCopySourceSSECustomerAlgorithm(value); return *this;}
1055 
1059  inline CopyObjectRequest& WithCopySourceSSECustomerAlgorithm(Aws::String&& value) { SetCopySourceSSECustomerAlgorithm(value); return *this;}
1060 
1064  inline CopyObjectRequest& WithCopySourceSSECustomerAlgorithm(const char* value) { SetCopySourceSSECustomerAlgorithm(value); return *this;}
1065 
1071  inline const Aws::String& GetCopySourceSSECustomerKey() const{ return m_copySourceSSECustomerKey; }
1072 
1078  inline void SetCopySourceSSECustomerKey(const Aws::String& value) { m_copySourceSSECustomerKeyHasBeenSet = true; m_copySourceSSECustomerKey = value; }
1079 
1085  inline void SetCopySourceSSECustomerKey(Aws::String&& value) { m_copySourceSSECustomerKeyHasBeenSet = true; m_copySourceSSECustomerKey = value; }
1086 
1092  inline void SetCopySourceSSECustomerKey(const char* value) { m_copySourceSSECustomerKeyHasBeenSet = true; m_copySourceSSECustomerKey.assign(value); }
1093 
1099  inline CopyObjectRequest& WithCopySourceSSECustomerKey(const Aws::String& value) { SetCopySourceSSECustomerKey(value); return *this;}
1100 
1106  inline CopyObjectRequest& WithCopySourceSSECustomerKey(Aws::String&& value) { SetCopySourceSSECustomerKey(value); return *this;}
1107 
1113  inline CopyObjectRequest& WithCopySourceSSECustomerKey(const char* value) { SetCopySourceSSECustomerKey(value); return *this;}
1114 
1120  inline const Aws::String& GetCopySourceSSECustomerKeyMD5() const{ return m_copySourceSSECustomerKeyMD5; }
1121 
1127  inline void SetCopySourceSSECustomerKeyMD5(const Aws::String& value) { m_copySourceSSECustomerKeyMD5HasBeenSet = true; m_copySourceSSECustomerKeyMD5 = value; }
1128 
1134  inline void SetCopySourceSSECustomerKeyMD5(Aws::String&& value) { m_copySourceSSECustomerKeyMD5HasBeenSet = true; m_copySourceSSECustomerKeyMD5 = value; }
1135 
1141  inline void SetCopySourceSSECustomerKeyMD5(const char* value) { m_copySourceSSECustomerKeyMD5HasBeenSet = true; m_copySourceSSECustomerKeyMD5.assign(value); }
1142 
1148  inline CopyObjectRequest& WithCopySourceSSECustomerKeyMD5(const Aws::String& value) { SetCopySourceSSECustomerKeyMD5(value); return *this;}
1149 
1155  inline CopyObjectRequest& WithCopySourceSSECustomerKeyMD5(Aws::String&& value) { SetCopySourceSSECustomerKeyMD5(value); return *this;}
1156 
1162  inline CopyObjectRequest& WithCopySourceSSECustomerKeyMD5(const char* value) { SetCopySourceSSECustomerKeyMD5(value); return *this;}
1163 
1164 
1165  inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
1166 
1167 
1168  inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
1169 
1170 
1171  inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
1172 
1173 
1174  inline CopyObjectRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
1175 
1176 
1177  inline CopyObjectRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(value); return *this;}
1178 
1179  private:
1180  ObjectCannedACL m_aCL;
1181  bool m_aCLHasBeenSet;
1182  Aws::String m_bucket;
1183  bool m_bucketHasBeenSet;
1184  Aws::String m_cacheControl;
1185  bool m_cacheControlHasBeenSet;
1186  Aws::String m_contentDisposition;
1187  bool m_contentDispositionHasBeenSet;
1188  Aws::String m_contentEncoding;
1189  bool m_contentEncodingHasBeenSet;
1190  Aws::String m_contentLanguage;
1191  bool m_contentLanguageHasBeenSet;
1192  Aws::String m_contentType;
1193  bool m_contentTypeHasBeenSet;
1194  Aws::String m_copySource;
1195  bool m_copySourceHasBeenSet;
1196  Aws::String m_copySourceIfMatch;
1197  bool m_copySourceIfMatchHasBeenSet;
1198  Aws::Utils::DateTime m_copySourceIfModifiedSince;
1199  bool m_copySourceIfModifiedSinceHasBeenSet;
1200  Aws::String m_copySourceIfNoneMatch;
1201  bool m_copySourceIfNoneMatchHasBeenSet;
1202  Aws::Utils::DateTime m_copySourceIfUnmodifiedSince;
1203  bool m_copySourceIfUnmodifiedSinceHasBeenSet;
1204  Aws::Utils::DateTime m_expires;
1205  bool m_expiresHasBeenSet;
1206  Aws::String m_grantFullControl;
1207  bool m_grantFullControlHasBeenSet;
1208  Aws::String m_grantRead;
1209  bool m_grantReadHasBeenSet;
1210  Aws::String m_grantReadACP;
1211  bool m_grantReadACPHasBeenSet;
1212  Aws::String m_grantWriteACP;
1213  bool m_grantWriteACPHasBeenSet;
1214  Aws::String m_key;
1215  bool m_keyHasBeenSet;
1217  bool m_metadataHasBeenSet;
1218  MetadataDirective m_metadataDirective;
1219  bool m_metadataDirectiveHasBeenSet;
1220  ServerSideEncryption m_serverSideEncryption;
1221  bool m_serverSideEncryptionHasBeenSet;
1222  StorageClass m_storageClass;
1223  bool m_storageClassHasBeenSet;
1224  Aws::String m_websiteRedirectLocation;
1225  bool m_websiteRedirectLocationHasBeenSet;
1226  Aws::String m_sSECustomerAlgorithm;
1227  bool m_sSECustomerAlgorithmHasBeenSet;
1228  Aws::String m_sSECustomerKey;
1229  bool m_sSECustomerKeyHasBeenSet;
1230  Aws::String m_sSECustomerKeyMD5;
1231  bool m_sSECustomerKeyMD5HasBeenSet;
1232  Aws::String m_sSEKMSKeyId;
1233  bool m_sSEKMSKeyIdHasBeenSet;
1234  Aws::String m_copySourceSSECustomerAlgorithm;
1235  bool m_copySourceSSECustomerAlgorithmHasBeenSet;
1236  Aws::String m_copySourceSSECustomerKey;
1237  bool m_copySourceSSECustomerKeyHasBeenSet;
1238  Aws::String m_copySourceSSECustomerKeyMD5;
1239  bool m_copySourceSSECustomerKeyMD5HasBeenSet;
1240  RequestPayer m_requestPayer;
1241  bool m_requestPayerHasBeenSet;
1242  };
1243 
1244 } // namespace Model
1245 } // namespace S3
1246 } // namespace Aws
const Aws::String & GetSSECustomerKey() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
const Aws::String & GetContentType() const
void SetSSEKMSKeyId(const Aws::String &value)
CopyObjectRequest & WithACL(const ObjectCannedACL &value)
void SetContentEncoding(const char *value)
void SetCopySourceIfNoneMatch(const Aws::String &value)
CopyObjectRequest & WithContentEncoding(Aws::String &&value)
const Aws::String & GetGrantReadACP() const
CopyObjectRequest & WithContentType(const Aws::String &value)
CopyObjectRequest & WithCopySourceSSECustomerKeyMD5(const char *value)
void SetCopySourceIfMatch(const Aws::String &value)
void SetContentLanguage(Aws::String &&value)
void SetGrantRead(Aws::String &&value)
CopyObjectRequest & WithACL(ObjectCannedACL &&value)
CopyObjectRequest & WithKey(Aws::String &&value)
const Aws::String & GetSSECustomerAlgorithm() const
void SetSSECustomerAlgorithm(Aws::String &&value)
const Aws::String & GetCopySourceIfMatch() const
CopyObjectRequest & WithContentDisposition(const Aws::String &value)
CopyObjectRequest & WithKey(const char *value)
void SetBucket(Aws::String &&value)
void SetCacheControl(Aws::String &&value)
void SetKey(Aws::String &&value)
CopyObjectRequest & WithWebsiteRedirectLocation(const char *value)
void SetContentDisposition(Aws::String &&value)
void SetServerSideEncryption(ServerSideEncryption &&value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
CopyObjectRequest & WithContentDisposition(Aws::String &&value)
void SetSSECustomerAlgorithm(const char *value)
void SetWebsiteRedirectLocation(Aws::String &&value)
const Aws::String & GetGrantWriteACP() const
void SetSSECustomerKey(const char *value)
const Aws::String & GetCopySourceSSECustomerKeyMD5() const
CopyObjectRequest & WithSSECustomerKey(const char *value)
CopyObjectRequest & WithCacheControl(const char *value)
CopyObjectRequest & WithCopySource(Aws::String &&value)
CopyObjectRequest & WithCopySourceSSECustomerKeyMD5(const Aws::String &value)
void SetSSECustomerKeyMD5(const char *value)
CopyObjectRequest & WithGrantReadACP(const Aws::String &value)
CopyObjectRequest & WithSSECustomerKeyMD5(Aws::String &&value)
CopyObjectRequest & WithCopySourceSSECustomerAlgorithm(Aws::String &&value)
void SetCopySourceIfUnmodifiedSince(const Aws::Utils::DateTime &value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
const ServerSideEncryption & GetServerSideEncryption() const
CopyObjectRequest & WithKey(const Aws::String &value)
void SetSSECustomerKeyMD5(Aws::String &&value)
CopyObjectRequest & WithCopySourceSSECustomerKey(Aws::String &&value)
CopyObjectRequest & WithCopySourceSSECustomerAlgorithm(const char *value)
void SetCopySourceSSECustomerKey(const Aws::String &value)
void SetGrantFullControl(const Aws::String &value)
void SetGrantReadACP(const char *value)
void SetCacheControl(const Aws::String &value)
void SetMetadataDirective(MetadataDirective &&value)
void SetCopySourceSSECustomerKeyMD5(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
const Aws::String & GetCopySourceSSECustomerKey() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
const Aws::String & GetBucket() const
void SetACL(ObjectCannedACL &&value)
CopyObjectRequest & WithCopySourceIfUnmodifiedSince(const Aws::Utils::DateTime &value)
void SetCopySource(Aws::String &&value)
CopyObjectRequest & AddMetadata(Aws::String &&key, const char *value)
CopyObjectRequest & WithBucket(Aws::String &&value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
CopyObjectRequest & WithGrantReadACP(Aws::String &&value)
const MetadataDirective & GetMetadataDirective() const
CopyObjectRequest & WithSSECustomerKey(const Aws::String &value)
void SetServerSideEncryption(const ServerSideEncryption &value)
const Aws::String & GetSSECustomerKeyMD5() const
void SetContentLanguage(const Aws::String &value)
CopyObjectRequest & WithCopySourceIfMatch(const Aws::String &value)
void SetBucket(const Aws::String &value)
void SetContentType(Aws::String &&value)
const StorageClass & GetStorageClass() const
void SetRequestPayer(RequestPayer &&value)
CopyObjectRequest & WithSSECustomerKey(Aws::String &&value)
CopyObjectRequest & WithMetadataDirective(const MetadataDirective &value)
CopyObjectRequest & WithRequestPayer(RequestPayer &&value)
void SetACL(const ObjectCannedACL &value)
CopyObjectRequest & WithCopySourceIfMatch(const char *value)
CopyObjectRequest & WithWebsiteRedirectLocation(const Aws::String &value)
CopyObjectRequest & WithCopySourceIfModifiedSince(Aws::Utils::DateTime &&value)
CopyObjectRequest & AddMetadata(const char *key, Aws::String &&value)
CopyObjectRequest & WithCopySourceIfNoneMatch(const char *value)
CopyObjectRequest & WithContentEncoding(const char *value)
CopyObjectRequest & WithGrantFullControl(const Aws::String &value)
void SetCopySourceIfMatch(const char *value)
CopyObjectRequest & WithCopySourceIfModifiedSince(const Aws::Utils::DateTime &value)
void SetExpires(Aws::Utils::DateTime &&value)
const Aws::String & GetKey() const
void SetRequestPayer(const RequestPayer &value)
CopyObjectRequest & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
void SetGrantFullControl(Aws::String &&value)
CopyObjectRequest & AddMetadata(const Aws::String &key, Aws::String &&value)
const Aws::String & GetSSEKMSKeyId() const
void SetCacheControl(const char *value)
const Aws::String & GetContentEncoding() const
CopyObjectRequest & AddMetadata(const char *key, const char *value)
CopyObjectRequest & WithBucket(const Aws::String &value)
CopyObjectRequest & WithSSECustomerAlgorithm(const char *value)
CopyObjectRequest & WithRequestPayer(const RequestPayer &value)
CopyObjectRequest & WithCopySourceIfNoneMatch(Aws::String &&value)
void SetCopySourceIfModifiedSince(Aws::Utils::DateTime &&value)
const Aws::String & GetGrantFullControl() const
void SetGrantWriteACP(Aws::String &&value)
const Aws::String & GetCacheControl() const
CopyObjectRequest & WithCacheControl(Aws::String &&value)
void SetCopySourceSSECustomerKey(const char *value)
void SetCopySourceIfModifiedSince(const Aws::Utils::DateTime &value)
CopyObjectRequest & WithStorageClass(StorageClass &&value)
void SetCopySourceSSECustomerKeyMD5(Aws::String &&value)
void SetMetadataDirective(const MetadataDirective &value)
const Aws::String & GetCopySourceSSECustomerAlgorithm() const
CopyObjectRequest & WithGrantRead(const char *value)
CopyObjectRequest & WithContentLanguage(const Aws::String &value)
CopyObjectRequest & WithContentLanguage(const char *value)
CopyObjectRequest & WithSSECustomerAlgorithm(Aws::String &&value)
void SetGrantWriteACP(const char *value)
CopyObjectRequest & AddMetadata(const Aws::String &key, const Aws::String &value)
CopyObjectRequest & WithGrantWriteACP(const char *value)
CopyObjectRequest & WithGrantRead(Aws::String &&value)
void SetCopySourceIfUnmodifiedSince(Aws::Utils::DateTime &&value)
void SetGrantReadACP(const Aws::String &value)
const Aws::Utils::DateTime & GetExpires() const
void SetSSEKMSKeyId(const char *value)
CopyObjectRequest & WithGrantWriteACP(Aws::String &&value)
const ObjectCannedACL & GetACL() const
void SetCopySourceSSECustomerAlgorithm(const char *value)
CopyObjectRequest & WithCopySourceIfMatch(Aws::String &&value)
void SetCopySourceIfNoneMatch(const char *value)
void SetContentType(const char *value)
void SetCopySourceIfNoneMatch(Aws::String &&value)
CopyObjectRequest & WithGrantRead(const Aws::String &value)
CopyObjectRequest & WithServerSideEncryption(ServerSideEncryption &&value)
CopyObjectRequest & WithCopySourceSSECustomerKeyMD5(Aws::String &&value)
const Aws::Utils::DateTime & GetCopySourceIfUnmodifiedSince() const
void SetSSECustomerKey(const Aws::String &value)
void SetContentType(const Aws::String &value)
const Aws::String & GetGrantRead() const
void SetCopySource(const Aws::String &value)
void SetGrantFullControl(const char *value)
CopyObjectRequest & WithCopySource(const char *value)
void SetContentDisposition(const char *value)
CopyObjectRequest & WithStorageClass(const StorageClass &value)
CopyObjectRequest & WithGrantFullControl(Aws::String &&value)
const Aws::String & GetCopySourceIfNoneMatch() const
void SetGrantRead(const Aws::String &value)
void SetCopySource(const char *value)
CopyObjectRequest & WithContentEncoding(const Aws::String &value)
CopyObjectRequest & WithCopySource(const Aws::String &value)
CopyObjectRequest & WithCopySourceIfNoneMatch(const Aws::String &value)
void SetWebsiteRedirectLocation(const char *value)
CopyObjectRequest & WithMetadataDirective(MetadataDirective &&value)
void SetSSECustomerKey(Aws::String &&value)
CopyObjectRequest & WithCopySourceIfUnmodifiedSince(Aws::Utils::DateTime &&value)
CopyObjectRequest & WithCopySourceSSECustomerKey(const Aws::String &value)
CopyObjectRequest & WithSSEKMSKeyId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetStorageClass(const StorageClass &value)
CopyObjectRequest & WithContentType(Aws::String &&value)
void SetCopySourceSSECustomerAlgorithm(const Aws::String &value)
CopyObjectRequest & WithWebsiteRedirectLocation(Aws::String &&value)
void SetContentLanguage(const char *value)
void SetStorageClass(StorageClass &&value)
const Aws::Utils::DateTime & GetCopySourceIfModifiedSince() const
const Aws::String & GetContentDisposition() const
void SetGrantReadACP(Aws::String &&value)
CopyObjectRequest & WithSSECustomerKeyMD5(const Aws::String &value)
CopyObjectRequest & WithGrantWriteACP(const Aws::String &value)
CopyObjectRequest & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetContentEncoding(Aws::String &&value)
void SetBucket(const char *value)
CopyObjectRequest & WithCacheControl(const Aws::String &value)
const Aws::String & GetWebsiteRedirectLocation() const
void SetCopySourceSSECustomerKeyMD5(const char *value)
CopyObjectRequest & WithSSECustomerKeyMD5(const char *value)
CopyObjectRequest & WithBucket(const char *value)
void SetCopySourceSSECustomerKey(Aws::String &&value)
CopyObjectRequest & WithContentLanguage(Aws::String &&value)
CopyObjectRequest & WithExpires(Aws::Utils::DateTime &&value)
CopyObjectRequest & WithContentDisposition(const char *value)
CopyObjectRequest & WithGrantFullControl(const char *value)
const Aws::String & GetContentLanguage() const
CopyObjectRequest & WithSSEKMSKeyId(const Aws::String &value)
CopyObjectRequest & WithCopySourceSSECustomerAlgorithm(const Aws::String &value)
CopyObjectRequest & WithExpires(const Aws::Utils::DateTime &value)
void SetSSECustomerAlgorithm(const Aws::String &value)
void SetWebsiteRedirectLocation(const Aws::String &value)
CopyObjectRequest & WithContentType(const char *value)
void SetGrantWriteACP(const Aws::String &value)
void SetKey(const Aws::String &value)
CopyObjectRequest & WithSSECustomerAlgorithm(const Aws::String &value)
CopyObjectRequest & WithServerSideEncryption(const ServerSideEncryption &value)
void SetSSECustomerKeyMD5(const Aws::String &value)
void SetGrantRead(const char *value)
const RequestPayer & GetRequestPayer() const
CopyObjectRequest & WithSSEKMSKeyId(const char *value)
CopyObjectRequest & AddMetadata(Aws::String &&key, Aws::String &&value)
void SetContentDisposition(const Aws::String &value)
CopyObjectRequest & WithGrantReadACP(const char *value)
void SetContentEncoding(const Aws::String &value)
void SetSSEKMSKeyId(Aws::String &&value)
const Aws::String & GetCopySource() const
JSON (JavaScript Object Notation).
CopyObjectRequest & AddMetadata(Aws::String &&key, const Aws::String &value)
void SetCopySourceIfMatch(Aws::String &&value)
void SetCopySourceSSECustomerAlgorithm(Aws::String &&value)
void SetExpires(const Aws::Utils::DateTime &value)
CopyObjectRequest & WithCopySourceSSECustomerKey(const char *value)