AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutObjectRequest.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/Array.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/s3/model/ChecksumAlgorithm.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/s3/model/ServerSideEncryption.h>
16#include <aws/s3/model/StorageClass.h>
17#include <aws/s3/model/RequestPayer.h>
18#include <aws/s3/model/ObjectLockMode.h>
19#include <aws/s3/model/ObjectLockLegalHoldStatus.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Http
25{
26 class URI;
27} //namespace Http
28namespace S3
29{
30namespace Model
31{
32
36 {
37 public:
38 AWS_S3_API PutObjectRequest() = default;
39
40 // Service request name is the Operation name which will send this request out,
41 // each operation should has unique request name, so that we can get operation's name from this request.
42 // Note: this is not true for response, multiple operations may have the same response name,
43 // so we can not get operation's name from response.
44 inline virtual const char* GetServiceRequestName() const override { return "PutObject"; }
45
46 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
47
49
50 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
51 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
55 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
56
58
85 inline ObjectCannedACL GetACL() const { return m_aCL; }
86 inline bool ACLHasBeenSet() const { return m_aCLHasBeenSet; }
87 inline void SetACL(ObjectCannedACL value) { m_aCLHasBeenSet = true; m_aCL = value; }
88 inline PutObjectRequest& WithACL(ObjectCannedACL value) { SetACL(value); return *this;}
90
92
127 inline const Aws::String& GetBucket() const { return m_bucket; }
128 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
129 template<typename BucketT = Aws::String>
130 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
131 template<typename BucketT = Aws::String>
132 PutObjectRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
134
136
141 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
142 inline bool CacheControlHasBeenSet() const { return m_cacheControlHasBeenSet; }
143 template<typename CacheControlT = Aws::String>
144 void SetCacheControl(CacheControlT&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = std::forward<CacheControlT>(value); }
145 template<typename CacheControlT = Aws::String>
146 PutObjectRequest& WithCacheControl(CacheControlT&& value) { SetCacheControl(std::forward<CacheControlT>(value)); return *this;}
148
150
155 inline const Aws::String& GetContentDisposition() const { return m_contentDisposition; }
156 inline bool ContentDispositionHasBeenSet() const { return m_contentDispositionHasBeenSet; }
157 template<typename ContentDispositionT = Aws::String>
158 void SetContentDisposition(ContentDispositionT&& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = std::forward<ContentDispositionT>(value); }
159 template<typename ContentDispositionT = Aws::String>
160 PutObjectRequest& WithContentDisposition(ContentDispositionT&& value) { SetContentDisposition(std::forward<ContentDispositionT>(value)); return *this;}
162
164
170 inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
171 inline bool ContentEncodingHasBeenSet() const { return m_contentEncodingHasBeenSet; }
172 template<typename ContentEncodingT = Aws::String>
173 void SetContentEncoding(ContentEncodingT&& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = std::forward<ContentEncodingT>(value); }
174 template<typename ContentEncodingT = Aws::String>
175 PutObjectRequest& WithContentEncoding(ContentEncodingT&& value) { SetContentEncoding(std::forward<ContentEncodingT>(value)); return *this;}
177
179
182 inline const Aws::String& GetContentLanguage() const { return m_contentLanguage; }
183 inline bool ContentLanguageHasBeenSet() const { return m_contentLanguageHasBeenSet; }
184 template<typename ContentLanguageT = Aws::String>
185 void SetContentLanguage(ContentLanguageT&& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = std::forward<ContentLanguageT>(value); }
186 template<typename ContentLanguageT = Aws::String>
187 PutObjectRequest& WithContentLanguage(ContentLanguageT&& value) { SetContentLanguage(std::forward<ContentLanguageT>(value)); return *this;}
189
191
196 inline long long GetContentLength() const { return m_contentLength; }
197 inline bool ContentLengthHasBeenSet() const { return m_contentLengthHasBeenSet; }
198 inline void SetContentLength(long long value) { m_contentLengthHasBeenSet = true; m_contentLength = value; }
199 inline PutObjectRequest& WithContentLength(long long value) { SetContentLength(value); return *this;}
201
203
220 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
221 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
222 template<typename ContentMD5T = Aws::String>
223 void SetContentMD5(ContentMD5T&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::forward<ContentMD5T>(value); }
224 template<typename ContentMD5T = Aws::String>
225 PutObjectRequest& WithContentMD5(ContentMD5T&& value) { SetContentMD5(std::forward<ContentMD5T>(value)); return *this;}
227
229
257 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
258 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
259 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
262
264
272 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
273 inline bool ChecksumCRC32HasBeenSet() const { return m_checksumCRC32HasBeenSet; }
274 template<typename ChecksumCRC32T = Aws::String>
275 void SetChecksumCRC32(ChecksumCRC32T&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::forward<ChecksumCRC32T>(value); SetChecksumAlgorithm(ChecksumAlgorithm::CRC32); }
276 inline void SetChecksumCRC32(const char* value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32.assign(value); SetChecksumAlgorithm(ChecksumAlgorithm::CRC32); }
277 template<typename ChecksumCRC32T = Aws::String>
278 PutObjectRequest& WithChecksumCRC32(ChecksumCRC32T&& value) { SetChecksumCRC32(std::forward<ChecksumCRC32T>(value)); return *this;}
280
282
290 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
291 inline bool ChecksumCRC32CHasBeenSet() const { return m_checksumCRC32CHasBeenSet; }
292 template<typename ChecksumCRC32CT = Aws::String>
293 void SetChecksumCRC32C(ChecksumCRC32CT&& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value); SetChecksumAlgorithm(ChecksumAlgorithm::CRC32C); }
294 inline void SetChecksumCRC32C(const char* value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C.assign(value); SetChecksumAlgorithm(ChecksumAlgorithm::CRC32C); }
295 template<typename ChecksumCRC32CT = Aws::String>
296 PutObjectRequest& WithChecksumCRC32C(ChecksumCRC32CT&& value) { SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value)); return *this;}
298
300
309 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
310 inline bool ChecksumCRC64NVMEHasBeenSet() const { return m_checksumCRC64NVMEHasBeenSet; }
311 template<typename ChecksumCRC64NVMET = Aws::String>
312 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) { m_checksumCRC64NVMEHasBeenSet = true; m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value); }
313 template<typename ChecksumCRC64NVMET = Aws::String>
314 PutObjectRequest& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) { SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value)); return *this;}
316
318
326 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
327 inline bool ChecksumSHA1HasBeenSet() const { return m_checksumSHA1HasBeenSet; }
328 template<typename ChecksumSHA1T = Aws::String>
329 void SetChecksumSHA1(ChecksumSHA1T&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::forward<ChecksumSHA1T>(value); SetChecksumAlgorithm(ChecksumAlgorithm::SHA1); }
330 inline void SetChecksumSHA1(const char* value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1.assign(value); SetChecksumAlgorithm(ChecksumAlgorithm::SHA1); }
331 template<typename ChecksumSHA1T = Aws::String>
332 PutObjectRequest& WithChecksumSHA1(ChecksumSHA1T&& value) { SetChecksumSHA1(std::forward<ChecksumSHA1T>(value)); return *this;}
334
336
344 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
345 inline bool ChecksumSHA256HasBeenSet() const { return m_checksumSHA256HasBeenSet; }
346 template<typename ChecksumSHA256T = Aws::String>
347 void SetChecksumSHA256(ChecksumSHA256T&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::forward<ChecksumSHA256T>(value); SetChecksumAlgorithm(ChecksumAlgorithm::SHA256); }
348 inline void SetChecksumSHA256(const char* value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256.assign(value); SetChecksumAlgorithm(ChecksumAlgorithm::SHA256); }
349 template<typename ChecksumSHA256T = Aws::String>
350 PutObjectRequest& WithChecksumSHA256(ChecksumSHA256T&& value) { SetChecksumSHA256(std::forward<ChecksumSHA256T>(value)); return *this;}
352
354
359 inline const Aws::Utils::DateTime& GetExpires() const { return m_expires; }
360 inline bool ExpiresHasBeenSet() const { return m_expiresHasBeenSet; }
361 template<typename ExpiresT = Aws::Utils::DateTime>
362 void SetExpires(ExpiresT&& value) { m_expiresHasBeenSet = true; m_expires = std::forward<ExpiresT>(value); }
363 template<typename ExpiresT = Aws::Utils::DateTime>
364 PutObjectRequest& WithExpires(ExpiresT&& value) { SetExpires(std::forward<ExpiresT>(value)); return *this;}
366
368
380 inline const Aws::String& GetIfMatch() const { return m_ifMatch; }
381 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
382 template<typename IfMatchT = Aws::String>
383 void SetIfMatch(IfMatchT&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::forward<IfMatchT>(value); }
384 template<typename IfMatchT = Aws::String>
385 PutObjectRequest& WithIfMatch(IfMatchT&& value) { SetIfMatch(std::forward<IfMatchT>(value)); return *this;}
387
389
400 inline const Aws::String& GetIfNoneMatch() const { return m_ifNoneMatch; }
401 inline bool IfNoneMatchHasBeenSet() const { return m_ifNoneMatchHasBeenSet; }
402 template<typename IfNoneMatchT = Aws::String>
403 void SetIfNoneMatch(IfNoneMatchT&& value) { m_ifNoneMatchHasBeenSet = true; m_ifNoneMatch = std::forward<IfNoneMatchT>(value); }
404 template<typename IfNoneMatchT = Aws::String>
405 PutObjectRequest& WithIfNoneMatch(IfNoneMatchT&& value) { SetIfNoneMatch(std::forward<IfNoneMatchT>(value)); return *this;}
407
409
415 inline const Aws::String& GetGrantFullControl() const { return m_grantFullControl; }
416 inline bool GrantFullControlHasBeenSet() const { return m_grantFullControlHasBeenSet; }
417 template<typename GrantFullControlT = Aws::String>
418 void SetGrantFullControl(GrantFullControlT&& value) { m_grantFullControlHasBeenSet = true; m_grantFullControl = std::forward<GrantFullControlT>(value); }
419 template<typename GrantFullControlT = Aws::String>
420 PutObjectRequest& WithGrantFullControl(GrantFullControlT&& value) { SetGrantFullControl(std::forward<GrantFullControlT>(value)); return *this;}
422
424
430 inline const Aws::String& GetGrantRead() const { return m_grantRead; }
431 inline bool GrantReadHasBeenSet() const { return m_grantReadHasBeenSet; }
432 template<typename GrantReadT = Aws::String>
433 void SetGrantRead(GrantReadT&& value) { m_grantReadHasBeenSet = true; m_grantRead = std::forward<GrantReadT>(value); }
434 template<typename GrantReadT = Aws::String>
435 PutObjectRequest& WithGrantRead(GrantReadT&& value) { SetGrantRead(std::forward<GrantReadT>(value)); return *this;}
437
439
445 inline const Aws::String& GetGrantReadACP() const { return m_grantReadACP; }
446 inline bool GrantReadACPHasBeenSet() const { return m_grantReadACPHasBeenSet; }
447 template<typename GrantReadACPT = Aws::String>
448 void SetGrantReadACP(GrantReadACPT&& value) { m_grantReadACPHasBeenSet = true; m_grantReadACP = std::forward<GrantReadACPT>(value); }
449 template<typename GrantReadACPT = Aws::String>
450 PutObjectRequest& WithGrantReadACP(GrantReadACPT&& value) { SetGrantReadACP(std::forward<GrantReadACPT>(value)); return *this;}
452
454
460 inline const Aws::String& GetGrantWriteACP() const { return m_grantWriteACP; }
461 inline bool GrantWriteACPHasBeenSet() const { return m_grantWriteACPHasBeenSet; }
462 template<typename GrantWriteACPT = Aws::String>
463 void SetGrantWriteACP(GrantWriteACPT&& value) { m_grantWriteACPHasBeenSet = true; m_grantWriteACP = std::forward<GrantWriteACPT>(value); }
464 template<typename GrantWriteACPT = Aws::String>
465 PutObjectRequest& WithGrantWriteACP(GrantWriteACPT&& value) { SetGrantWriteACP(std::forward<GrantWriteACPT>(value)); return *this;}
467
469
472 inline const Aws::String& GetKey() const { return m_key; }
473 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
474 template<typename KeyT = Aws::String>
475 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
476 template<typename KeyT = Aws::String>
477 PutObjectRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
479
481
488 inline long long GetWriteOffsetBytes() const { return m_writeOffsetBytes; }
489 inline bool WriteOffsetBytesHasBeenSet() const { return m_writeOffsetBytesHasBeenSet; }
490 inline void SetWriteOffsetBytes(long long value) { m_writeOffsetBytesHasBeenSet = true; m_writeOffsetBytes = value; }
491 inline PutObjectRequest& WithWriteOffsetBytes(long long value) { SetWriteOffsetBytes(value); return *this;}
493
495
498 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
499 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
500 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
501 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
502 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
503 PutObjectRequest& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
504 template<typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
505 PutObjectRequest& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
506 m_metadataHasBeenSet = true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value)); return *this;
507 }
509
511
573 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
574 inline bool ServerSideEncryptionHasBeenSet() const { return m_serverSideEncryptionHasBeenSet; }
575 inline void SetServerSideEncryption(ServerSideEncryption value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
578
580
593 inline StorageClass GetStorageClass() const { return m_storageClass; }
594 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
595 inline void SetStorageClass(StorageClass value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
596 inline PutObjectRequest& WithStorageClass(StorageClass value) { SetStorageClass(value); return *this;}
598
600
619 inline const Aws::String& GetWebsiteRedirectLocation() const { return m_websiteRedirectLocation; }
620 inline bool WebsiteRedirectLocationHasBeenSet() const { return m_websiteRedirectLocationHasBeenSet; }
621 template<typename WebsiteRedirectLocationT = Aws::String>
622 void SetWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) { m_websiteRedirectLocationHasBeenSet = true; m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value); }
623 template<typename WebsiteRedirectLocationT = Aws::String>
624 PutObjectRequest& WithWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) { SetWebsiteRedirectLocation(std::forward<WebsiteRedirectLocationT>(value)); return *this;}
626
628
633 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
634 inline bool SSECustomerAlgorithmHasBeenSet() const { return m_sSECustomerAlgorithmHasBeenSet; }
635 template<typename SSECustomerAlgorithmT = Aws::String>
636 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value); }
637 template<typename SSECustomerAlgorithmT = Aws::String>
638 PutObjectRequest& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value)); return *this;}
640
642
650 inline const Aws::String& GetSSECustomerKey() const { return m_sSECustomerKey; }
651 inline bool SSECustomerKeyHasBeenSet() const { return m_sSECustomerKeyHasBeenSet; }
652 template<typename SSECustomerKeyT = Aws::String>
653 void SetSSECustomerKey(SSECustomerKeyT&& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = std::forward<SSECustomerKeyT>(value); }
654 template<typename SSECustomerKeyT = Aws::String>
655 PutObjectRequest& WithSSECustomerKey(SSECustomerKeyT&& value) { SetSSECustomerKey(std::forward<SSECustomerKeyT>(value)); return *this;}
657
659
665 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
666 inline bool SSECustomerKeyMD5HasBeenSet() const { return m_sSECustomerKeyMD5HasBeenSet; }
667 template<typename SSECustomerKeyMD5T = Aws::String>
668 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value); }
669 template<typename SSECustomerKeyMD5T = Aws::String>
670 PutObjectRequest& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value)); return *this;}
672
674
699 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
700 inline bool SSEKMSKeyIdHasBeenSet() const { return m_sSEKMSKeyIdHasBeenSet; }
701 template<typename SSEKMSKeyIdT = Aws::String>
702 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value); }
703 template<typename SSEKMSKeyIdT = Aws::String>
704 PutObjectRequest& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) { SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value)); return *this;}
706
708
724 inline const Aws::String& GetSSEKMSEncryptionContext() const { return m_sSEKMSEncryptionContext; }
725 inline bool SSEKMSEncryptionContextHasBeenSet() const { return m_sSEKMSEncryptionContextHasBeenSet; }
726 template<typename SSEKMSEncryptionContextT = Aws::String>
727 void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) { m_sSEKMSEncryptionContextHasBeenSet = true; m_sSEKMSEncryptionContext = std::forward<SSEKMSEncryptionContextT>(value); }
728 template<typename SSEKMSEncryptionContextT = Aws::String>
729 PutObjectRequest& WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) { SetSSEKMSEncryptionContext(std::forward<SSEKMSEncryptionContextT>(value)); return *this;}
731
733
755 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
756 inline bool BucketKeyEnabledHasBeenSet() const { return m_bucketKeyEnabledHasBeenSet; }
757 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabledHasBeenSet = true; m_bucketKeyEnabled = value; }
758 inline PutObjectRequest& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
760
762
763 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
764 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
765 inline void SetRequestPayer(RequestPayer value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
766 inline PutObjectRequest& WithRequestPayer(RequestPayer value) { SetRequestPayer(value); return *this;}
768
770
775 inline const Aws::String& GetTagging() const { return m_tagging; }
776 inline bool TaggingHasBeenSet() const { return m_taggingHasBeenSet; }
777 template<typename TaggingT = Aws::String>
778 void SetTagging(TaggingT&& value) { m_taggingHasBeenSet = true; m_tagging = std::forward<TaggingT>(value); }
779 template<typename TaggingT = Aws::String>
780 PutObjectRequest& WithTagging(TaggingT&& value) { SetTagging(std::forward<TaggingT>(value)); return *this;}
782
784
788 inline ObjectLockMode GetObjectLockMode() const { return m_objectLockMode; }
789 inline bool ObjectLockModeHasBeenSet() const { return m_objectLockModeHasBeenSet; }
790 inline void SetObjectLockMode(ObjectLockMode value) { m_objectLockModeHasBeenSet = true; m_objectLockMode = value; }
793
795
800 inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const { return m_objectLockRetainUntilDate; }
801 inline bool ObjectLockRetainUntilDateHasBeenSet() const { return m_objectLockRetainUntilDateHasBeenSet; }
802 template<typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
803 void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) { m_objectLockRetainUntilDateHasBeenSet = true; m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value); }
804 template<typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
805 PutObjectRequest& WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) { SetObjectLockRetainUntilDate(std::forward<ObjectLockRetainUntilDateT>(value)); return *this;}
807
809
816 inline ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const { return m_objectLockLegalHoldStatus; }
817 inline bool ObjectLockLegalHoldStatusHasBeenSet() const { return m_objectLockLegalHoldStatusHasBeenSet; }
818 inline void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value) { m_objectLockLegalHoldStatusHasBeenSet = true; m_objectLockLegalHoldStatus = value; }
821
823
828 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
829 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
830 template<typename ExpectedBucketOwnerT = Aws::String>
831 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
832 template<typename ExpectedBucketOwnerT = Aws::String>
833 PutObjectRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
835
837
838 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
839 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
840 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
841 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
842 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
843 PutObjectRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
844 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
845 PutObjectRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
846 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
847 }
849 private:
850
852 bool m_aCLHasBeenSet = false;
853
854
855 Aws::String m_bucket;
856 bool m_bucketHasBeenSet = false;
857
858 Aws::String m_cacheControl;
859 bool m_cacheControlHasBeenSet = false;
860
861 Aws::String m_contentDisposition;
862 bool m_contentDispositionHasBeenSet = false;
863
864 Aws::String m_contentEncoding;
865 bool m_contentEncodingHasBeenSet = false;
866
867 Aws::String m_contentLanguage;
868 bool m_contentLanguageHasBeenSet = false;
869
870 long long m_contentLength{0};
871 bool m_contentLengthHasBeenSet = false;
872
873 Aws::String m_contentMD5;
874 bool m_contentMD5HasBeenSet = false;
875
877 bool m_checksumAlgorithmHasBeenSet = false;
878
879 Aws::String m_checksumCRC32;
880 bool m_checksumCRC32HasBeenSet = false;
881
882 Aws::String m_checksumCRC32C;
883 bool m_checksumCRC32CHasBeenSet = false;
884
885 Aws::String m_checksumCRC64NVME;
886 bool m_checksumCRC64NVMEHasBeenSet = false;
887
888 Aws::String m_checksumSHA1;
889 bool m_checksumSHA1HasBeenSet = false;
890
891 Aws::String m_checksumSHA256;
892 bool m_checksumSHA256HasBeenSet = false;
893
894 Aws::Utils::DateTime m_expires{};
895 bool m_expiresHasBeenSet = false;
896
897 Aws::String m_ifMatch;
898 bool m_ifMatchHasBeenSet = false;
899
900 Aws::String m_ifNoneMatch;
901 bool m_ifNoneMatchHasBeenSet = false;
902
903 Aws::String m_grantFullControl;
904 bool m_grantFullControlHasBeenSet = false;
905
906 Aws::String m_grantRead;
907 bool m_grantReadHasBeenSet = false;
908
909 Aws::String m_grantReadACP;
910 bool m_grantReadACPHasBeenSet = false;
911
912 Aws::String m_grantWriteACP;
913 bool m_grantWriteACPHasBeenSet = false;
914
915 Aws::String m_key;
916 bool m_keyHasBeenSet = false;
917
918 long long m_writeOffsetBytes{0};
919 bool m_writeOffsetBytesHasBeenSet = false;
920
922 bool m_metadataHasBeenSet = false;
923
925 bool m_serverSideEncryptionHasBeenSet = false;
926
927 StorageClass m_storageClass{StorageClass::NOT_SET};
928 bool m_storageClassHasBeenSet = false;
929
930 Aws::String m_websiteRedirectLocation;
931 bool m_websiteRedirectLocationHasBeenSet = false;
932
933 Aws::String m_sSECustomerAlgorithm;
934 bool m_sSECustomerAlgorithmHasBeenSet = false;
935
936 Aws::String m_sSECustomerKey;
937 bool m_sSECustomerKeyHasBeenSet = false;
938
939 Aws::String m_sSECustomerKeyMD5;
940 bool m_sSECustomerKeyMD5HasBeenSet = false;
941
942 Aws::String m_sSEKMSKeyId;
943 bool m_sSEKMSKeyIdHasBeenSet = false;
944
945 Aws::String m_sSEKMSEncryptionContext;
946 bool m_sSEKMSEncryptionContextHasBeenSet = false;
947
948 bool m_bucketKeyEnabled{false};
949 bool m_bucketKeyEnabledHasBeenSet = false;
950
951 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
952 bool m_requestPayerHasBeenSet = false;
953
954 Aws::String m_tagging;
955 bool m_taggingHasBeenSet = false;
956
957 ObjectLockMode m_objectLockMode{ObjectLockMode::NOT_SET};
958 bool m_objectLockModeHasBeenSet = false;
959
960 Aws::Utils::DateTime m_objectLockRetainUntilDate{};
961 bool m_objectLockRetainUntilDateHasBeenSet = false;
962
964 bool m_objectLockLegalHoldStatusHasBeenSet = false;
965
966 Aws::String m_expectedBucketOwner;
967 bool m_expectedBucketOwnerHasBeenSet = false;
968
969 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
970 bool m_customizedAccessLogTagHasBeenSet = false;
971 };
972
973} // namespace Model
974} // namespace S3
975} // namespace Aws
Aws::Vector< Aws::Endpoint::EndpointParameter > EndpointParameters
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
PutObjectRequest & WithGrantFullControl(GrantFullControlT &&value)
const Aws::String & GetSSEKMSKeyId() const
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
void SetChecksumSHA256(ChecksumSHA256T &&value)
void SetChecksumCRC32C(const char *value)
PutObjectRequest & WithGrantWriteACP(GrantWriteACPT &&value)
void SetIfMatch(IfMatchT &&value)
PutObjectRequest & WithContentDisposition(ContentDispositionT &&value)
PutObjectRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
PutObjectRequest & WithObjectLockMode(ObjectLockMode value)
PutObjectRequest & WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetIfNoneMatch(IfNoneMatchT &&value)
void SetChecksumSHA1(ChecksumSHA1T &&value)
void SetChecksumSHA1(const char *value)
const Aws::String & GetChecksumCRC32C() const
PutObjectRequest & WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
PutObjectRequest & WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
virtual const char * GetServiceRequestName() const override
PutObjectRequest & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
PutObjectRequest & WithIfMatch(IfMatchT &&value)
PutObjectRequest & WithChecksumSHA256(ChecksumSHA256T &&value)
const Aws::String & GetExpectedBucketOwner() const
const Aws::String & GetChecksumCRC64NVME() const
void SetStorageClass(StorageClass value)
void SetWriteOffsetBytes(long long value)
PutObjectRequest & WithWriteOffsetBytes(long long value)
const Aws::String & GetGrantRead() const
PutObjectRequest & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
PutObjectRequest & WithBucketKeyEnabled(bool value)
PutObjectRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
const Aws::String & GetIfNoneMatch() const
void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
void SetChecksumCRC32(ChecksumCRC32T &&value)
AWS_S3_API PutObjectRequest()=default
const Aws::String & GetContentLanguage() const
void SetSSECustomerKey(SSECustomerKeyT &&value)
void SetWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
const Aws::String & GetContentEncoding() const
PutObjectRequest & WithStorageClass(StorageClass value)
PutObjectRequest & WithACL(ObjectCannedACL value)
void SetExpires(ExpiresT &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetChecksumSHA256(const char *value)
const Aws::String & GetTagging() const
void SetCacheControl(CacheControlT &&value)
PutObjectRequest & WithGrantRead(GrantReadT &&value)
ObjectLockMode GetObjectLockMode() const
PutObjectRequest & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
void SetChecksumAlgorithm(ChecksumAlgorithm value)
void SetGrantFullControl(GrantFullControlT &&value)
void SetContentLanguage(ContentLanguageT &&value)
PutObjectRequest & WithContentLanguage(ContentLanguageT &&value)
PutObjectRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
const Aws::String & GetSSECustomerKey() const
const Aws::String & GetContentMD5() const
const Aws::String & GetSSECustomerAlgorithm() const
const Aws::String & GetGrantFullControl() const
PutObjectRequest & WithServerSideEncryption(ServerSideEncryption value)
void SetContentLength(long long value)
void SetACL(ObjectCannedACL value)
PutObjectRequest & WithBucket(BucketT &&value)
const Aws::Utils::DateTime & GetExpires() const
void SetServerSideEncryption(ServerSideEncryption value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
PutObjectRequest & WithIfNoneMatch(IfNoneMatchT &&value)
void SetContentMD5(ContentMD5T &&value)
const Aws::String & GetGrantReadACP() const
const Aws::Utils::DateTime & GetObjectLockRetainUntilDate() const
PutObjectRequest & WithWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
void SetMetadata(MetadataT &&value)
const Aws::String & GetChecksumCRC32() const
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
ServerSideEncryption GetServerSideEncryption() const
const Aws::String & GetChecksumSHA1() const
PutObjectRequest & WithKey(KeyT &&value)
PutObjectRequest & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
void SetGrantReadACP(GrantReadACPT &&value)
PutObjectRequest & WithChecksumCRC32(ChecksumCRC32T &&value)
const Aws::String & GetKey() const
const Aws::String & GetGrantWriteACP() const
const Aws::String & GetBucket() const
PutObjectRequest & WithContentEncoding(ContentEncodingT &&value)
void SetChecksumCRC32(const char *value)
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
const Aws::String & GetChecksumSHA256() const
void SetTagging(TaggingT &&value)
PutObjectRequest & WithExpires(ExpiresT &&value)
PutObjectRequest & WithSSECustomerKey(SSECustomerKeyT &&value)
const Aws::String & GetWebsiteRedirectLocation() const
PutObjectRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
const Aws::String & GetSSECustomerKeyMD5() const
PutObjectRequest & WithTagging(TaggingT &&value)
ObjectCannedACL GetACL() const
void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
void SetGrantRead(GrantReadT &&value)
PutObjectRequest & WithMetadata(MetadataT &&value)
const Aws::String & GetSSEKMSEncryptionContext() const
ChecksumAlgorithm GetChecksumAlgorithm() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetRequestPayer(RequestPayer value)
void SetObjectLockMode(ObjectLockMode value)
PutObjectRequest & WithContentMD5(ContentMD5T &&value)
void SetContentEncoding(ContentEncodingT &&value)
PutObjectRequest & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
PutObjectRequest & WithChecksumCRC32C(ChecksumCRC32CT &&value)
PutObjectRequest & WithCacheControl(CacheControlT &&value)
PutObjectRequest & WithChecksumSHA1(ChecksumSHA1T &&value)
void SetGrantWriteACP(GrantWriteACPT &&value)
const Aws::String & GetIfMatch() const
const Aws::String & GetCacheControl() const
const Aws::String & GetContentDisposition() const
void SetContentDisposition(ContentDispositionT &&value)
ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const
PutObjectRequest & WithRequestPayer(RequestPayer value)
PutObjectRequest & WithContentLength(long long value)
PutObjectRequest & WithGrantReadACP(GrantReadACPT &&value)
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