AWS SDK for C++  0.12.9
AWS SDK for C++
PutObjectRequest.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>
19 #include <aws/core/utils/Array.h>
26 
27 namespace Aws
28 {
29 namespace S3
30 {
31 namespace Model
32 {
33 
37  {
38  public:
40  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
45  inline const ObjectCannedACL& GetACL() const{ return m_aCL; }
46 
50  inline void SetACL(const ObjectCannedACL& value) { m_aCLHasBeenSet = true; m_aCL = value; }
51 
55  inline void SetACL(ObjectCannedACL&& value) { m_aCLHasBeenSet = true; m_aCL = value; }
56 
60  inline PutObjectRequest& WithACL(const ObjectCannedACL& value) { SetACL(value); return *this;}
61 
65  inline PutObjectRequest& WithACL(ObjectCannedACL&& value) { SetACL(value); return *this;}
66 
70  inline const Aws::String& GetBucket() const{ return m_bucket; }
71 
75  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
76 
80  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
81 
85  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
86 
90  inline PutObjectRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
91 
95  inline PutObjectRequest& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
96 
100  inline PutObjectRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
101 
105  inline const Aws::String& GetCacheControl() const{ return m_cacheControl; }
106 
110  inline void SetCacheControl(const Aws::String& value) { m_cacheControlHasBeenSet = true; m_cacheControl = value; }
111 
115  inline void SetCacheControl(Aws::String&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = value; }
116 
120  inline void SetCacheControl(const char* value) { m_cacheControlHasBeenSet = true; m_cacheControl.assign(value); }
121 
125  inline PutObjectRequest& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;}
126 
130  inline PutObjectRequest& WithCacheControl(Aws::String&& value) { SetCacheControl(value); return *this;}
131 
135  inline PutObjectRequest& WithCacheControl(const char* value) { SetCacheControl(value); return *this;}
136 
140  inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; }
141 
145  inline void SetContentDisposition(const Aws::String& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = value; }
146 
150  inline void SetContentDisposition(Aws::String&& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = value; }
151 
155  inline void SetContentDisposition(const char* value) { m_contentDispositionHasBeenSet = true; m_contentDisposition.assign(value); }
156 
160  inline PutObjectRequest& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;}
161 
165  inline PutObjectRequest& WithContentDisposition(Aws::String&& value) { SetContentDisposition(value); return *this;}
166 
170  inline PutObjectRequest& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;}
171 
177  inline const Aws::String& GetContentEncoding() const{ return m_contentEncoding; }
178 
184  inline void SetContentEncoding(const Aws::String& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = value; }
185 
191  inline void SetContentEncoding(Aws::String&& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = value; }
192 
198  inline void SetContentEncoding(const char* value) { m_contentEncodingHasBeenSet = true; m_contentEncoding.assign(value); }
199 
205  inline PutObjectRequest& WithContentEncoding(const Aws::String& value) { SetContentEncoding(value); return *this;}
206 
212  inline PutObjectRequest& WithContentEncoding(Aws::String&& value) { SetContentEncoding(value); return *this;}
213 
219  inline PutObjectRequest& WithContentEncoding(const char* value) { SetContentEncoding(value); return *this;}
220 
224  inline const Aws::String& GetContentLanguage() const{ return m_contentLanguage; }
225 
229  inline void SetContentLanguage(const Aws::String& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = value; }
230 
234  inline void SetContentLanguage(Aws::String&& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = value; }
235 
239  inline void SetContentLanguage(const char* value) { m_contentLanguageHasBeenSet = true; m_contentLanguage.assign(value); }
240 
244  inline PutObjectRequest& WithContentLanguage(const Aws::String& value) { SetContentLanguage(value); return *this;}
245 
249  inline PutObjectRequest& WithContentLanguage(Aws::String&& value) { SetContentLanguage(value); return *this;}
250 
254  inline PutObjectRequest& WithContentLanguage(const char* value) { SetContentLanguage(value); return *this;}
255 
260  inline long long GetContentLength() const{ return m_contentLength; }
261 
266  inline void SetContentLength(long long value) { m_contentLengthHasBeenSet = true; m_contentLength = value; }
267 
272  inline PutObjectRequest& WithContentLength(long long value) { SetContentLength(value); return *this;}
273 
277  inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
278 
282  inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
283 
287  inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
288 
292  inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
293 
297  inline PutObjectRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
298 
302  inline PutObjectRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(value); return *this;}
303 
307  inline PutObjectRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
308 
312  inline const Aws::Utils::DateTime& GetExpires() const{ return m_expires; }
313 
317  inline void SetExpires(const Aws::Utils::DateTime& value) { m_expiresHasBeenSet = true; m_expires = value; }
318 
322  inline void SetExpires(Aws::Utils::DateTime&& value) { m_expiresHasBeenSet = true; m_expires = value; }
323 
327  inline PutObjectRequest& WithExpires(const Aws::Utils::DateTime& value) { SetExpires(value); return *this;}
328 
332  inline PutObjectRequest& WithExpires(Aws::Utils::DateTime&& value) { SetExpires(value); return *this;}
333 
337  inline const Aws::String& GetGrantFullControl() const{ return m_grantFullControl; }
338 
342  inline void SetGrantFullControl(const Aws::String& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = value; }
343 
347  inline void SetGrantFullControl(Aws::String&& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = value; }
348 
352  inline void SetGrantFullControl(const char* value) { m_grantFullControlHasBeenSet = true; m_grantFullControl.assign(value); }
353 
357  inline PutObjectRequest& WithGrantFullControl(const Aws::String& value) { SetGrantFullControl(value); return *this;}
358 
362  inline PutObjectRequest& WithGrantFullControl(Aws::String&& value) { SetGrantFullControl(value); return *this;}
363 
367  inline PutObjectRequest& WithGrantFullControl(const char* value) { SetGrantFullControl(value); return *this;}
368 
372  inline const Aws::String& GetGrantRead() const{ return m_grantRead; }
373 
377  inline void SetGrantRead(const Aws::String& value) { m_grantReadHasBeenSet = true; m_grantRead = value; }
378 
382  inline void SetGrantRead(Aws::String&& value) { m_grantReadHasBeenSet = true; m_grantRead = value; }
383 
387  inline void SetGrantRead(const char* value) { m_grantReadHasBeenSet = true; m_grantRead.assign(value); }
388 
392  inline PutObjectRequest& WithGrantRead(const Aws::String& value) { SetGrantRead(value); return *this;}
393 
397  inline PutObjectRequest& WithGrantRead(Aws::String&& value) { SetGrantRead(value); return *this;}
398 
402  inline PutObjectRequest& WithGrantRead(const char* value) { SetGrantRead(value); return *this;}
403 
407  inline const Aws::String& GetGrantReadACP() const{ return m_grantReadACP; }
408 
412  inline void SetGrantReadACP(const Aws::String& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = value; }
413 
417  inline void SetGrantReadACP(Aws::String&& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = value; }
418 
422  inline void SetGrantReadACP(const char* value) { m_grantReadACPHasBeenSet = true; m_grantReadACP.assign(value); }
423 
427  inline PutObjectRequest& WithGrantReadACP(const Aws::String& value) { SetGrantReadACP(value); return *this;}
428 
432  inline PutObjectRequest& WithGrantReadACP(Aws::String&& value) { SetGrantReadACP(value); return *this;}
433 
437  inline PutObjectRequest& WithGrantReadACP(const char* value) { SetGrantReadACP(value); return *this;}
438 
442  inline const Aws::String& GetGrantWriteACP() const{ return m_grantWriteACP; }
443 
447  inline void SetGrantWriteACP(const Aws::String& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = value; }
448 
452  inline void SetGrantWriteACP(Aws::String&& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = value; }
453 
457  inline void SetGrantWriteACP(const char* value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP.assign(value); }
458 
462  inline PutObjectRequest& WithGrantWriteACP(const Aws::String& value) { SetGrantWriteACP(value); return *this;}
463 
467  inline PutObjectRequest& WithGrantWriteACP(Aws::String&& value) { SetGrantWriteACP(value); return *this;}
468 
472  inline PutObjectRequest& WithGrantWriteACP(const char* value) { SetGrantWriteACP(value); return *this;}
473 
477  inline const Aws::String& GetKey() const{ return m_key; }
478 
482  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
483 
487  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
488 
492  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
493 
497  inline PutObjectRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
498 
502  inline PutObjectRequest& WithKey(Aws::String&& value) { SetKey(value); return *this;}
503 
507  inline PutObjectRequest& WithKey(const char* value) { SetKey(value); return *this;}
508 
512  inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
513 
517  inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
518 
522  inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = value; }
523 
527  inline PutObjectRequest& WithMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetMetadata(value); return *this;}
528 
532  inline PutObjectRequest& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(value); return *this;}
533 
537  inline PutObjectRequest& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
538 
542  inline PutObjectRequest& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
543 
547  inline PutObjectRequest& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
548 
552  inline PutObjectRequest& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
553 
557  inline PutObjectRequest& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
558 
562  inline PutObjectRequest& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
563 
567  inline PutObjectRequest& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata[key] = value; return *this; }
568 
573  inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
574 
579  inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
580 
585  inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
586 
591  inline PutObjectRequest& WithServerSideEncryption(const ServerSideEncryption& value) { SetServerSideEncryption(value); return *this;}
592 
597  inline PutObjectRequest& WithServerSideEncryption(ServerSideEncryption&& value) { SetServerSideEncryption(value); return *this;}
598 
602  inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
603 
607  inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
608 
612  inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
613 
617  inline PutObjectRequest& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
618 
622  inline PutObjectRequest& WithStorageClass(StorageClass&& value) { SetStorageClass(value); return *this;}
623 
629  inline const Aws::String& GetWebsiteRedirectLocation() const{ return m_websiteRedirectLocation; }
630 
636  inline void SetWebsiteRedirectLocation(const Aws::String& value) { m_websiteRedirectLocationHasBeenSet = true; m_websiteRedirectLocation = value; }
637 
643  inline void SetWebsiteRedirectLocation(Aws::String&& value) { m_websiteRedirectLocationHasBeenSet = true; m_websiteRedirectLocation = value; }
644 
650  inline void SetWebsiteRedirectLocation(const char* value) { m_websiteRedirectLocationHasBeenSet = true; m_websiteRedirectLocation.assign(value); }
651 
657  inline PutObjectRequest& WithWebsiteRedirectLocation(const Aws::String& value) { SetWebsiteRedirectLocation(value); return *this;}
658 
664  inline PutObjectRequest& WithWebsiteRedirectLocation(Aws::String&& value) { SetWebsiteRedirectLocation(value); return *this;}
665 
671  inline PutObjectRequest& WithWebsiteRedirectLocation(const char* value) { SetWebsiteRedirectLocation(value); return *this;}
672 
676  inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
677 
681  inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = value; }
682 
686  inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = value; }
687 
691  inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm.assign(value); }
692 
696  inline PutObjectRequest& WithSSECustomerAlgorithm(const Aws::String& value) { SetSSECustomerAlgorithm(value); return *this;}
697 
701  inline PutObjectRequest& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(value); return *this;}
702 
706  inline PutObjectRequest& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
707 
715  inline const Aws::String& GetSSECustomerKey() const{ return m_sSECustomerKey; }
716 
724  inline void SetSSECustomerKey(const Aws::String& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = value; }
725 
733  inline void SetSSECustomerKey(Aws::String&& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = value; }
734 
742  inline void SetSSECustomerKey(const char* value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey.assign(value); }
743 
751  inline PutObjectRequest& WithSSECustomerKey(const Aws::String& value) { SetSSECustomerKey(value); return *this;}
752 
760  inline PutObjectRequest& WithSSECustomerKey(Aws::String&& value) { SetSSECustomerKey(value); return *this;}
761 
769  inline PutObjectRequest& WithSSECustomerKey(const char* value) { SetSSECustomerKey(value); return *this;}
770 
776  inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
777 
783  inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = value; }
784 
790  inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = value; }
791 
797  inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5.assign(value); }
798 
804  inline PutObjectRequest& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
805 
811  inline PutObjectRequest& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(value); return *this;}
812 
818  inline PutObjectRequest& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
819 
827  inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
828 
836  inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = value; }
837 
845  inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = value; }
846 
854  inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId.assign(value); }
855 
863  inline PutObjectRequest& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
864 
872  inline PutObjectRequest& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(value); return *this;}
873 
881  inline PutObjectRequest& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
882 
883 
884  inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
885 
886 
887  inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
888 
889 
890  inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
891 
892 
893  inline PutObjectRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
894 
895 
896  inline PutObjectRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(value); return *this;}
897 
898  private:
899  ObjectCannedACL m_aCL;
900  bool m_aCLHasBeenSet;
901  Aws::String m_bucket;
902  bool m_bucketHasBeenSet;
903  Aws::String m_cacheControl;
904  bool m_cacheControlHasBeenSet;
905  Aws::String m_contentDisposition;
906  bool m_contentDispositionHasBeenSet;
907  Aws::String m_contentEncoding;
908  bool m_contentEncodingHasBeenSet;
909  Aws::String m_contentLanguage;
910  bool m_contentLanguageHasBeenSet;
911  long long m_contentLength;
912  bool m_contentLengthHasBeenSet;
913  Aws::String m_contentMD5;
914  bool m_contentMD5HasBeenSet;
915  Aws::Utils::DateTime m_expires;
916  bool m_expiresHasBeenSet;
917  Aws::String m_grantFullControl;
918  bool m_grantFullControlHasBeenSet;
919  Aws::String m_grantRead;
920  bool m_grantReadHasBeenSet;
921  Aws::String m_grantReadACP;
922  bool m_grantReadACPHasBeenSet;
923  Aws::String m_grantWriteACP;
924  bool m_grantWriteACPHasBeenSet;
925  Aws::String m_key;
926  bool m_keyHasBeenSet;
928  bool m_metadataHasBeenSet;
929  ServerSideEncryption m_serverSideEncryption;
930  bool m_serverSideEncryptionHasBeenSet;
931  StorageClass m_storageClass;
932  bool m_storageClassHasBeenSet;
933  Aws::String m_websiteRedirectLocation;
934  bool m_websiteRedirectLocationHasBeenSet;
935  Aws::String m_sSECustomerAlgorithm;
936  bool m_sSECustomerAlgorithmHasBeenSet;
937  Aws::String m_sSECustomerKey;
938  bool m_sSECustomerKeyHasBeenSet;
939  Aws::String m_sSECustomerKeyMD5;
940  bool m_sSECustomerKeyMD5HasBeenSet;
941  Aws::String m_sSEKMSKeyId;
942  bool m_sSEKMSKeyIdHasBeenSet;
943  RequestPayer m_requestPayer;
944  bool m_requestPayerHasBeenSet;
945  };
946 
947 } // namespace Model
948 } // namespace S3
949 } // namespace Aws
void SetServerSideEncryption(const ServerSideEncryption &value)
PutObjectRequest & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
PutObjectRequest & WithServerSideEncryption(const ServerSideEncryption &value)
PutObjectRequest & WithContentMD5(Aws::String &&value)
PutObjectRequest & WithWebsiteRedirectLocation(const char *value)
void SetWebsiteRedirectLocation(const char *value)
PutObjectRequest & WithGrantWriteACP(const char *value)
PutObjectRequest & WithSSECustomerKey(Aws::String &&value)
PutObjectRequest & WithExpires(const Aws::Utils::DateTime &value)
const Aws::String & GetGrantReadACP() const
void SetContentLength(long long value)
const Aws::String & GetBucket() const
void SetSSECustomerKeyMD5(const char *value)
void SetBucket(Aws::String &&value)
PutObjectRequest & WithWebsiteRedirectLocation(const Aws::String &value)
const Aws::String & GetWebsiteRedirectLocation() const
PutObjectRequest & WithGrantWriteACP(const Aws::String &value)
void SetRequestPayer(const RequestPayer &value)
void SetSSEKMSKeyId(const char *value)
void SetACL(const ObjectCannedACL &value)
void SetACL(ObjectCannedACL &&value)
void SetGrantWriteACP(const Aws::String &value)
void SetContentEncoding(const char *value)
void SetKey(const char *value)
PutObjectRequest & WithStorageClass(StorageClass &&value)
PutObjectRequest & WithKey(const Aws::String &value)
void SetSSECustomerAlgorithm(const Aws::String &value)
void SetGrantWriteACP(Aws::String &&value)
PutObjectRequest & WithCacheControl(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetGrantReadACP(Aws::String &&value)
void SetSSECustomerKey(Aws::String &&value)
void SetBucket(const Aws::String &value)
void SetContentEncoding(Aws::String &&value)
PutObjectRequest & WithContentEncoding(const char *value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
const Aws::String & GetContentDisposition() const
void SetWebsiteRedirectLocation(const Aws::String &value)
PutObjectRequest & WithCacheControl(Aws::String &&value)
PutObjectRequest & WithExpires(Aws::Utils::DateTime &&value)
PutObjectRequest & WithSSEKMSKeyId(const char *value)
PutObjectRequest & WithCacheControl(const Aws::String &value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
PutObjectRequest & WithContentLength(long long value)
void SetCacheControl(const Aws::String &value)
void SetGrantRead(const Aws::String &value)
PutObjectRequest & AddMetadata(Aws::String &&key, const Aws::String &value)
void SetKey(Aws::String &&value)
PutObjectRequest & AddMetadata(const Aws::String &key, Aws::String &&value)
PutObjectRequest & WithBucket(const char *value)
const Aws::String & GetGrantWriteACP() const
void SetContentLanguage(Aws::String &&value)
void SetSSECustomerAlgorithm(Aws::String &&value)
PutObjectRequest & AddMetadata(const char *key, Aws::String &&value)
void SetGrantFullControl(const char *value)
PutObjectRequest & WithGrantRead(const char *value)
void SetContentMD5(const char *value)
PutObjectRequest & WithContentEncoding(Aws::String &&value)
PutObjectRequest & WithSSEKMSKeyId(const Aws::String &value)
PutObjectRequest & WithGrantReadACP(Aws::String &&value)
void SetWebsiteRedirectLocation(Aws::String &&value)
void SetSSECustomerKey(const char *value)
void SetContentLanguage(const Aws::String &value)
const Aws::String & GetKey() const
const Aws::String & GetGrantRead() const
PutObjectRequest & WithSSECustomerKeyMD5(Aws::String &&value)
void SetRequestPayer(RequestPayer &&value)
PutObjectRequest & WithGrantFullControl(Aws::String &&value)
PutObjectRequest & WithGrantRead(const Aws::String &value)
PutObjectRequest & WithContentDisposition(const Aws::String &value)
void SetCacheControl(Aws::String &&value)
PutObjectRequest & WithContentMD5(const char *value)
void SetGrantWriteACP(const char *value)
void SetExpires(Aws::Utils::DateTime &&value)
void SetContentDisposition(Aws::String &&value)
PutObjectRequest & WithSSECustomerAlgorithm(Aws::String &&value)
void SetContentMD5(const Aws::String &value)
PutObjectRequest & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
const Aws::String & GetSSECustomerKey() const
PutObjectRequest & AddMetadata(Aws::String &&key, Aws::String &&value)
const Aws::String & GetCacheControl() const
PutObjectRequest & WithSSECustomerKeyMD5(const Aws::String &value)
const RequestPayer & GetRequestPayer() const
const Aws::String & GetSSEKMSKeyId() const
PutObjectRequest & WithRequestPayer(RequestPayer &&value)
const StorageClass & GetStorageClass() const
PutObjectRequest & WithGrantFullControl(const Aws::String &value)
PutObjectRequest & WithBucket(const Aws::String &value)
PutObjectRequest & AddMetadata(const char *key, const char *value)
PutObjectRequest & WithSSECustomerKeyMD5(const char *value)
void SetGrantRead(Aws::String &&value)
void SetSSECustomerKey(const Aws::String &value)
void SetContentEncoding(const Aws::String &value)
const Aws::String & GetSSECustomerAlgorithm() const
PutObjectRequest & WithKey(const char *value)
void SetContentMD5(Aws::String &&value)
void SetGrantFullControl(const Aws::String &value)
void SetBucket(const char *value)
PutObjectRequest & WithACL(ObjectCannedACL &&value)
PutObjectRequest & WithContentEncoding(const Aws::String &value)
PutObjectRequest & WithStorageClass(const StorageClass &value)
void SetGrantReadACP(const Aws::String &value)
PutObjectRequest & WithContentLanguage(const char *value)
void SetSSEKMSKeyId(const Aws::String &value)
void SetSSEKMSKeyId(Aws::String &&value)
const Aws::String & GetContentMD5() const
void SetContentDisposition(const char *value)
PutObjectRequest & WithServerSideEncryption(ServerSideEncryption &&value)
PutObjectRequest & WithGrantWriteACP(Aws::String &&value)
void SetContentLanguage(const char *value)
PutObjectRequest & WithGrantFullControl(const char *value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
void SetContentDisposition(const Aws::String &value)
const ServerSideEncryption & GetServerSideEncryption() const
void SetGrantReadACP(const char *value)
const Aws::String & GetContentEncoding() const
PutObjectRequest & WithBucket(Aws::String &&value)
void SetCacheControl(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const ObjectCannedACL & GetACL() const
PutObjectRequest & AddMetadata(const Aws::String &key, const Aws::String &value)
PutObjectRequest & WithContentDisposition(Aws::String &&value)
PutObjectRequest & WithGrantReadACP(const Aws::String &value)
PutObjectRequest & WithACL(const ObjectCannedACL &value)
PutObjectRequest & WithSSECustomerAlgorithm(const char *value)
PutObjectRequest & WithWebsiteRedirectLocation(Aws::String &&value)
void SetKey(const Aws::String &value)
PutObjectRequest & WithGrantRead(Aws::String &&value)
PutObjectRequest & WithContentLanguage(Aws::String &&value)
void SetExpires(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetExpires() const
PutObjectRequest & AddMetadata(Aws::String &&key, const char *value)
void SetStorageClass(const StorageClass &value)
PutObjectRequest & WithKey(Aws::String &&value)
void SetSSECustomerKeyMD5(Aws::String &&value)
PutObjectRequest & WithGrantReadACP(const char *value)
void SetSSECustomerAlgorithm(const char *value)
PutObjectRequest & WithSSECustomerKey(const char *value)
void SetSSECustomerKeyMD5(const Aws::String &value)
PutObjectRequest & WithSSEKMSKeyId(Aws::String &&value)
PutObjectRequest & WithContentDisposition(const char *value)
void SetStorageClass(StorageClass &&value)
PutObjectRequest & WithSSECustomerAlgorithm(const Aws::String &value)
const Aws::String & GetSSECustomerKeyMD5() const
PutObjectRequest & WithContentMD5(const Aws::String &value)
void SetGrantFullControl(Aws::String &&value)
PutObjectRequest & WithContentLanguage(const Aws::String &value)
void SetGrantRead(const char *value)
const Aws::String & GetGrantFullControl() const
JSON (JavaScript Object Notation).
PutObjectRequest & WithRequestPayer(const RequestPayer &value)
const Aws::String & GetContentLanguage() const
PutObjectRequest & WithSSECustomerKey(const Aws::String &value)
void SetServerSideEncryption(ServerSideEncryption &&value)