AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetObjectResult.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_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-crt/model/ServerSideEncryption.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/s3-crt/model/StorageClass.h>
15#include <aws/s3-crt/model/RequestCharged.h>
16#include <aws/s3-crt/model/ReplicationStatus.h>
17#include <aws/s3-crt/model/ObjectLockMode.h>
18#include <aws/s3-crt/model/ObjectLockLegalHoldStatus.h>
19#include <utility>
20
21namespace Aws
22{
23template<typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace S3Crt
27{
28namespace Model
29{
31 {
32 public:
33 AWS_S3CRT_API GetObjectResult();
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
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_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 inline void SetAcceptRanges(const Aws::String& value) { m_acceptRanges = value; }
79 inline void SetAcceptRanges(Aws::String&& value) { m_acceptRanges = std::move(value); }
80 inline void SetAcceptRanges(const char* value) { m_acceptRanges.assign(value); }
81 inline GetObjectResult& WithAcceptRanges(const Aws::String& value) { SetAcceptRanges(value); return *this;}
82 inline GetObjectResult& WithAcceptRanges(Aws::String&& value) { SetAcceptRanges(std::move(value)); return *this;}
83 inline GetObjectResult& WithAcceptRanges(const char* value) { SetAcceptRanges(value); return *this;}
85
87
96 inline const Aws::String& GetExpiration() const{ return m_expiration; }
97 inline void SetExpiration(const Aws::String& value) { m_expiration = value; }
98 inline void SetExpiration(Aws::String&& value) { m_expiration = std::move(value); }
99 inline void SetExpiration(const char* value) { m_expiration.assign(value); }
100 inline GetObjectResult& WithExpiration(const Aws::String& value) { SetExpiration(value); return *this;}
101 inline GetObjectResult& WithExpiration(Aws::String&& value) { SetExpiration(std::move(value)); return *this;}
102 inline GetObjectResult& WithExpiration(const char* value) { SetExpiration(value); return *this;}
104
106
112 inline const Aws::String& GetRestore() const{ return m_restore; }
113 inline void SetRestore(const Aws::String& value) { m_restore = value; }
114 inline void SetRestore(Aws::String&& value) { m_restore = std::move(value); }
115 inline void SetRestore(const char* value) { m_restore.assign(value); }
116 inline GetObjectResult& WithRestore(const Aws::String& value) { SetRestore(value); return *this;}
117 inline GetObjectResult& WithRestore(Aws::String&& value) { SetRestore(std::move(value)); return *this;}
118 inline GetObjectResult& WithRestore(const char* value) { SetRestore(value); return *this;}
120
122
129 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
130 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModified = value; }
131 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModified = std::move(value); }
132 inline GetObjectResult& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
133 inline GetObjectResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
135
137
140 inline long long GetContentLength() const{ return m_contentLength; }
141 inline void SetContentLength(long long value) { m_contentLength = value; }
142 inline GetObjectResult& WithContentLength(long long value) { SetContentLength(value); return *this;}
144
146
150 inline const Aws::String& GetETag() const{ return m_eTag; }
151 inline void SetETag(const Aws::String& value) { m_eTag = value; }
152 inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); }
153 inline void SetETag(const char* value) { m_eTag.assign(value); }
154 inline GetObjectResult& WithETag(const Aws::String& value) { SetETag(value); return *this;}
155 inline GetObjectResult& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
156 inline GetObjectResult& WithETag(const char* value) { SetETag(value); return *this;}
158
160
166 inline const Aws::String& GetChecksumCRC32() const{ return m_checksumCRC32; }
167 inline void SetChecksumCRC32(const Aws::String& value) { m_checksumCRC32 = value; }
168 inline void SetChecksumCRC32(Aws::String&& value) { m_checksumCRC32 = std::move(value); }
169 inline void SetChecksumCRC32(const char* value) { m_checksumCRC32.assign(value); }
170 inline GetObjectResult& WithChecksumCRC32(const Aws::String& value) { SetChecksumCRC32(value); return *this;}
171 inline GetObjectResult& WithChecksumCRC32(Aws::String&& value) { SetChecksumCRC32(std::move(value)); return *this;}
172 inline GetObjectResult& WithChecksumCRC32(const char* value) { SetChecksumCRC32(value); return *this;}
174
176
182 inline const Aws::String& GetChecksumCRC32C() const{ return m_checksumCRC32C; }
183 inline void SetChecksumCRC32C(const Aws::String& value) { m_checksumCRC32C = value; }
184 inline void SetChecksumCRC32C(Aws::String&& value) { m_checksumCRC32C = std::move(value); }
185 inline void SetChecksumCRC32C(const char* value) { m_checksumCRC32C.assign(value); }
186 inline GetObjectResult& WithChecksumCRC32C(const Aws::String& value) { SetChecksumCRC32C(value); return *this;}
187 inline GetObjectResult& WithChecksumCRC32C(Aws::String&& value) { SetChecksumCRC32C(std::move(value)); return *this;}
188 inline GetObjectResult& WithChecksumCRC32C(const char* value) { SetChecksumCRC32C(value); return *this;}
190
192
198 inline const Aws::String& GetChecksumSHA1() const{ return m_checksumSHA1; }
199 inline void SetChecksumSHA1(const Aws::String& value) { m_checksumSHA1 = value; }
200 inline void SetChecksumSHA1(Aws::String&& value) { m_checksumSHA1 = std::move(value); }
201 inline void SetChecksumSHA1(const char* value) { m_checksumSHA1.assign(value); }
202 inline GetObjectResult& WithChecksumSHA1(const Aws::String& value) { SetChecksumSHA1(value); return *this;}
203 inline GetObjectResult& WithChecksumSHA1(Aws::String&& value) { SetChecksumSHA1(std::move(value)); return *this;}
204 inline GetObjectResult& WithChecksumSHA1(const char* value) { SetChecksumSHA1(value); return *this;}
206
208
214 inline const Aws::String& GetChecksumSHA256() const{ return m_checksumSHA256; }
215 inline void SetChecksumSHA256(const Aws::String& value) { m_checksumSHA256 = value; }
216 inline void SetChecksumSHA256(Aws::String&& value) { m_checksumSHA256 = std::move(value); }
217 inline void SetChecksumSHA256(const char* value) { m_checksumSHA256.assign(value); }
218 inline GetObjectResult& WithChecksumSHA256(const Aws::String& value) { SetChecksumSHA256(value); return *this;}
219 inline GetObjectResult& WithChecksumSHA256(Aws::String&& value) { SetChecksumSHA256(std::move(value)); return *this;}
220 inline GetObjectResult& WithChecksumSHA256(const char* value) { SetChecksumSHA256(value); return *this;}
222
224
232 inline int GetMissingMeta() const{ return m_missingMeta; }
233 inline void SetMissingMeta(int value) { m_missingMeta = value; }
234 inline GetObjectResult& WithMissingMeta(int value) { SetMissingMeta(value); return *this;}
236
238
242 inline const Aws::String& GetVersionId() const{ return m_versionId; }
243 inline void SetVersionId(const Aws::String& value) { m_versionId = value; }
244 inline void SetVersionId(Aws::String&& value) { m_versionId = std::move(value); }
245 inline void SetVersionId(const char* value) { m_versionId.assign(value); }
246 inline GetObjectResult& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
247 inline GetObjectResult& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
248 inline GetObjectResult& WithVersionId(const char* value) { SetVersionId(value); return *this;}
250
252
255 inline const Aws::String& GetCacheControl() const{ return m_cacheControl; }
256 inline void SetCacheControl(const Aws::String& value) { m_cacheControl = value; }
257 inline void SetCacheControl(Aws::String&& value) { m_cacheControl = std::move(value); }
258 inline void SetCacheControl(const char* value) { m_cacheControl.assign(value); }
259 inline GetObjectResult& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;}
260 inline GetObjectResult& WithCacheControl(Aws::String&& value) { SetCacheControl(std::move(value)); return *this;}
261 inline GetObjectResult& WithCacheControl(const char* value) { SetCacheControl(value); return *this;}
263
265
268 inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; }
269 inline void SetContentDisposition(const Aws::String& value) { m_contentDisposition = value; }
270 inline void SetContentDisposition(Aws::String&& value) { m_contentDisposition = std::move(value); }
271 inline void SetContentDisposition(const char* value) { m_contentDisposition.assign(value); }
272 inline GetObjectResult& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;}
273 inline GetObjectResult& WithContentDisposition(Aws::String&& value) { SetContentDisposition(std::move(value)); return *this;}
274 inline GetObjectResult& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;}
276
278
283 inline const Aws::String& GetContentEncoding() const{ return m_contentEncoding; }
284 inline void SetContentEncoding(const Aws::String& value) { m_contentEncoding = value; }
285 inline void SetContentEncoding(Aws::String&& value) { m_contentEncoding = std::move(value); }
286 inline void SetContentEncoding(const char* value) { m_contentEncoding.assign(value); }
287 inline GetObjectResult& WithContentEncoding(const Aws::String& value) { SetContentEncoding(value); return *this;}
288 inline GetObjectResult& WithContentEncoding(Aws::String&& value) { SetContentEncoding(std::move(value)); return *this;}
289 inline GetObjectResult& WithContentEncoding(const char* value) { SetContentEncoding(value); return *this;}
291
293
296 inline const Aws::String& GetContentLanguage() const{ return m_contentLanguage; }
297 inline void SetContentLanguage(const Aws::String& value) { m_contentLanguage = value; }
298 inline void SetContentLanguage(Aws::String&& value) { m_contentLanguage = std::move(value); }
299 inline void SetContentLanguage(const char* value) { m_contentLanguage.assign(value); }
300 inline GetObjectResult& WithContentLanguage(const Aws::String& value) { SetContentLanguage(value); return *this;}
301 inline GetObjectResult& WithContentLanguage(Aws::String&& value) { SetContentLanguage(std::move(value)); return *this;}
302 inline GetObjectResult& WithContentLanguage(const char* value) { SetContentLanguage(value); return *this;}
304
306
309 inline const Aws::String& GetContentRange() const{ return m_contentRange; }
310 inline void SetContentRange(const Aws::String& value) { m_contentRange = value; }
311 inline void SetContentRange(Aws::String&& value) { m_contentRange = std::move(value); }
312 inline void SetContentRange(const char* value) { m_contentRange.assign(value); }
313 inline GetObjectResult& WithContentRange(const Aws::String& value) { SetContentRange(value); return *this;}
314 inline GetObjectResult& WithContentRange(Aws::String&& value) { SetContentRange(std::move(value)); return *this;}
315 inline GetObjectResult& WithContentRange(const char* value) { SetContentRange(value); return *this;}
317
319
322 inline const Aws::String& GetContentType() const{ return m_contentType; }
323 inline void SetContentType(const Aws::String& value) { m_contentType = value; }
324 inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
325 inline void SetContentType(const char* value) { m_contentType.assign(value); }
326 inline GetObjectResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
327 inline GetObjectResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
328 inline GetObjectResult& WithContentType(const char* value) { SetContentType(value); return *this;}
330
332
336 inline const Aws::Utils::DateTime& GetExpires() const{ return m_expires; }
337 inline void SetExpires(const Aws::Utils::DateTime& value) { m_expires = value; }
338 inline void SetExpires(Aws::Utils::DateTime&& value) { m_expires = std::move(value); }
339 inline GetObjectResult& WithExpires(const Aws::Utils::DateTime& value) { SetExpires(value); return *this;}
340 inline GetObjectResult& WithExpires(Aws::Utils::DateTime&& value) { SetExpires(std::move(value)); return *this;}
342
344
350 inline const Aws::String& GetWebsiteRedirectLocation() const{ return m_websiteRedirectLocation; }
351 inline void SetWebsiteRedirectLocation(const Aws::String& value) { m_websiteRedirectLocation = value; }
352 inline void SetWebsiteRedirectLocation(Aws::String&& value) { m_websiteRedirectLocation = std::move(value); }
353 inline void SetWebsiteRedirectLocation(const char* value) { m_websiteRedirectLocation.assign(value); }
355 inline GetObjectResult& WithWebsiteRedirectLocation(Aws::String&& value) { SetWebsiteRedirectLocation(std::move(value)); return *this;}
356 inline GetObjectResult& WithWebsiteRedirectLocation(const char* value) { SetWebsiteRedirectLocation(value); return *this;}
358
360
364 inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
365 inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryption = value; }
366 inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryption = std::move(value); }
370
372
375 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
376 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadata = value; }
377 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadata = std::move(value); }
378 inline GetObjectResult& WithMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetMetadata(value); return *this;}
379 inline GetObjectResult& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
380 inline GetObjectResult& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadata.emplace(key, value); return *this; }
381 inline GetObjectResult& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadata.emplace(std::move(key), value); return *this; }
382 inline GetObjectResult& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadata.emplace(key, std::move(value)); return *this; }
383 inline GetObjectResult& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadata.emplace(std::move(key), std::move(value)); return *this; }
384 inline GetObjectResult& AddMetadata(const char* key, Aws::String&& value) { m_metadata.emplace(key, std::move(value)); return *this; }
385 inline GetObjectResult& AddMetadata(Aws::String&& key, const char* value) { m_metadata.emplace(std::move(key), value); return *this; }
386 inline GetObjectResult& AddMetadata(const char* key, const char* value) { m_metadata.emplace(key, value); return *this; }
388
390
396 inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
397 inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithm = value; }
398 inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithm = std::move(value); }
399 inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithm.assign(value); }
401 inline GetObjectResult& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(std::move(value)); return *this;}
402 inline GetObjectResult& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
404
406
412 inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
413 inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5 = value; }
414 inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5 = std::move(value); }
415 inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5.assign(value); }
416 inline GetObjectResult& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
417 inline GetObjectResult& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(std::move(value)); return *this;}
418 inline GetObjectResult& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
420
422
426 inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
427 inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyId = value; }
428 inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyId = std::move(value); }
429 inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyId.assign(value); }
430 inline GetObjectResult& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
431 inline GetObjectResult& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(std::move(value)); return *this;}
432 inline GetObjectResult& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
434
436
440 inline bool GetBucketKeyEnabled() const{ return m_bucketKeyEnabled; }
441 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabled = value; }
442 inline GetObjectResult& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
444
446
452 inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
453 inline void SetStorageClass(const StorageClass& value) { m_storageClass = value; }
454 inline void SetStorageClass(StorageClass&& value) { m_storageClass = std::move(value); }
455 inline GetObjectResult& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
456 inline GetObjectResult& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
458
460
461 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
462 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
463 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
464 inline GetObjectResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
465 inline GetObjectResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
467
469
474 inline const ReplicationStatus& GetReplicationStatus() const{ return m_replicationStatus; }
475 inline void SetReplicationStatus(const ReplicationStatus& value) { m_replicationStatus = value; }
476 inline void SetReplicationStatus(ReplicationStatus&& value) { m_replicationStatus = std::move(value); }
478 inline GetObjectResult& WithReplicationStatus(ReplicationStatus&& value) { SetReplicationStatus(std::move(value)); return *this;}
480
482
487 inline int GetPartsCount() const{ return m_partsCount; }
488 inline void SetPartsCount(int value) { m_partsCount = value; }
489 inline GetObjectResult& WithPartsCount(int value) { SetPartsCount(value); return *this;}
491
493
500 inline int GetTagCount() const{ return m_tagCount; }
501 inline void SetTagCount(int value) { m_tagCount = value; }
502 inline GetObjectResult& WithTagCount(int value) { SetTagCount(value); return *this;}
504
506
510 inline const ObjectLockMode& GetObjectLockMode() const{ return m_objectLockMode; }
511 inline void SetObjectLockMode(const ObjectLockMode& value) { m_objectLockMode = value; }
512 inline void SetObjectLockMode(ObjectLockMode&& value) { m_objectLockMode = std::move(value); }
513 inline GetObjectResult& WithObjectLockMode(const ObjectLockMode& value) { SetObjectLockMode(value); return *this;}
514 inline GetObjectResult& WithObjectLockMode(ObjectLockMode&& value) { SetObjectLockMode(std::move(value)); return *this;}
516
518
522 inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const{ return m_objectLockRetainUntilDate; }
523 inline void SetObjectLockRetainUntilDate(const Aws::Utils::DateTime& value) { m_objectLockRetainUntilDate = value; }
524 inline void SetObjectLockRetainUntilDate(Aws::Utils::DateTime&& value) { m_objectLockRetainUntilDate = std::move(value); }
528
530
535 inline const ObjectLockLegalHoldStatus& GetObjectLockLegalHoldStatus() const{ return m_objectLockLegalHoldStatus; }
536 inline void SetObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus& value) { m_objectLockLegalHoldStatus = value; }
537 inline void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus&& value) { m_objectLockLegalHoldStatus = std::move(value); }
541
543
544 inline const Aws::String& GetId2() const{ return m_id2; }
545 inline void SetId2(const Aws::String& value) { m_id2 = value; }
546 inline void SetId2(Aws::String&& value) { m_id2 = std::move(value); }
547 inline void SetId2(const char* value) { m_id2.assign(value); }
548 inline GetObjectResult& WithId2(const Aws::String& value) { SetId2(value); return *this;}
549 inline GetObjectResult& WithId2(Aws::String&& value) { SetId2(std::move(value)); return *this;}
550 inline GetObjectResult& WithId2(const char* value) { SetId2(value); return *this;}
552
554
555 inline const Aws::String& GetRequestId() const{ return m_requestId; }
556 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
557 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
558 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
559 inline GetObjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
560 inline GetObjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
561 inline GetObjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
563
565
568 inline const Aws::String& GetExpiresString() const{ return m_expiresString; }
569 inline void SetExpiresString(const Aws::String& value) { m_expiresString = value; }
570 inline void SetExpiresString(Aws::String&& value) { m_expiresString = std::move(value); }
571 inline void SetExpiresString(const char* value) { m_expiresString.assign(value); }
572 inline GetObjectResult& WithExpiresString(const Aws::String& value) { SetExpiresString(value); return *this;}
573 inline GetObjectResult& WithExpiresString(Aws::String&& value) { SetExpiresString(std::move(value)); return *this;}
574 inline GetObjectResult& WithExpiresString(const char* value) { SetExpiresString(value); return *this;}
576 private:
577
579
580 bool m_deleteMarker;
581
582 Aws::String m_acceptRanges;
583
584 Aws::String m_expiration;
585
586 Aws::String m_restore;
587
588 Aws::Utils::DateTime m_lastModified;
589
590 long long m_contentLength;
591
592 Aws::String m_eTag;
593
594 Aws::String m_checksumCRC32;
595
596 Aws::String m_checksumCRC32C;
597
598 Aws::String m_checksumSHA1;
599
600 Aws::String m_checksumSHA256;
601
602 int m_missingMeta;
603
604 Aws::String m_versionId;
605
606 Aws::String m_cacheControl;
607
608 Aws::String m_contentDisposition;
609
610 Aws::String m_contentEncoding;
611
612 Aws::String m_contentLanguage;
613
614 Aws::String m_contentRange;
615
616 Aws::String m_contentType;
617
618 Aws::Utils::DateTime m_expires;
619
620 Aws::String m_websiteRedirectLocation;
621
622 ServerSideEncryption m_serverSideEncryption;
623
625
626 Aws::String m_sSECustomerAlgorithm;
627
628 Aws::String m_sSECustomerKeyMD5;
629
630 Aws::String m_sSEKMSKeyId;
631
632 bool m_bucketKeyEnabled;
633
634 StorageClass m_storageClass;
635
636 RequestCharged m_requestCharged;
637
638 ReplicationStatus m_replicationStatus;
639
640 int m_partsCount;
641
642 int m_tagCount;
643
644 ObjectLockMode m_objectLockMode;
645
646 Aws::Utils::DateTime m_objectLockRetainUntilDate;
647
648 ObjectLockLegalHoldStatus m_objectLockLegalHoldStatus;
649
650 Aws::String m_id2;
651
652 Aws::String m_requestId;
653
654 Aws::String m_expiresString;
655 };
656
657} // namespace Model
658} // namespace S3Crt
659} // namespace Aws
AWS_S3CRT_API GetObjectResult(GetObjectResult &&)
void SetReplicationStatus(ReplicationStatus &&value)
GetObjectResult & WithAcceptRanges(Aws::String &&value)
GetObjectResult & WithChecksumCRC32(const Aws::String &value)
GetObjectResult & WithContentLanguage(const char *value)
GetObjectResult & WithObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus &value)
GetObjectResult & WithRestore(const Aws::String &value)
GetObjectResult & WithId2(Aws::String &&value)
void SetObjectLockRetainUntilDate(Aws::Utils::DateTime &&value)
AWS_S3CRT_API GetObjectResult & operator=(GetObjectResult &&)
void SetSSECustomerAlgorithm(const Aws::String &value)
const Aws::String & GetCacheControl() const
GetObjectResult & WithChecksumCRC32C(const char *value)
void SetRestore(const Aws::String &value)
void SetContentEncoding(Aws::String &&value)
void SetExpiration(const char *value)
GetObjectResult & WithStorageClass(const StorageClass &value)
GetObjectResult & WithMissingMeta(int value)
void ReplaceBody(Aws::IOStream *body)
void SetContentRange(const char *value)
void SetObjectLockRetainUntilDate(const Aws::Utils::DateTime &value)
void SetSSEKMSKeyId(Aws::String &&value)
GetObjectResult & WithSSEKMSKeyId(const Aws::String &value)
GetObjectResult & WithContentDisposition(Aws::String &&value)
GetObjectResult & WithRequestId(const Aws::String &value)
GetObjectResult & WithChecksumSHA1(const char *value)
GetObjectResult & WithContentRange(const char *value)
GetObjectResult & WithChecksumSHA1(const Aws::String &value)
const Aws::String & GetWebsiteRedirectLocation() const
const Aws::String & GetSSECustomerAlgorithm() const
void SetAcceptRanges(Aws::String &&value)
void SetVersionId(Aws::String &&value)
GetObjectResult & WithDeleteMarker(bool value)
void SetContentDisposition(Aws::String &&value)
void SetRequestCharged(const RequestCharged &value)
void SetVersionId(const char *value)
GetObjectResult & WithCacheControl(Aws::String &&value)
void SetContentDisposition(const char *value)
void SetETag(const Aws::String &value)
void SetChecksumCRC32C(Aws::String &&value)
GetObjectResult & WithExpires(Aws::Utils::DateTime &&value)
void SetSSECustomerKeyMD5(const Aws::String &value)
GetObjectResult & WithContentType(const Aws::String &value)
GetObjectResult & WithRestore(Aws::String &&value)
void SetObjectLockMode(const ObjectLockMode &value)
void SetChecksumCRC32(const Aws::String &value)
GetObjectResult & operator=(const GetObjectResult &)=delete
GetObjectResult & WithLastModified(Aws::Utils::DateTime &&value)
void SetChecksumCRC32(const char *value)
GetObjectResult & WithWebsiteRedirectLocation(const char *value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
GetObjectResult & WithContentRange(const Aws::String &value)
GetObjectResult & WithRequestId(Aws::String &&value)
GetObjectResult & AddMetadata(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
GetObjectResult & WithServerSideEncryption(ServerSideEncryption &&value)
GetObjectResult & WithWebsiteRedirectLocation(const Aws::String &value)
GetObjectResult & WithSSEKMSKeyId(Aws::String &&value)
void SetChecksumSHA256(Aws::String &&value)
const Aws::String & GetContentLanguage() const
void SetContentEncoding(const Aws::String &value)
GetObjectResult & WithExpiresString(Aws::String &&value)
void SetStorageClass(const StorageClass &value)
GetObjectResult & WithId2(const char *value)
void SetReplicationStatus(const ReplicationStatus &value)
GetObjectResult & WithRequestId(const char *value)
void SetChecksumCRC32C(const char *value)
const Aws::String & GetETag() const
GetObjectResult & WithContentLanguage(Aws::String &&value)
GetObjectResult & WithVersionId(const char *value)
void SetContentEncoding(const char *value)
GetObjectResult & WithChecksumSHA256(const Aws::String &value)
const Aws::String & GetContentEncoding() const
void SetSSEKMSKeyId(const Aws::String &value)
GetObjectResult & WithChecksumSHA256(const char *value)
GetObjectResult & WithChecksumCRC32C(Aws::String &&value)
void SetChecksumSHA256(const Aws::String &value)
GetObjectResult & AddMetadata(const char *key, Aws::String &&value)
GetObjectResult & WithSSECustomerAlgorithm(Aws::String &&value)
const Aws::String & GetAcceptRanges() const
GetObjectResult & WithObjectLockMode(const ObjectLockMode &value)
const Aws::String & GetRestore() const
void SetWebsiteRedirectLocation(Aws::String &&value)
const Aws::String & GetContentDisposition() const
void SetExpiration(const Aws::String &value)
void SetChecksumCRC32(Aws::String &&value)
AWS_S3CRT_API GetObjectResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectResult & WithContentRange(Aws::String &&value)
void SetExpiresString(const char *value)
GetObjectResult & WithExpiration(const Aws::String &value)
GetObjectResult & WithRestore(const char *value)
void SetObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus &&value)
void SetContentRange(const Aws::String &value)
const Aws::String & GetContentRange() const
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetObjectLockLegalHoldStatus(const ObjectLockLegalHoldStatus &value)
void SetRequestCharged(RequestCharged &&value)
const ReplicationStatus & GetReplicationStatus() const
void SetExpiration(Aws::String &&value)
void SetChecksumSHA1(Aws::String &&value)
GetObjectResult & WithObjectLockMode(ObjectLockMode &&value)
void SetContentType(const char *value)
void SetWebsiteRedirectLocation(const char *value)
GetObjectResult & AddMetadata(Aws::String &&key, Aws::String &&value)
GetObjectResult & AddMetadata(const Aws::String &key, Aws::String &&value)
void SetRestore(const char *value)
GetObjectResult & AddMetadata(const Aws::String &key, const Aws::String &value)
const Aws::String & GetExpiresString() const
const ObjectLockMode & GetObjectLockMode() const
void SetChecksumSHA256(const char *value)
GetObjectResult & WithSSECustomerKeyMD5(const Aws::String &value)
GetObjectResult & WithExpiresString(const Aws::String &value)
void SetContentLanguage(Aws::String &&value)
void SetExpiresString(const Aws::String &value)
GetObjectResult & WithAcceptRanges(const char *value)
GetObjectResult & WithStorageClass(StorageClass &&value)
GetObjectResult & WithObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus &&value)
const Aws::String & GetChecksumSHA1() const
GetObjectResult & WithObjectLockRetainUntilDate(Aws::Utils::DateTime &&value)
const Aws::String & GetContentType() const
GetObjectResult & WithSSECustomerKeyMD5(Aws::String &&value)
GetObjectResult & WithSSECustomerKeyMD5(const char *value)
void SetLastModified(const Aws::Utils::DateTime &value)
GetObjectResult & WithExpiration(Aws::String &&value)
void SetETag(Aws::String &&value)
const Aws::String & GetChecksumCRC32C() const
void SetSSECustomerKeyMD5(Aws::String &&value)
void SetServerSideEncryption(ServerSideEncryption &&value)
void SetContentDisposition(const Aws::String &value)
GetObjectResult & WithCacheControl(const Aws::String &value)
const ObjectLockLegalHoldStatus & GetObjectLockLegalHoldStatus() const
const StorageClass & GetStorageClass() const
void SetObjectLockMode(ObjectLockMode &&value)
const Aws::String & GetRequestId() const
void SetContentLength(long long value)
GetObjectResult & WithContentType(Aws::String &&value)
const Aws::Utils::DateTime & GetExpires() const
GetObjectResult & WithChecksumCRC32C(const Aws::String &value)
void SetRestore(Aws::String &&value)
const RequestCharged & GetRequestCharged() const
GetObjectResult & WithSSECustomerAlgorithm(const Aws::String &value)
const Aws::String & GetSSEKMSKeyId() const
const Aws::String & GetId2() const
void SetLastModified(Aws::Utils::DateTime &&value)
void SetWebsiteRedirectLocation(const Aws::String &value)
GetObjectResult & WithContentLength(long long value)
GetObjectResult & WithPartsCount(int value)
GetObjectResult & WithId2(const Aws::String &value)
void SetExpires(Aws::Utils::DateTime &&value)
GetObjectResult & WithLastModified(const Aws::Utils::DateTime &value)
GetObjectResult & WithChecksumSHA256(Aws::String &&value)
GetObjectResult & AddMetadata(Aws::String &&key, const Aws::String &value)
GetObjectResult & WithSSECustomerAlgorithm(const char *value)
void SetSSECustomerKeyMD5(const char *value)
GetObjectResult(const GetObjectResult &)=delete
GetObjectResult & WithContentDisposition(const Aws::String &value)
GetObjectResult & WithETag(const Aws::String &value)
GetObjectResult & WithObjectLockRetainUntilDate(const Aws::Utils::DateTime &value)
void SetContentLanguage(const Aws::String &value)
void SetCacheControl(const Aws::String &value)
GetObjectResult & WithExpires(const Aws::Utils::DateTime &value)
void SetCacheControl(const char *value)
const Aws::Utils::DateTime & GetLastModified() const
void SetContentType(Aws::String &&value)
GetObjectResult & WithContentEncoding(Aws::String &&value)
GetObjectResult & WithReplicationStatus(ReplicationStatus &&value)
void SetChecksumSHA1(const Aws::String &value)
void SetId2(Aws::String &&value)
GetObjectResult & WithChecksumSHA1(Aws::String &&value)
void SetContentRange(Aws::String &&value)
GetObjectResult & WithVersionId(Aws::String &&value)
GetObjectResult & WithChecksumCRC32(const char *value)
GetObjectResult & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
void SetSSECustomerAlgorithm(Aws::String &&value)
GetObjectResult & WithServerSideEncryption(const ServerSideEncryption &value)
GetObjectResult & WithAcceptRanges(const Aws::String &value)
GetObjectResult & WithETag(const char *value)
GetObjectResult & WithTagCount(int value)
const Aws::Utils::DateTime & GetObjectLockRetainUntilDate() const
void SetStorageClass(StorageClass &&value)
GetObjectResult & WithWebsiteRedirectLocation(Aws::String &&value)
const ServerSideEncryption & GetServerSideEncryption() const
void SetRequestId(Aws::String &&value)
GetObjectResult & WithRequestCharged(RequestCharged &&value)
GetObjectResult & WithSSEKMSKeyId(const char *value)
GetObjectResult & WithContentLanguage(const Aws::String &value)
GetObjectResult & WithChecksumCRC32(Aws::String &&value)
void SetServerSideEncryption(const ServerSideEncryption &value)
GetObjectResult & WithETag(Aws::String &&value)
GetObjectResult & WithBucketKeyEnabled(bool value)
void SetId2(const Aws::String &value)
void SetSSEKMSKeyId(const char *value)
GetObjectResult & WithExpiresString(const char *value)
void SetExpires(const Aws::Utils::DateTime &value)
GetObjectResult & WithVersionId(const Aws::String &value)
void SetContentType(const Aws::String &value)
void SetChecksumCRC32C(const Aws::String &value)
const Aws::String & GetVersionId() const
GetObjectResult & WithReplicationStatus(const ReplicationStatus &value)
void SetExpiresString(Aws::String &&value)
void SetRequestId(const char *value)
void SetAcceptRanges(const char *value)
void SetSSECustomerAlgorithm(const char *value)
GetObjectResult & WithContentType(const char *value)
void SetVersionId(const Aws::String &value)
const Aws::String & GetChecksumCRC32() const
const Aws::String & GetSSECustomerKeyMD5() const
GetObjectResult & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
GetObjectResult & AddMetadata(Aws::String &&key, const char *value)
void SetContentLanguage(const char *value)
GetObjectResult & WithContentEncoding(const Aws::String &value)
Aws::IOStream & GetBody() const
void SetAcceptRanges(const Aws::String &value)
AWS_S3CRT_API GetObjectResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetCacheControl(Aws::String &&value)
GetObjectResult & WithContentDisposition(const char *value)
GetObjectResult & WithCacheControl(const char *value)
GetObjectResult & WithExpiration(const char *value)
void SetRequestId(const Aws::String &value)
const Aws::String & GetChecksumSHA256() const
void SetChecksumSHA1(const char *value)
GetObjectResult & WithRequestCharged(const RequestCharged &value)
GetObjectResult & WithContentEncoding(const char *value)
const Aws::String & GetExpiration() 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