AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetObjectResult.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
19#include <utility>
20
21namespace Aws
22{
23template<typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace S3
27{
28namespace Model
29{
31 {
32 public:
34 //We have to define these because Microsoft doesn't auto generate them
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
51 inline Aws::IOStream& GetBody() { return m_body.GetUnderlyingStream(); }
52
56 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
57
58
63 inline bool GetDeleteMarker() const{ return m_deleteMarker; }
64
69 inline void SetDeleteMarker(bool value) { m_deleteMarker = value; }
70
75 inline GetObjectResult& WithDeleteMarker(bool value) { SetDeleteMarker(value); return *this;}
76
77
81 inline const Aws::String& GetAcceptRanges() const{ return m_acceptRanges; }
82
86 inline void SetAcceptRanges(const Aws::String& value) { m_acceptRanges = value; }
87
91 inline void SetAcceptRanges(Aws::String&& value) { m_acceptRanges = std::move(value); }
92
96 inline void SetAcceptRanges(const char* value) { m_acceptRanges.assign(value); }
97
101 inline GetObjectResult& WithAcceptRanges(const Aws::String& value) { SetAcceptRanges(value); return *this;}
102
106 inline GetObjectResult& WithAcceptRanges(Aws::String&& value) { SetAcceptRanges(std::move(value)); return *this;}
107
111 inline GetObjectResult& WithAcceptRanges(const char* value) { SetAcceptRanges(value); return *this;}
112
113
120 inline const Aws::String& GetExpiration() const{ return m_expiration; }
121
128 inline void SetExpiration(const Aws::String& value) { m_expiration = value; }
129
136 inline void SetExpiration(Aws::String&& value) { m_expiration = std::move(value); }
137
144 inline void SetExpiration(const char* value) { m_expiration.assign(value); }
145
152 inline GetObjectResult& WithExpiration(const Aws::String& value) { SetExpiration(value); return *this;}
153
160 inline GetObjectResult& WithExpiration(Aws::String&& value) { SetExpiration(std::move(value)); return *this;}
161
168 inline GetObjectResult& WithExpiration(const char* value) { SetExpiration(value); return *this;}
169
170
175 inline const Aws::String& GetRestore() const{ return m_restore; }
176
181 inline void SetRestore(const Aws::String& value) { m_restore = value; }
182
187 inline void SetRestore(Aws::String&& value) { m_restore = std::move(value); }
188
193 inline void SetRestore(const char* value) { m_restore.assign(value); }
194
199 inline GetObjectResult& WithRestore(const Aws::String& value) { SetRestore(value); return *this;}
200
205 inline GetObjectResult& WithRestore(Aws::String&& value) { SetRestore(std::move(value)); return *this;}
206
211 inline GetObjectResult& WithRestore(const char* value) { SetRestore(value); return *this;}
212
213
217 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
218
222 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModified = value; }
223
227 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModified = std::move(value); }
228
232 inline GetObjectResult& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
233
237 inline GetObjectResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
238
239
243 inline long long GetContentLength() const{ return m_contentLength; }
244
248 inline void SetContentLength(long long value) { m_contentLength = value; }
249
253 inline GetObjectResult& WithContentLength(long long value) { SetContentLength(value); return *this;}
254
255
260 inline const Aws::String& GetETag() const{ return m_eTag; }
261
266 inline void SetETag(const Aws::String& value) { m_eTag = value; }
267
272 inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); }
273
278 inline void SetETag(const char* value) { m_eTag.assign(value); }
279
284 inline GetObjectResult& WithETag(const Aws::String& value) { SetETag(value); return *this;}
285
290 inline GetObjectResult& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
291
296 inline GetObjectResult& WithETag(const char* value) { SetETag(value); return *this;}
297
298
307 inline const Aws::String& GetChecksumCRC32() const{ return m_checksumCRC32; }
308
317 inline void SetChecksumCRC32(const Aws::String& value) { m_checksumCRC32 = value; }
318
327 inline void SetChecksumCRC32(Aws::String&& value) { m_checksumCRC32 = std::move(value); }
328
337 inline void SetChecksumCRC32(const char* value) { m_checksumCRC32.assign(value); }
338
347 inline GetObjectResult& WithChecksumCRC32(const Aws::String& value) { SetChecksumCRC32(value); return *this;}
348
357 inline GetObjectResult& WithChecksumCRC32(Aws::String&& value) { SetChecksumCRC32(std::move(value)); return *this;}
358
367 inline GetObjectResult& WithChecksumCRC32(const char* value) { SetChecksumCRC32(value); return *this;}
368
369
378 inline const Aws::String& GetChecksumCRC32C() const{ return m_checksumCRC32C; }
379
388 inline void SetChecksumCRC32C(const Aws::String& value) { m_checksumCRC32C = value; }
389
398 inline void SetChecksumCRC32C(Aws::String&& value) { m_checksumCRC32C = std::move(value); }
399
408 inline void SetChecksumCRC32C(const char* value) { m_checksumCRC32C.assign(value); }
409
418 inline GetObjectResult& WithChecksumCRC32C(const Aws::String& value) { SetChecksumCRC32C(value); return *this;}
419
428 inline GetObjectResult& WithChecksumCRC32C(Aws::String&& value) { SetChecksumCRC32C(std::move(value)); return *this;}
429
438 inline GetObjectResult& WithChecksumCRC32C(const char* value) { SetChecksumCRC32C(value); return *this;}
439
440
449 inline const Aws::String& GetChecksumSHA1() const{ return m_checksumSHA1; }
450
459 inline void SetChecksumSHA1(const Aws::String& value) { m_checksumSHA1 = value; }
460
469 inline void SetChecksumSHA1(Aws::String&& value) { m_checksumSHA1 = std::move(value); }
470
479 inline void SetChecksumSHA1(const char* value) { m_checksumSHA1.assign(value); }
480
489 inline GetObjectResult& WithChecksumSHA1(const Aws::String& value) { SetChecksumSHA1(value); return *this;}
490
499 inline GetObjectResult& WithChecksumSHA1(Aws::String&& value) { SetChecksumSHA1(std::move(value)); return *this;}
500
509 inline GetObjectResult& WithChecksumSHA1(const char* value) { SetChecksumSHA1(value); return *this;}
510
511
520 inline const Aws::String& GetChecksumSHA256() const{ return m_checksumSHA256; }
521
530 inline void SetChecksumSHA256(const Aws::String& value) { m_checksumSHA256 = value; }
531
540 inline void SetChecksumSHA256(Aws::String&& value) { m_checksumSHA256 = std::move(value); }
541
550 inline void SetChecksumSHA256(const char* value) { m_checksumSHA256.assign(value); }
551
560 inline GetObjectResult& WithChecksumSHA256(const Aws::String& value) { SetChecksumSHA256(value); return *this;}
561
570 inline GetObjectResult& WithChecksumSHA256(Aws::String&& value) { SetChecksumSHA256(std::move(value)); return *this;}
571
580 inline GetObjectResult& WithChecksumSHA256(const char* value) { SetChecksumSHA256(value); return *this;}
581
582
590 inline int GetMissingMeta() const{ return m_missingMeta; }
591
599 inline void SetMissingMeta(int value) { m_missingMeta = value; }
600
608 inline GetObjectResult& WithMissingMeta(int value) { SetMissingMeta(value); return *this;}
609
610
614 inline const Aws::String& GetVersionId() const{ return m_versionId; }
615
619 inline void SetVersionId(const Aws::String& value) { m_versionId = value; }
620
624 inline void SetVersionId(Aws::String&& value) { m_versionId = std::move(value); }
625
629 inline void SetVersionId(const char* value) { m_versionId.assign(value); }
630
634 inline GetObjectResult& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
635
639 inline GetObjectResult& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
640
644 inline GetObjectResult& WithVersionId(const char* value) { SetVersionId(value); return *this;}
645
646
650 inline const Aws::String& GetCacheControl() const{ return m_cacheControl; }
651
655 inline void SetCacheControl(const Aws::String& value) { m_cacheControl = value; }
656
660 inline void SetCacheControl(Aws::String&& value) { m_cacheControl = std::move(value); }
661
665 inline void SetCacheControl(const char* value) { m_cacheControl.assign(value); }
666
670 inline GetObjectResult& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;}
671
675 inline GetObjectResult& WithCacheControl(Aws::String&& value) { SetCacheControl(std::move(value)); return *this;}
676
680 inline GetObjectResult& WithCacheControl(const char* value) { SetCacheControl(value); return *this;}
681
682
686 inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; }
687
691 inline void SetContentDisposition(const Aws::String& value) { m_contentDisposition = value; }
692
696 inline void SetContentDisposition(Aws::String&& value) { m_contentDisposition = std::move(value); }
697
701 inline void SetContentDisposition(const char* value) { m_contentDisposition.assign(value); }
702
706 inline GetObjectResult& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;}
707
711 inline GetObjectResult& WithContentDisposition(Aws::String&& value) { SetContentDisposition(std::move(value)); return *this;}
712
716 inline GetObjectResult& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;}
717
718
724 inline const Aws::String& GetContentEncoding() const{ return m_contentEncoding; }
725
731 inline void SetContentEncoding(const Aws::String& value) { m_contentEncoding = value; }
732
738 inline void SetContentEncoding(Aws::String&& value) { m_contentEncoding = std::move(value); }
739
745 inline void SetContentEncoding(const char* value) { m_contentEncoding.assign(value); }
746
752 inline GetObjectResult& WithContentEncoding(const Aws::String& value) { SetContentEncoding(value); return *this;}
753
759 inline GetObjectResult& WithContentEncoding(Aws::String&& value) { SetContentEncoding(std::move(value)); return *this;}
760
766 inline GetObjectResult& WithContentEncoding(const char* value) { SetContentEncoding(value); return *this;}
767
768
772 inline const Aws::String& GetContentLanguage() const{ return m_contentLanguage; }
773
777 inline void SetContentLanguage(const Aws::String& value) { m_contentLanguage = value; }
778
782 inline void SetContentLanguage(Aws::String&& value) { m_contentLanguage = std::move(value); }
783
787 inline void SetContentLanguage(const char* value) { m_contentLanguage.assign(value); }
788
792 inline GetObjectResult& WithContentLanguage(const Aws::String& value) { SetContentLanguage(value); return *this;}
793
797 inline GetObjectResult& WithContentLanguage(Aws::String&& value) { SetContentLanguage(std::move(value)); return *this;}
798
802 inline GetObjectResult& WithContentLanguage(const char* value) { SetContentLanguage(value); return *this;}
803
804
808 inline const Aws::String& GetContentRange() const{ return m_contentRange; }
809
813 inline void SetContentRange(const Aws::String& value) { m_contentRange = value; }
814
818 inline void SetContentRange(Aws::String&& value) { m_contentRange = std::move(value); }
819
823 inline void SetContentRange(const char* value) { m_contentRange.assign(value); }
824
828 inline GetObjectResult& WithContentRange(const Aws::String& value) { SetContentRange(value); return *this;}
829
833 inline GetObjectResult& WithContentRange(Aws::String&& value) { SetContentRange(std::move(value)); return *this;}
834
838 inline GetObjectResult& WithContentRange(const char* value) { SetContentRange(value); return *this;}
839
840
844 inline const Aws::String& GetContentType() const{ return m_contentType; }
845
849 inline void SetContentType(const Aws::String& value) { m_contentType = value; }
850
854 inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
855
859 inline void SetContentType(const char* value) { m_contentType.assign(value); }
860
864 inline GetObjectResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
865
869 inline GetObjectResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
870
874 inline GetObjectResult& WithContentType(const char* value) { SetContentType(value); return *this;}
875
876
880 inline const Aws::Utils::DateTime& GetExpires() const{ return m_expires; }
881
885 inline void SetExpires(const Aws::Utils::DateTime& value) { m_expires = value; }
886
890 inline void SetExpires(Aws::Utils::DateTime&& value) { m_expires = std::move(value); }
891
895 inline GetObjectResult& WithExpires(const Aws::Utils::DateTime& value) { SetExpires(value); return *this;}
896
900 inline GetObjectResult& WithExpires(Aws::Utils::DateTime&& value) { SetExpires(std::move(value)); return *this;}
901
902
908 inline const Aws::String& GetWebsiteRedirectLocation() const{ return m_websiteRedirectLocation; }
909
915 inline void SetWebsiteRedirectLocation(const Aws::String& value) { m_websiteRedirectLocation = value; }
916
922 inline void SetWebsiteRedirectLocation(Aws::String&& value) { m_websiteRedirectLocation = std::move(value); }
923
929 inline void SetWebsiteRedirectLocation(const char* value) { m_websiteRedirectLocation.assign(value); }
930
937
943 inline GetObjectResult& WithWebsiteRedirectLocation(Aws::String&& value) { SetWebsiteRedirectLocation(std::move(value)); return *this;}
944
950 inline GetObjectResult& WithWebsiteRedirectLocation(const char* value) { SetWebsiteRedirectLocation(value); return *this;}
951
952
957 inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
958
963 inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryption = value; }
964
969 inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryption = std::move(value); }
970
976
982
983
987 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
988
992 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadata = value; }
993
997 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadata = std::move(value); }
998
1003
1007 inline GetObjectResult& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
1008
1012 inline GetObjectResult& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadata.emplace(key, value); return *this; }
1013
1017 inline GetObjectResult& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadata.emplace(std::move(key), value); return *this; }
1018
1022 inline GetObjectResult& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadata.emplace(key, std::move(value)); return *this; }
1023
1027 inline GetObjectResult& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadata.emplace(std::move(key), std::move(value)); return *this; }
1028
1032 inline GetObjectResult& AddMetadata(const char* key, Aws::String&& value) { m_metadata.emplace(key, std::move(value)); return *this; }
1033
1037 inline GetObjectResult& AddMetadata(Aws::String&& key, const char* value) { m_metadata.emplace(std::move(key), value); return *this; }
1038
1042 inline GetObjectResult& AddMetadata(const char* key, const char* value) { m_metadata.emplace(key, value); return *this; }
1043
1044
1050 inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
1051
1057 inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithm = value; }
1058
1064 inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithm = std::move(value); }
1065
1071 inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithm.assign(value); }
1072
1079
1085 inline GetObjectResult& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(std::move(value)); return *this;}
1086
1092 inline GetObjectResult& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
1093
1094
1100 inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
1101
1107 inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5 = value; }
1108
1114 inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5 = std::move(value); }
1115
1121 inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5.assign(value); }
1122
1128 inline GetObjectResult& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
1129
1135 inline GetObjectResult& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(std::move(value)); return *this;}
1136
1142 inline GetObjectResult& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
1143
1144
1150 inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
1151
1157 inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyId = value; }
1158
1164 inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyId = std::move(value); }
1165
1171 inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyId.assign(value); }
1172
1178 inline GetObjectResult& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
1179
1185 inline GetObjectResult& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(std::move(value)); return *this;}
1186
1192 inline GetObjectResult& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
1193
1194
1199 inline bool GetBucketKeyEnabled() const{ return m_bucketKeyEnabled; }
1200
1205 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabled = value; }
1206
1211 inline GetObjectResult& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
1212
1213
1218 inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
1219
1224 inline void SetStorageClass(const StorageClass& value) { m_storageClass = value; }
1225
1230 inline void SetStorageClass(StorageClass&& value) { m_storageClass = std::move(value); }
1231
1236 inline GetObjectResult& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
1237
1242 inline GetObjectResult& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
1243
1244
1245
1246 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
1247
1248
1249 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
1250
1251
1252 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
1253
1254
1255 inline GetObjectResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
1256
1257
1258 inline GetObjectResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
1259
1260
1265 inline const ReplicationStatus& GetReplicationStatus() const{ return m_replicationStatus; }
1266
1271 inline void SetReplicationStatus(const ReplicationStatus& value) { m_replicationStatus = value; }
1272
1277 inline void SetReplicationStatus(ReplicationStatus&& value) { m_replicationStatus = std::move(value); }
1278
1284
1289 inline GetObjectResult& WithReplicationStatus(ReplicationStatus&& value) { SetReplicationStatus(std::move(value)); return *this;}
1290
1291
1297 inline int GetPartsCount() const{ return m_partsCount; }
1298
1304 inline void SetPartsCount(int value) { m_partsCount = value; }
1305
1311 inline GetObjectResult& WithPartsCount(int value) { SetPartsCount(value); return *this;}
1312
1313
1317 inline int GetTagCount() const{ return m_tagCount; }
1318
1322 inline void SetTagCount(int value) { m_tagCount = value; }
1323
1327 inline GetObjectResult& WithTagCount(int value) { SetTagCount(value); return *this;}
1328
1329
1333 inline const ObjectLockMode& GetObjectLockMode() const{ return m_objectLockMode; }
1334
1338 inline void SetObjectLockMode(const ObjectLockMode& value) { m_objectLockMode = value; }
1339
1343 inline void SetObjectLockMode(ObjectLockMode&& value) { m_objectLockMode = std::move(value); }
1344
1348 inline GetObjectResult& WithObjectLockMode(const ObjectLockMode& value) { SetObjectLockMode(value); return *this;}
1349
1353 inline GetObjectResult& WithObjectLockMode(ObjectLockMode&& value) { SetObjectLockMode(std::move(value)); return *this;}
1354
1355
1359 inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const{ return m_objectLockRetainUntilDate; }
1360
1364 inline void SetObjectLockRetainUntilDate(const Aws::Utils::DateTime& value) { m_objectLockRetainUntilDate = value; }
1365
1369 inline void SetObjectLockRetainUntilDate(Aws::Utils::DateTime&& value) { m_objectLockRetainUntilDate = std::move(value); }
1370
1375
1380
1381
1386 inline const ObjectLockLegalHoldStatus& GetObjectLockLegalHoldStatus() const{ return m_objectLockLegalHoldStatus; }
1387
1392 inline void SetObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus& value) { m_objectLockLegalHoldStatus = value; }
1393
1398 inline void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus&& value) { m_objectLockLegalHoldStatus = std::move(value); }
1399
1405
1411
1412
1413
1414 inline const Aws::String& GetId2() const{ return m_id2; }
1415
1416
1417 inline void SetId2(const Aws::String& value) { m_id2 = value; }
1418
1419
1420 inline void SetId2(Aws::String&& value) { m_id2 = std::move(value); }
1421
1422
1423 inline void SetId2(const char* value) { m_id2.assign(value); }
1424
1425
1426 inline GetObjectResult& WithId2(const Aws::String& value) { SetId2(value); return *this;}
1427
1428
1429 inline GetObjectResult& WithId2(Aws::String&& value) { SetId2(std::move(value)); return *this;}
1430
1431
1432 inline GetObjectResult& WithId2(const char* value) { SetId2(value); return *this;}
1433
1434
1435
1436 inline const Aws::String& GetRequestId() const{ return m_requestId; }
1437
1438
1439 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
1440
1441
1442 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
1443
1444
1445 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
1446
1447
1448 inline GetObjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
1449
1450
1451 inline GetObjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
1452
1453
1454 inline GetObjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
1455
1456 private:
1457
1459
1460 bool m_deleteMarker;
1461
1462 Aws::String m_acceptRanges;
1463
1464 Aws::String m_expiration;
1465
1466 Aws::String m_restore;
1467
1468 Aws::Utils::DateTime m_lastModified;
1469
1470 long long m_contentLength;
1471
1472 Aws::String m_eTag;
1473
1474 Aws::String m_checksumCRC32;
1475
1476 Aws::String m_checksumCRC32C;
1477
1478 Aws::String m_checksumSHA1;
1479
1480 Aws::String m_checksumSHA256;
1481
1482 int m_missingMeta;
1483
1484 Aws::String m_versionId;
1485
1486 Aws::String m_cacheControl;
1487
1488 Aws::String m_contentDisposition;
1489
1490 Aws::String m_contentEncoding;
1491
1492 Aws::String m_contentLanguage;
1493
1494 Aws::String m_contentRange;
1495
1496 Aws::String m_contentType;
1497
1498 Aws::Utils::DateTime m_expires;
1499
1500 Aws::String m_websiteRedirectLocation;
1501
1502 ServerSideEncryption m_serverSideEncryption;
1503
1505
1506 Aws::String m_sSECustomerAlgorithm;
1507
1508 Aws::String m_sSECustomerKeyMD5;
1509
1510 Aws::String m_sSEKMSKeyId;
1511
1512 bool m_bucketKeyEnabled;
1513
1514 StorageClass m_storageClass;
1515
1516 RequestCharged m_requestCharged;
1517
1518 ReplicationStatus m_replicationStatus;
1519
1520 int m_partsCount;
1521
1522 int m_tagCount;
1523
1524 ObjectLockMode m_objectLockMode;
1525
1526 Aws::Utils::DateTime m_objectLockRetainUntilDate;
1527
1528 ObjectLockLegalHoldStatus m_objectLockLegalHoldStatus;
1529
1530 Aws::String m_id2;
1531
1532 Aws::String m_requestId;
1533 };
1534
1535} // namespace Model
1536} // namespace S3
1537} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetETag(const Aws::String &value)
GetObjectResult & WithChecksumCRC32C(const char *value)
GetObjectResult & WithPartsCount(int value)
GetObjectResult & WithRequestId(const char *value)
GetObjectResult & AddMetadata(const Aws::String &key, Aws::String &&value)
void SetServerSideEncryption(const ServerSideEncryption &value)
void SetETag(const char *value)
GetObjectResult & WithContentType(Aws::String &&value)
GetObjectResult & WithRestore(Aws::String &&value)
GetObjectResult & WithContentRange(Aws::String &&value)
GetObjectResult & AddMetadata(const char *key, Aws::String &&value)
void SetCacheControl(const Aws::String &value)
GetObjectResult & WithContentEncoding(const Aws::String &value)
void SetExpires(const Aws::Utils::DateTime &value)
void SetVersionId(Aws::String &&value)
GetObjectResult & WithETag(const char *value)
GetObjectResult & WithRequestId(const Aws::String &value)
void SetContentLanguage(const char *value)
const ReplicationStatus & GetReplicationStatus() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
const Aws::String & GetContentDisposition() const
void SetId2(const Aws::String &value)
const ObjectLockMode & GetObjectLockMode() const
AWS_S3_API GetObjectResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetSSECustomerKeyMD5(Aws::String &&value)
void SetRestore(Aws::String &&value)
const Aws::String & GetContentType() const
GetObjectResult & WithContentLanguage(const Aws::String &value)
const Aws::String & GetSSEKMSKeyId() const
GetObjectResult & WithContentDisposition(Aws::String &&value)
GetObjectResult & WithId2(Aws::String &&value)
const Aws::String & GetExpiration() const
const StorageClass & GetStorageClass() const
GetObjectResult & WithContentRange(const Aws::String &value)
GetObjectResult & WithAcceptRanges(Aws::String &&value)
GetObjectResult & AddMetadata(Aws::String &&key, const char *value)
void SetServerSideEncryption(ServerSideEncryption &&value)
const Aws::String & GetVersionId() const
void SetAcceptRanges(const Aws::String &value)
void SetContentDisposition(const char *value)
GetObjectResult & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
GetObjectResult & WithChecksumSHA1(const Aws::String &value)
void SetRequestCharged(RequestCharged &&value)
GetObjectResult & WithSSEKMSKeyId(const char *value)
const Aws::String & GetContentLanguage() const
GetObjectResult & AddMetadata(Aws::String &&key, const Aws::String &value)
GetObjectResult & WithCacheControl(const Aws::String &value)
void SetRequestId(Aws::String &&value)
GetObjectResult & WithChecksumCRC32(Aws::String &&value)
GetObjectResult & WithContentType(const char *value)
void SetChecksumSHA1(Aws::String &&value)
const Aws::String & GetCacheControl() const
void SetStorageClass(const StorageClass &value)
GetObjectResult & WithSSECustomerKeyMD5(const char *value)
const Aws::String & GetAcceptRanges() const
void SetObjectLockMode(ObjectLockMode &&value)
const Aws::String & GetChecksumSHA256() const
const Aws::String & GetContentRange() const
GetObjectResult & WithChecksumSHA1(const char *value)
void SetAcceptRanges(const char *value)
void SetChecksumCRC32C(const Aws::String &value)
GetObjectResult & WithChecksumSHA1(Aws::String &&value)
void SetContentEncoding(const char *value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetChecksumCRC32C(Aws::String &&value)
void SetChecksumCRC32C(const char *value)
void SetChecksumCRC32(Aws::String &&value)
GetObjectResult & WithObjectLockRetainUntilDate(Aws::Utils::DateTime &&value)
void SetContentType(const char *value)
void SetChecksumSHA256(const char *value)
void SetWebsiteRedirectLocation(Aws::String &&value)
void SetId2(Aws::String &&value)
const Aws::String & GetContentEncoding() const
void SetExpires(Aws::Utils::DateTime &&value)
GetObjectResult & WithExpires(const Aws::Utils::DateTime &value)
GetObjectResult & WithSSECustomerKeyMD5(Aws::String &&value)
void SetRequestId(const char *value)
GetObjectResult & WithObjectLockMode(const ObjectLockMode &value)
const Aws::String & GetChecksumCRC32C() const
void SetRequestId(const Aws::String &value)
GetObjectResult & WithId2(const char *value)
GetObjectResult & WithContentDisposition(const Aws::String &value)
AWS_S3_API GetObjectResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectResult & WithExpiration(const char *value)
GetObjectResult & WithMissingMeta(int value)
void SetChecksumSHA1(const char *value)
GetObjectResult & WithObjectLockRetainUntilDate(const Aws::Utils::DateTime &value)
const ServerSideEncryption & GetServerSideEncryption() const
void SetExpiration(Aws::String &&value)
void SetChecksumSHA1(const Aws::String &value)
AWS_S3_API GetObjectResult & operator=(GetObjectResult &&)
GetObjectResult & WithCacheControl(Aws::String &&value)
GetObjectResult & WithVersionId(Aws::String &&value)
const Aws::String & GetSSECustomerKeyMD5() const
const Aws::String & GetRequestId() const
GetObjectResult & operator=(const GetObjectResult &)=delete
void SetSSEKMSKeyId(const char *value)
GetObjectResult & WithDeleteMarker(bool value)
void SetSSECustomerAlgorithm(Aws::String &&value)
void SetReplicationStatus(ReplicationStatus &&value)
void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus &&value)
AWS_S3_API GetObjectResult(GetObjectResult &&)
GetObjectResult & WithRequestId(Aws::String &&value)
void SetExpiration(const char *value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
GetObjectResult & WithExpiration(Aws::String &&value)
GetObjectResult & WithBucketKeyEnabled(bool value)
GetObjectResult & AddMetadata(const Aws::String &key, const Aws::String &value)
GetObjectResult & WithRequestCharged(const RequestCharged &value)
GetObjectResult & WithChecksumSHA256(Aws::String &&value)
void SetLastModified(Aws::Utils::DateTime &&value)
void SetChecksumSHA256(const Aws::String &value)
GetObjectResult & WithETag(const Aws::String &value)
GetObjectResult & WithWebsiteRedirectLocation(const char *value)
GetObjectResult & WithChecksumSHA256(const Aws::String &value)
GetObjectResult & WithObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus &value)
GetObjectResult & WithVersionId(const char *value)
void SetContentLanguage(Aws::String &&value)
void SetContentLanguage(const Aws::String &value)
void SetContentRange(Aws::String &&value)
void SetWebsiteRedirectLocation(const Aws::String &value)
GetObjectResult & WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus &&value)
void SetChecksumCRC32(const Aws::String &value)
void SetContentLength(long long value)
GetObjectResult & WithExpiration(const Aws::String &value)
GetObjectResult & WithChecksumCRC32C(Aws::String &&value)
GetObjectResult & WithWebsiteRedirectLocation(Aws::String &&value)
void SetLastModified(const Aws::Utils::DateTime &value)
GetObjectResult & WithReplicationStatus(ReplicationStatus &&value)
GetObjectResult & WithVersionId(const Aws::String &value)
const Aws::String & GetSSECustomerAlgorithm() const
void SetSSECustomerAlgorithm(const char *value)
void SetRestore(const Aws::String &value)
void SetVersionId(const char *value)
const Aws::Utils::DateTime & GetExpires() const
void SetContentType(const Aws::String &value)
GetObjectResult & WithContentEncoding(Aws::String &&value)
const RequestCharged & GetRequestCharged() const
const Aws::String & GetChecksumCRC32() const
void SetSSECustomerKeyMD5(const Aws::String &value)
GetObjectResult & WithContentLength(long long value)
GetObjectResult & WithTagCount(int value)
GetObjectResult & WithExpires(Aws::Utils::DateTime &&value)
GetObjectResult & WithLastModified(Aws::Utils::DateTime &&value)
GetObjectResult & WithSSECustomerAlgorithm(const Aws::String &value)
GetObjectResult & WithCacheControl(const char *value)
GetObjectResult & WithStorageClass(StorageClass &&value)
const Aws::String & GetETag() const
GetObjectResult & WithContentLanguage(const char *value)
void SetWebsiteRedirectLocation(const char *value)
GetObjectResult & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetAcceptRanges(Aws::String &&value)
const Aws::String & GetId2() const
GetObjectResult & WithReplicationStatus(const ReplicationStatus &value)
GetObjectResult & WithWebsiteRedirectLocation(const Aws::String &value)
void SetETag(Aws::String &&value)
GetObjectResult & WithChecksumCRC32(const Aws::String &value)
void SetContentEncoding(Aws::String &&value)
void SetReplicationStatus(const ReplicationStatus &value)
GetObjectResult & WithContentDisposition(const char *value)
void SetId2(const char *value)
void SetCacheControl(Aws::String &&value)
GetObjectResult & WithSSEKMSKeyId(const Aws::String &value)
GetObjectResult & WithChecksumSHA256(const char *value)
GetObjectResult & WithSSECustomerKeyMD5(const Aws::String &value)
GetObjectResult & WithSSECustomerAlgorithm(const char *value)
const Aws::Utils::DateTime & GetObjectLockRetainUntilDate() const
GetObjectResult & WithAcceptRanges(const char *value)
void SetObjectLockMode(const ObjectLockMode &value)
void SetContentDisposition(Aws::String &&value)
GetObjectResult & WithLastModified(const Aws::Utils::DateTime &value)
void SetChecksumCRC32(const char *value)
const Aws::Utils::DateTime & GetLastModified() const
void SetExpiration(const Aws::String &value)
void SetContentRange(const char *value)
GetObjectResult & WithStorageClass(const StorageClass &value)
GetObjectResult & WithRestore(const Aws::String &value)
void SetContentEncoding(const Aws::String &value)
GetObjectResult & WithContentType(const Aws::String &value)
void SetObjectLockRetainUntilDate(Aws::Utils::DateTime &&value)
void SetCacheControl(const char *value)
GetObjectResult & WithContentEncoding(const char *value)
const Aws::String & GetChecksumSHA1() const
GetObjectResult & WithChecksumCRC32(const char *value)
GetObjectResult & WithServerSideEncryption(ServerSideEncryption &&value)
GetObjectResult & WithSSEKMSKeyId(Aws::String &&value)
GetObjectResult & WithETag(Aws::String &&value)
GetObjectResult & WithContentLanguage(Aws::String &&value)
void SetChecksumSHA256(Aws::String &&value)
void SetSSEKMSKeyId(const Aws::String &value)
void SetRestore(const char *value)
void SetSSECustomerKeyMD5(const char *value)
GetObjectResult & WithSSECustomerAlgorithm(Aws::String &&value)
const Aws::String & GetRestore() const
GetObjectResult & AddMetadata(Aws::String &&key, Aws::String &&value)
void SetContentDisposition(const Aws::String &value)
void SetStorageClass(StorageClass &&value)
GetObjectResult(const GetObjectResult &)=delete
void SetContentRange(const Aws::String &value)
GetObjectResult & WithId2(const Aws::String &value)
void SetSSECustomerAlgorithm(const Aws::String &value)
void SetContentType(Aws::String &&value)
GetObjectResult & AddMetadata(const char *key, const char *value)
void ReplaceBody(Aws::IOStream *body)
GetObjectResult & WithAcceptRanges(const Aws::String &value)
void SetVersionId(const Aws::String &value)
GetObjectResult & WithObjectLockMode(ObjectLockMode &&value)
GetObjectResult & WithRestore(const char *value)
GetObjectResult & WithRequestCharged(RequestCharged &&value)
void SetObjectLockRetainUntilDate(const Aws::Utils::DateTime &value)
GetObjectResult & WithServerSideEncryption(const ServerSideEncryption &value)
void SetRequestCharged(const RequestCharged &value)
void SetSSEKMSKeyId(Aws::String &&value)
const Aws::String & GetWebsiteRedirectLocation() const
GetObjectResult & WithChecksumCRC32C(const Aws::String &value)
void SetObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus &value)
GetObjectResult & WithContentRange(const char *value)
const ObjectLockLegalHoldStatus & GetObjectLockLegalHoldStatus() const
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