AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetObjectResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/s3/model/ChecksumType.h>
13#include <aws/s3/model/ServerSideEncryption.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/s3/model/StorageClass.h>
16#include <aws/s3/model/RequestCharged.h>
17#include <aws/s3/model/ReplicationStatus.h>
18#include <aws/s3/model/ObjectLockMode.h>
19#include <aws/s3/model/ObjectLockLegalHoldStatus.h>
20#include <utility>
21
22namespace Aws
23{
24template<typename RESULT_TYPE>
25class AmazonWebServiceResult;
26
27namespace S3
28{
29namespace Model
30{
32 {
33 public:
34 AWS_S3_API GetObjectResult() = default;
35 AWS_S3_API GetObjectResult(GetObjectResult&&) = default;
36 AWS_S3_API GetObjectResult& operator=(GetObjectResult&&) = default;
37 //we delete these because Microsoft doesn't handle move generation correctly
38 //and we therefore don't trust them to get it right here either.
41
42
45
46
47
49
52 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
53 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
54
56
58
68 inline bool GetDeleteMarker() const { return m_deleteMarker; }
69 inline void SetDeleteMarker(bool value) { m_deleteMarkerHasBeenSet = true; m_deleteMarker = value; }
70 inline GetObjectResult& WithDeleteMarker(bool value) { SetDeleteMarker(value); return *this;}
72
74
77 inline const Aws::String& GetAcceptRanges() const { return m_acceptRanges; }
78 template<typename AcceptRangesT = Aws::String>
79 void SetAcceptRanges(AcceptRangesT&& value) { m_acceptRangesHasBeenSet = true; m_acceptRanges = std::forward<AcceptRangesT>(value); }
80 template<typename AcceptRangesT = Aws::String>
81 GetObjectResult& WithAcceptRanges(AcceptRangesT&& value) { SetAcceptRanges(std::forward<AcceptRangesT>(value)); return *this;}
83
85
96 inline const Aws::String& GetExpiration() const { return m_expiration; }
97 template<typename ExpirationT = Aws::String>
98 void SetExpiration(ExpirationT&& value) { m_expirationHasBeenSet = true; m_expiration = std::forward<ExpirationT>(value); }
99 template<typename ExpirationT = Aws::String>
100 GetObjectResult& WithExpiration(ExpirationT&& value) { SetExpiration(std::forward<ExpirationT>(value)); return *this;}
102
104
112 inline const Aws::String& GetRestore() const { return m_restore; }
113 template<typename RestoreT = Aws::String>
114 void SetRestore(RestoreT&& value) { m_restoreHasBeenSet = true; m_restore = std::forward<RestoreT>(value); }
115 template<typename RestoreT = Aws::String>
116 GetObjectResult& WithRestore(RestoreT&& value) { SetRestore(std::forward<RestoreT>(value)); return *this;}
118
120
127 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
128 template<typename LastModifiedT = Aws::Utils::DateTime>
129 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
130 template<typename LastModifiedT = Aws::Utils::DateTime>
131 GetObjectResult& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
133
135
138 inline long long GetContentLength() const { return m_contentLength; }
139 inline void SetContentLength(long long value) { m_contentLengthHasBeenSet = true; m_contentLength = value; }
140 inline GetObjectResult& WithContentLength(long long value) { SetContentLength(value); return *this;}
142
144
148 inline const Aws::String& GetETag() const { return m_eTag; }
149 template<typename ETagT = Aws::String>
150 void SetETag(ETagT&& value) { m_eTagHasBeenSet = true; m_eTag = std::forward<ETagT>(value); }
151 template<typename ETagT = Aws::String>
152 GetObjectResult& WithETag(ETagT&& value) { SetETag(std::forward<ETagT>(value)); return *this;}
154
156
163 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
164 template<typename ChecksumCRC32T = Aws::String>
165 void SetChecksumCRC32(ChecksumCRC32T&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::forward<ChecksumCRC32T>(value); }
166 template<typename ChecksumCRC32T = Aws::String>
167 GetObjectResult& WithChecksumCRC32(ChecksumCRC32T&& value) { SetChecksumCRC32(std::forward<ChecksumCRC32T>(value)); return *this;}
169
171
178 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
179 template<typename ChecksumCRC32CT = Aws::String>
180 void SetChecksumCRC32C(ChecksumCRC32CT&& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value); }
181 template<typename ChecksumCRC32CT = Aws::String>
182 GetObjectResult& WithChecksumCRC32C(ChecksumCRC32CT&& value) { SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value)); return *this;}
184
186
192 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
193 template<typename ChecksumCRC64NVMET = Aws::String>
194 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) { m_checksumCRC64NVMEHasBeenSet = true; m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value); }
195 template<typename ChecksumCRC64NVMET = Aws::String>
196 GetObjectResult& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) { SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value)); return *this;}
198
200
207 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
208 template<typename ChecksumSHA1T = Aws::String>
209 void SetChecksumSHA1(ChecksumSHA1T&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::forward<ChecksumSHA1T>(value); }
210 template<typename ChecksumSHA1T = Aws::String>
211 GetObjectResult& WithChecksumSHA1(ChecksumSHA1T&& value) { SetChecksumSHA1(std::forward<ChecksumSHA1T>(value)); return *this;}
213
215
222 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
223 template<typename ChecksumSHA256T = Aws::String>
224 void SetChecksumSHA256(ChecksumSHA256T&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::forward<ChecksumSHA256T>(value); }
225 template<typename ChecksumSHA256T = Aws::String>
226 GetObjectResult& WithChecksumSHA256(ChecksumSHA256T&& value) { SetChecksumSHA256(std::forward<ChecksumSHA256T>(value)); return *this;}
228
230
239 inline ChecksumType GetChecksumType() const { return m_checksumType; }
240 inline void SetChecksumType(ChecksumType value) { m_checksumTypeHasBeenSet = true; m_checksumType = value; }
241 inline GetObjectResult& WithChecksumType(ChecksumType value) { SetChecksumType(value); return *this;}
243
245
253 inline int GetMissingMeta() const { return m_missingMeta; }
254 inline void SetMissingMeta(int value) { m_missingMetaHasBeenSet = true; m_missingMeta = value; }
255 inline GetObjectResult& WithMissingMeta(int value) { SetMissingMeta(value); return *this;}
257
259
263 inline const Aws::String& GetVersionId() const { return m_versionId; }
264 template<typename VersionIdT = Aws::String>
265 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
266 template<typename VersionIdT = Aws::String>
267 GetObjectResult& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
269
271
274 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
275 template<typename CacheControlT = Aws::String>
276 void SetCacheControl(CacheControlT&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = std::forward<CacheControlT>(value); }
277 template<typename CacheControlT = Aws::String>
278 GetObjectResult& WithCacheControl(CacheControlT&& value) { SetCacheControl(std::forward<CacheControlT>(value)); return *this;}
280
282
285 inline const Aws::String& GetContentDisposition() const { return m_contentDisposition; }
286 template<typename ContentDispositionT = Aws::String>
287 void SetContentDisposition(ContentDispositionT&& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = std::forward<ContentDispositionT>(value); }
288 template<typename ContentDispositionT = Aws::String>
289 GetObjectResult& WithContentDisposition(ContentDispositionT&& value) { SetContentDisposition(std::forward<ContentDispositionT>(value)); return *this;}
291
293
298 inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
299 template<typename ContentEncodingT = Aws::String>
300 void SetContentEncoding(ContentEncodingT&& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = std::forward<ContentEncodingT>(value); }
301 template<typename ContentEncodingT = Aws::String>
302 GetObjectResult& WithContentEncoding(ContentEncodingT&& value) { SetContentEncoding(std::forward<ContentEncodingT>(value)); return *this;}
304
306
309 inline const Aws::String& GetContentLanguage() const { return m_contentLanguage; }
310 template<typename ContentLanguageT = Aws::String>
311 void SetContentLanguage(ContentLanguageT&& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = std::forward<ContentLanguageT>(value); }
312 template<typename ContentLanguageT = Aws::String>
313 GetObjectResult& WithContentLanguage(ContentLanguageT&& value) { SetContentLanguage(std::forward<ContentLanguageT>(value)); return *this;}
315
317
320 inline const Aws::String& GetContentRange() const { return m_contentRange; }
321 template<typename ContentRangeT = Aws::String>
322 void SetContentRange(ContentRangeT&& value) { m_contentRangeHasBeenSet = true; m_contentRange = std::forward<ContentRangeT>(value); }
323 template<typename ContentRangeT = Aws::String>
324 GetObjectResult& WithContentRange(ContentRangeT&& value) { SetContentRange(std::forward<ContentRangeT>(value)); return *this;}
326
328
331 inline const Aws::String& GetContentType() const { return m_contentType; }
332 template<typename ContentTypeT = Aws::String>
333 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
334 template<typename ContentTypeT = Aws::String>
335 GetObjectResult& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
337
339
343 inline const Aws::Utils::DateTime& GetExpires() const { return m_expires; }
344 template<typename ExpiresT = Aws::Utils::DateTime>
345 void SetExpires(ExpiresT&& value) { m_expiresHasBeenSet = true; m_expires = std::forward<ExpiresT>(value); }
346 template<typename ExpiresT = Aws::Utils::DateTime>
347 GetObjectResult& WithExpires(ExpiresT&& value) { SetExpires(std::forward<ExpiresT>(value)); return *this;}
349
351
357 inline const Aws::String& GetWebsiteRedirectLocation() const { return m_websiteRedirectLocation; }
358 template<typename WebsiteRedirectLocationT = Aws::String>
359 void SetWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) { m_websiteRedirectLocationHasBeenSet = true; m_websiteRedirectLocation = std::forward<WebsiteRedirectLocationT>(value); }
360 template<typename WebsiteRedirectLocationT = Aws::String>
361 GetObjectResult& WithWebsiteRedirectLocation(WebsiteRedirectLocationT&& value) { SetWebsiteRedirectLocation(std::forward<WebsiteRedirectLocationT>(value)); return *this;}
363
365
371 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
372 inline void SetServerSideEncryption(ServerSideEncryption value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
375
377
380 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
381 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
382 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
383 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
384 GetObjectResult& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
385 template<typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
386 GetObjectResult& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
387 m_metadataHasBeenSet = true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value)); return *this;
388 }
390
392
398 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
399 template<typename SSECustomerAlgorithmT = Aws::String>
400 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value); }
401 template<typename SSECustomerAlgorithmT = Aws::String>
402 GetObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value)); return *this;}
404
406
412 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
413 template<typename SSECustomerKeyMD5T = Aws::String>
414 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value); }
415 template<typename SSECustomerKeyMD5T = Aws::String>
416 GetObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value)); return *this;}
418
420
424 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
425 template<typename SSEKMSKeyIdT = Aws::String>
426 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value); }
427 template<typename SSEKMSKeyIdT = Aws::String>
428 GetObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) { SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value)); return *this;}
430
432
436 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
437 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabledHasBeenSet = true; m_bucketKeyEnabled = value; }
438 inline GetObjectResult& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
440
442
450 inline StorageClass GetStorageClass() const { return m_storageClass; }
451 inline void SetStorageClass(StorageClass value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
452 inline GetObjectResult& WithStorageClass(StorageClass value) { SetStorageClass(value); return *this;}
454
456
457 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
458 inline void SetRequestCharged(RequestCharged value) { m_requestChargedHasBeenSet = true; m_requestCharged = value; }
461
463
468 inline ReplicationStatus GetReplicationStatus() const { return m_replicationStatus; }
469 inline void SetReplicationStatus(ReplicationStatus value) { m_replicationStatusHasBeenSet = true; m_replicationStatus = value; }
472
474
479 inline int GetPartsCount() const { return m_partsCount; }
480 inline void SetPartsCount(int value) { m_partsCountHasBeenSet = true; m_partsCount = value; }
481 inline GetObjectResult& WithPartsCount(int value) { SetPartsCount(value); return *this;}
483
485
492 inline int GetTagCount() const { return m_tagCount; }
493 inline void SetTagCount(int value) { m_tagCountHasBeenSet = true; m_tagCount = value; }
494 inline GetObjectResult& WithTagCount(int value) { SetTagCount(value); return *this;}
496
498
502 inline ObjectLockMode GetObjectLockMode() const { return m_objectLockMode; }
503 inline void SetObjectLockMode(ObjectLockMode value) { m_objectLockModeHasBeenSet = true; m_objectLockMode = value; }
506
508
512 inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const { return m_objectLockRetainUntilDate; }
513 template<typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
514 void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) { m_objectLockRetainUntilDateHasBeenSet = true; m_objectLockRetainUntilDate = std::forward<ObjectLockRetainUntilDateT>(value); }
515 template<typename ObjectLockRetainUntilDateT = Aws::Utils::DateTime>
516 GetObjectResult& WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT&& value) { SetObjectLockRetainUntilDate(std::forward<ObjectLockRetainUntilDateT>(value)); return *this;}
518
520
525 inline ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const { return m_objectLockLegalHoldStatus; }
526 inline void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value) { m_objectLockLegalHoldStatusHasBeenSet = true; m_objectLockLegalHoldStatus = value; }
529
531
532 inline const Aws::String& GetId2() const { return m_id2; }
533 template<typename Id2T = Aws::String>
534 void SetId2(Id2T&& value) { m_id2HasBeenSet = true; m_id2 = std::forward<Id2T>(value); }
535 template<typename Id2T = Aws::String>
536 GetObjectResult& WithId2(Id2T&& value) { SetId2(std::forward<Id2T>(value)); return *this;}
538
540
541 inline const Aws::String& GetRequestId() const { return m_requestId; }
542 template<typename RequestIdT = Aws::String>
543 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
544 template<typename RequestIdT = Aws::String>
545 GetObjectResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
547
549
552 inline const Aws::String& GetExpiresString() const { return m_expiresString; }
553 template<typename ExpiresStringT = Aws::String>
554 void SetExpiresString(ExpiresStringT&& value) { m_expiresStringHasBeenSet = true; m_expiresString = std::forward<ExpiresStringT>(value); }
555 template<typename ExpiresStringT = Aws::String>
556 GetObjectResult& WithExpiresString(ExpiresStringT&& value) { SetExpiresString(std::forward<ExpiresStringT>(value)); return *this;}
558 private:
559
561 bool m_bodyHasBeenSet = false;
562
563 bool m_deleteMarker{false};
564 bool m_deleteMarkerHasBeenSet = false;
565
566 Aws::String m_acceptRanges;
567 bool m_acceptRangesHasBeenSet = false;
568
569 Aws::String m_expiration;
570 bool m_expirationHasBeenSet = false;
571
572 Aws::String m_restore;
573 bool m_restoreHasBeenSet = false;
574
575 Aws::Utils::DateTime m_lastModified{};
576 bool m_lastModifiedHasBeenSet = false;
577
578 long long m_contentLength{0};
579 bool m_contentLengthHasBeenSet = false;
580
581 Aws::String m_eTag;
582 bool m_eTagHasBeenSet = false;
583
584 Aws::String m_checksumCRC32;
585 bool m_checksumCRC32HasBeenSet = false;
586
587 Aws::String m_checksumCRC32C;
588 bool m_checksumCRC32CHasBeenSet = false;
589
590 Aws::String m_checksumCRC64NVME;
591 bool m_checksumCRC64NVMEHasBeenSet = false;
592
593 Aws::String m_checksumSHA1;
594 bool m_checksumSHA1HasBeenSet = false;
595
596 Aws::String m_checksumSHA256;
597 bool m_checksumSHA256HasBeenSet = false;
598
599 ChecksumType m_checksumType{ChecksumType::NOT_SET};
600 bool m_checksumTypeHasBeenSet = false;
601
602 int m_missingMeta{0};
603 bool m_missingMetaHasBeenSet = false;
604
605 Aws::String m_versionId;
606 bool m_versionIdHasBeenSet = false;
607
608 Aws::String m_cacheControl;
609 bool m_cacheControlHasBeenSet = false;
610
611 Aws::String m_contentDisposition;
612 bool m_contentDispositionHasBeenSet = false;
613
614 Aws::String m_contentEncoding;
615 bool m_contentEncodingHasBeenSet = false;
616
617 Aws::String m_contentLanguage;
618 bool m_contentLanguageHasBeenSet = false;
619
620 Aws::String m_contentRange;
621 bool m_contentRangeHasBeenSet = false;
622
623 Aws::String m_contentType;
624 bool m_contentTypeHasBeenSet = false;
625
626 Aws::Utils::DateTime m_expires{};
627 bool m_expiresHasBeenSet = false;
628
629 Aws::String m_websiteRedirectLocation;
630 bool m_websiteRedirectLocationHasBeenSet = false;
631
633 bool m_serverSideEncryptionHasBeenSet = false;
634
636 bool m_metadataHasBeenSet = false;
637
638 Aws::String m_sSECustomerAlgorithm;
639 bool m_sSECustomerAlgorithmHasBeenSet = false;
640
641 Aws::String m_sSECustomerKeyMD5;
642 bool m_sSECustomerKeyMD5HasBeenSet = false;
643
644 Aws::String m_sSEKMSKeyId;
645 bool m_sSEKMSKeyIdHasBeenSet = false;
646
647 bool m_bucketKeyEnabled{false};
648 bool m_bucketKeyEnabledHasBeenSet = false;
649
650 StorageClass m_storageClass{StorageClass::NOT_SET};
651 bool m_storageClassHasBeenSet = false;
652
653 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
654 bool m_requestChargedHasBeenSet = false;
655
657 bool m_replicationStatusHasBeenSet = false;
658
659 int m_partsCount{0};
660 bool m_partsCountHasBeenSet = false;
661
662 int m_tagCount{0};
663 bool m_tagCountHasBeenSet = false;
664
665 ObjectLockMode m_objectLockMode{ObjectLockMode::NOT_SET};
666 bool m_objectLockModeHasBeenSet = false;
667
668 Aws::Utils::DateTime m_objectLockRetainUntilDate{};
669 bool m_objectLockRetainUntilDateHasBeenSet = false;
670
672 bool m_objectLockLegalHoldStatusHasBeenSet = false;
673
674 Aws::String m_id2;
675 bool m_id2HasBeenSet = false;
676
677 Aws::String m_requestId;
678 bool m_requestIdHasBeenSet = false;
679
680 Aws::String m_expiresString;
681 bool m_expiresStringHasBeenSet = false;
682 };
683
684} // namespace Model
685} // namespace S3
686} // namespace Aws
void SetAcceptRanges(AcceptRangesT &&value)
void SetContentType(ContentTypeT &&value)
ChecksumType GetChecksumType() const
void SetExpires(ExpiresT &&value)
GetObjectResult & WithPartsCount(int value)
GetObjectResult & WithId2(Id2T &&value)
void SetRestore(RestoreT &&value)
Aws::IOStream & GetBody() const
void SetReplicationStatus(ReplicationStatus value)
void SetChecksumType(ChecksumType value)
GetObjectResult & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
const Aws::String & GetContentDisposition() const
GetObjectResult & WithContentDisposition(ContentDispositionT &&value)
AWS_S3_API GetObjectResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectResult & WithETag(ETagT &&value)
GetObjectResult & WithContentLanguage(ContentLanguageT &&value)
GetObjectResult & WithMetadata(MetadataT &&value)
const Aws::String & GetContentType() const
GetObjectResult & WithCacheControl(CacheControlT &&value)
GetObjectResult & WithStorageClass(StorageClass value)
const Aws::String & GetSSEKMSKeyId() const
const Aws::String & GetExpiration() const
GetObjectResult & WithChecksumCRC32C(ChecksumCRC32CT &&value)
GetObjectResult & WithChecksumCRC32(ChecksumCRC32T &&value)
const Aws::String & GetVersionId() const
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
const Aws::String & GetContentLanguage() const
GetObjectResult & WithObjectLockMode(ObjectLockMode value)
void SetVersionId(VersionIdT &&value)
StorageClass GetStorageClass() const
const Aws::String & GetCacheControl() const
const Aws::String & GetAcceptRanges() const
const Aws::String & GetChecksumSHA256() const
const Aws::String & GetContentRange() const
void SetChecksumCRC32(ChecksumCRC32T &&value)
const Aws::String & GetContentEncoding() const
RequestCharged GetRequestCharged() const
const Aws::String & GetChecksumCRC32C() const
GetObjectResult & WithRequestId(RequestIdT &&value)
AWS_S3_API GetObjectResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectResult & WithMissingMeta(int value)
void SetContentRange(ContentRangeT &&value)
GetObjectResult & WithChecksumType(ChecksumType value)
ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatus() const
const Aws::String & GetSSECustomerKeyMD5() const
const Aws::String & GetRequestId() const
GetObjectResult & operator=(const GetObjectResult &)=delete
GetObjectResult & WithDeleteMarker(bool value)
GetObjectResult & WithRestore(RestoreT &&value)
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
void SetContentLanguage(ContentLanguageT &&value)
GetObjectResult & WithContentRange(ContentRangeT &&value)
GetObjectResult & WithBucketKeyEnabled(bool value)
ReplicationStatus GetReplicationStatus() const
void SetExpiresString(ExpiresStringT &&value)
void SetMetadata(MetadataT &&value)
GetObjectResult & WithChecksumSHA256(ChecksumSHA256T &&value)
void SetContentLength(long long value)
GetObjectResult & WithLastModified(LastModifiedT &&value)
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::String & GetSSECustomerAlgorithm() const
void SetChecksumSHA256(ChecksumSHA256T &&value)
ServerSideEncryption GetServerSideEncryption() const
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
const Aws::Utils::DateTime & GetExpires() const
GetObjectResult & WithExpires(ExpiresT &&value)
GetObjectResult & WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
const Aws::String & GetChecksumCRC32() const
void SetObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
GetObjectResult & WithContentLength(long long value)
GetObjectResult & WithTagCount(int value)
GetObjectResult & WithObjectLockRetainUntilDate(ObjectLockRetainUntilDateT &&value)
void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus value)
const Aws::String & GetETag() const
GetObjectResult & WithChecksumSHA1(ChecksumSHA1T &&value)
void SetContentDisposition(ContentDispositionT &&value)
void SetServerSideEncryption(ServerSideEncryption value)
const Aws::String & GetId2() const
const Aws::String & GetChecksumCRC64NVME() const
void SetWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
void SetChecksumSHA1(ChecksumSHA1T &&value)
void SetContentEncoding(ContentEncodingT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetObjectLockRetainUntilDate() const
GetObjectResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
ObjectLockMode GetObjectLockMode() const
const Aws::Utils::DateTime & GetLastModified() const
void SetCacheControl(CacheControlT &&value)
void SetObjectLockMode(ObjectLockMode value)
GetObjectResult & WithWebsiteRedirectLocation(WebsiteRedirectLocationT &&value)
GetObjectResult & WithServerSideEncryption(ServerSideEncryption value)
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
void SetStorageClass(StorageClass value)
GetObjectResult & WithVersionId(VersionIdT &&value)
const Aws::String & GetChecksumSHA1() const
GetObjectResult & WithRequestCharged(RequestCharged value)
const Aws::String & GetExpiresString() const
GetObjectResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetExpiration(ExpirationT &&value)
GetObjectResult & WithContentEncoding(ContentEncodingT &&value)
void SetRequestCharged(RequestCharged value)
const Aws::String & GetRestore() const
GetObjectResult & WithExpiresString(ExpiresStringT &&value)
AWS_S3_API GetObjectResult()=default
GetObjectResult(const GetObjectResult &)=delete
AWS_S3_API GetObjectResult & operator=(GetObjectResult &&)=default
GetObjectResult & WithAcceptRanges(AcceptRangesT &&value)
GetObjectResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
void ReplaceBody(Aws::IOStream *body)
AWS_S3_API GetObjectResult(GetObjectResult &&)=default
GetObjectResult & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
const Aws::String & GetWebsiteRedirectLocation() const
GetObjectResult & WithExpiration(ExpirationT &&value)
void SetLastModified(LastModifiedT &&value)
GetObjectResult & WithContentType(ContentTypeT &&value)
GetObjectResult & WithReplicationStatus(ReplicationStatus value)
Aws::IOStream & GetUnderlyingStream() const
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