AWS SDK for C++  0.12.9
AWS SDK for C++
GetObjectResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/s3/S3_EXPORTS.h>
18 #include <aws/core/utils/Array.h>
26 
27 namespace Aws
28 {
29 template<typename RESULT_TYPE>
30 class AmazonWebServiceResult;
31 
32 namespace S3
33 {
34 namespace Model
35 {
37  {
38  public:
40  //We have to define these because Microsoft doesn't auto generate them
42  GetObjectResult& operator=(GetObjectResult&&);
43  //we delete these because Microsoft doesn't handle move generation correctly
44  //and we therefore don't trust them to get it right here either.
45  GetObjectResult(const GetObjectResult&) = delete;
46  GetObjectResult& operator=(const GetObjectResult&) = delete;
47 
48 
51 
52 
56  inline Aws::IOStream& GetBody() { return m_body.GetUnderlyingStream(); }
57 
62  inline bool GetDeleteMarker() const{ return m_deleteMarker; }
63 
68  inline void SetDeleteMarker(bool value) { m_deleteMarker = value; }
69 
74  inline GetObjectResult& WithDeleteMarker(bool value) { SetDeleteMarker(value); return *this;}
75 
76 
77  inline const Aws::String& GetAcceptRanges() const{ return m_acceptRanges; }
78 
79 
80  inline void SetAcceptRanges(const Aws::String& value) { m_acceptRanges = value; }
81 
82 
83  inline void SetAcceptRanges(Aws::String&& value) { m_acceptRanges = value; }
84 
85 
86  inline void SetAcceptRanges(const char* value) { m_acceptRanges.assign(value); }
87 
88 
89  inline GetObjectResult& WithAcceptRanges(const Aws::String& value) { SetAcceptRanges(value); return *this;}
90 
91 
92  inline GetObjectResult& WithAcceptRanges(Aws::String&& value) { SetAcceptRanges(value); return *this;}
93 
94 
95  inline GetObjectResult& WithAcceptRanges(const char* value) { SetAcceptRanges(value); return *this;}
96 
103  inline const Aws::String& GetExpiration() const{ return m_expiration; }
104 
111  inline void SetExpiration(const Aws::String& value) { m_expiration = value; }
112 
119  inline void SetExpiration(Aws::String&& value) { m_expiration = value; }
120 
127  inline void SetExpiration(const char* value) { m_expiration.assign(value); }
128 
135  inline GetObjectResult& WithExpiration(const Aws::String& value) { SetExpiration(value); return *this;}
136 
143  inline GetObjectResult& WithExpiration(Aws::String&& value) { SetExpiration(value); return *this;}
144 
151  inline GetObjectResult& WithExpiration(const char* value) { SetExpiration(value); return *this;}
152 
157  inline const Aws::String& GetRestore() const{ return m_restore; }
158 
163  inline void SetRestore(const Aws::String& value) { m_restore = value; }
164 
169  inline void SetRestore(Aws::String&& value) { m_restore = value; }
170 
175  inline void SetRestore(const char* value) { m_restore.assign(value); }
176 
181  inline GetObjectResult& WithRestore(const Aws::String& value) { SetRestore(value); return *this;}
182 
187  inline GetObjectResult& WithRestore(Aws::String&& value) { SetRestore(value); return *this;}
188 
193  inline GetObjectResult& WithRestore(const char* value) { SetRestore(value); return *this;}
194 
198  inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
199 
203  inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModified = value; }
204 
208  inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModified = value; }
209 
213  inline GetObjectResult& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
214 
218  inline GetObjectResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(value); return *this;}
219 
223  inline long long GetContentLength() const{ return m_contentLength; }
224 
228  inline void SetContentLength(long long value) { m_contentLength = value; }
229 
233  inline GetObjectResult& WithContentLength(long long value) { SetContentLength(value); return *this;}
234 
239  inline const Aws::String& GetETag() const{ return m_eTag; }
240 
245  inline void SetETag(const Aws::String& value) { m_eTag = value; }
246 
251  inline void SetETag(Aws::String&& value) { m_eTag = value; }
252 
257  inline void SetETag(const char* value) { m_eTag.assign(value); }
258 
263  inline GetObjectResult& WithETag(const Aws::String& value) { SetETag(value); return *this;}
264 
269  inline GetObjectResult& WithETag(Aws::String&& value) { SetETag(value); return *this;}
270 
275  inline GetObjectResult& WithETag(const char* value) { SetETag(value); return *this;}
276 
283  inline long GetMissingMeta() const{ return m_missingMeta; }
284 
291  inline void SetMissingMeta(long value) { m_missingMeta = value; }
292 
299  inline GetObjectResult& WithMissingMeta(long value) { SetMissingMeta(value); return *this;}
300 
304  inline const Aws::String& GetVersionId() const{ return m_versionId; }
305 
309  inline void SetVersionId(const Aws::String& value) { m_versionId = value; }
310 
314  inline void SetVersionId(Aws::String&& value) { m_versionId = value; }
315 
319  inline void SetVersionId(const char* value) { m_versionId.assign(value); }
320 
324  inline GetObjectResult& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
325 
329  inline GetObjectResult& WithVersionId(Aws::String&& value) { SetVersionId(value); return *this;}
330 
334  inline GetObjectResult& WithVersionId(const char* value) { SetVersionId(value); return *this;}
335 
339  inline const Aws::String& GetCacheControl() const{ return m_cacheControl; }
340 
344  inline void SetCacheControl(const Aws::String& value) { m_cacheControl = value; }
345 
349  inline void SetCacheControl(Aws::String&& value) { m_cacheControl = value; }
350 
354  inline void SetCacheControl(const char* value) { m_cacheControl.assign(value); }
355 
359  inline GetObjectResult& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;}
360 
364  inline GetObjectResult& WithCacheControl(Aws::String&& value) { SetCacheControl(value); return *this;}
365 
369  inline GetObjectResult& WithCacheControl(const char* value) { SetCacheControl(value); return *this;}
370 
374  inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; }
375 
379  inline void SetContentDisposition(const Aws::String& value) { m_contentDisposition = value; }
380 
384  inline void SetContentDisposition(Aws::String&& value) { m_contentDisposition = value; }
385 
389  inline void SetContentDisposition(const char* value) { m_contentDisposition.assign(value); }
390 
394  inline GetObjectResult& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;}
395 
399  inline GetObjectResult& WithContentDisposition(Aws::String&& value) { SetContentDisposition(value); return *this;}
400 
404  inline GetObjectResult& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;}
405 
411  inline const Aws::String& GetContentEncoding() const{ return m_contentEncoding; }
412 
418  inline void SetContentEncoding(const Aws::String& value) { m_contentEncoding = value; }
419 
425  inline void SetContentEncoding(Aws::String&& value) { m_contentEncoding = value; }
426 
432  inline void SetContentEncoding(const char* value) { m_contentEncoding.assign(value); }
433 
439  inline GetObjectResult& WithContentEncoding(const Aws::String& value) { SetContentEncoding(value); return *this;}
440 
446  inline GetObjectResult& WithContentEncoding(Aws::String&& value) { SetContentEncoding(value); return *this;}
447 
453  inline GetObjectResult& WithContentEncoding(const char* value) { SetContentEncoding(value); return *this;}
454 
458  inline const Aws::String& GetContentLanguage() const{ return m_contentLanguage; }
459 
463  inline void SetContentLanguage(const Aws::String& value) { m_contentLanguage = value; }
464 
468  inline void SetContentLanguage(Aws::String&& value) { m_contentLanguage = value; }
469 
473  inline void SetContentLanguage(const char* value) { m_contentLanguage.assign(value); }
474 
478  inline GetObjectResult& WithContentLanguage(const Aws::String& value) { SetContentLanguage(value); return *this;}
479 
483  inline GetObjectResult& WithContentLanguage(Aws::String&& value) { SetContentLanguage(value); return *this;}
484 
488  inline GetObjectResult& WithContentLanguage(const char* value) { SetContentLanguage(value); return *this;}
489 
493  inline const Aws::String& GetContentRange() const{ return m_contentRange; }
494 
498  inline void SetContentRange(const Aws::String& value) { m_contentRange = value; }
499 
503  inline void SetContentRange(Aws::String&& value) { m_contentRange = value; }
504 
508  inline void SetContentRange(const char* value) { m_contentRange.assign(value); }
509 
513  inline GetObjectResult& WithContentRange(const Aws::String& value) { SetContentRange(value); return *this;}
514 
518  inline GetObjectResult& WithContentRange(Aws::String&& value) { SetContentRange(value); return *this;}
519 
523  inline GetObjectResult& WithContentRange(const char* value) { SetContentRange(value); return *this;}
524 
528  inline const Aws::String& GetContentType() const{ return m_contentType; }
529 
533  inline void SetContentType(const Aws::String& value) { m_contentType = value; }
534 
538  inline void SetContentType(Aws::String&& value) { m_contentType = value; }
539 
543  inline void SetContentType(const char* value) { m_contentType.assign(value); }
544 
548  inline GetObjectResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
549 
553  inline GetObjectResult& WithContentType(Aws::String&& value) { SetContentType(value); return *this;}
554 
558  inline GetObjectResult& WithContentType(const char* value) { SetContentType(value); return *this;}
559 
563  inline const Aws::Utils::DateTime& GetExpires() const{ return m_expires; }
564 
568  inline void SetExpires(const Aws::Utils::DateTime& value) { m_expires = value; }
569 
573  inline void SetExpires(Aws::Utils::DateTime&& value) { m_expires = value; }
574 
578  inline GetObjectResult& WithExpires(const Aws::Utils::DateTime& value) { SetExpires(value); return *this;}
579 
583  inline GetObjectResult& WithExpires(Aws::Utils::DateTime&& value) { SetExpires(value); return *this;}
584 
590  inline const Aws::String& GetWebsiteRedirectLocation() const{ return m_websiteRedirectLocation; }
591 
597  inline void SetWebsiteRedirectLocation(const Aws::String& value) { m_websiteRedirectLocation = value; }
598 
604  inline void SetWebsiteRedirectLocation(Aws::String&& value) { m_websiteRedirectLocation = value; }
605 
611  inline void SetWebsiteRedirectLocation(const char* value) { m_websiteRedirectLocation.assign(value); }
612 
618  inline GetObjectResult& WithWebsiteRedirectLocation(const Aws::String& value) { SetWebsiteRedirectLocation(value); return *this;}
619 
625  inline GetObjectResult& WithWebsiteRedirectLocation(Aws::String&& value) { SetWebsiteRedirectLocation(value); return *this;}
626 
632  inline GetObjectResult& WithWebsiteRedirectLocation(const char* value) { SetWebsiteRedirectLocation(value); return *this;}
633 
638  inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
639 
644  inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryption = value; }
645 
650  inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryption = value; }
651 
656  inline GetObjectResult& WithServerSideEncryption(const ServerSideEncryption& value) { SetServerSideEncryption(value); return *this;}
657 
662  inline GetObjectResult& WithServerSideEncryption(ServerSideEncryption&& value) { SetServerSideEncryption(value); return *this;}
663 
667  inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
668 
672  inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadata = value; }
673 
677  inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadata = value; }
678 
682  inline GetObjectResult& WithMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetMetadata(value); return *this;}
683 
687  inline GetObjectResult& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(value); return *this;}
688 
692  inline GetObjectResult& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadata[key] = value; return *this; }
693 
697  inline GetObjectResult& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadata[key] = value; return *this; }
698 
702  inline GetObjectResult& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadata[key] = value; return *this; }
703 
707  inline GetObjectResult& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadata[key] = value; return *this; }
708 
712  inline GetObjectResult& AddMetadata(const char* key, Aws::String&& value) { m_metadata[key] = value; return *this; }
713 
717  inline GetObjectResult& AddMetadata(Aws::String&& key, const char* value) { m_metadata[key] = value; return *this; }
718 
722  inline GetObjectResult& AddMetadata(const char* key, const char* value) { m_metadata[key] = value; return *this; }
723 
728  inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
729 
734  inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithm = value; }
735 
740  inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithm = value; }
741 
746  inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithm.assign(value); }
747 
752  inline GetObjectResult& WithSSECustomerAlgorithm(const Aws::String& value) { SetSSECustomerAlgorithm(value); return *this;}
753 
758  inline GetObjectResult& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(value); return *this;}
759 
764  inline GetObjectResult& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
765 
771  inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
772 
778  inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5 = value; }
779 
785  inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5 = value; }
786 
792  inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5.assign(value); }
793 
799  inline GetObjectResult& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
800 
806  inline GetObjectResult& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(value); return *this;}
807 
813  inline GetObjectResult& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
814 
819  inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
820 
825  inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyId = value; }
826 
831  inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyId = value; }
832 
837  inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyId.assign(value); }
838 
843  inline GetObjectResult& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
844 
849  inline GetObjectResult& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(value); return *this;}
850 
855  inline GetObjectResult& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
856 
857 
858  inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
859 
860 
861  inline void SetStorageClass(const StorageClass& value) { m_storageClass = value; }
862 
863 
864  inline void SetStorageClass(StorageClass&& value) { m_storageClass = value; }
865 
866 
867  inline GetObjectResult& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
868 
869 
870  inline GetObjectResult& WithStorageClass(StorageClass&& value) { SetStorageClass(value); return *this;}
871 
872 
873  inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
874 
875 
876  inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
877 
878 
879  inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = value; }
880 
881 
882  inline GetObjectResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
883 
884 
885  inline GetObjectResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(value); return *this;}
886 
887 
888  inline const ReplicationStatus& GetReplicationStatus() const{ return m_replicationStatus; }
889 
890 
891  inline void SetReplicationStatus(const ReplicationStatus& value) { m_replicationStatus = value; }
892 
893 
894  inline void SetReplicationStatus(ReplicationStatus&& value) { m_replicationStatus = value; }
895 
896 
897  inline GetObjectResult& WithReplicationStatus(const ReplicationStatus& value) { SetReplicationStatus(value); return *this;}
898 
899 
900  inline GetObjectResult& WithReplicationStatus(ReplicationStatus&& value) { SetReplicationStatus(value); return *this;}
901 
902  private:
904  bool m_deleteMarker;
905  Aws::String m_acceptRanges;
906  Aws::String m_expiration;
907  Aws::String m_restore;
908  Aws::Utils::DateTime m_lastModified;
909  long long m_contentLength;
910  Aws::String m_eTag;
911  long m_missingMeta;
912  Aws::String m_versionId;
913  Aws::String m_cacheControl;
914  Aws::String m_contentDisposition;
915  Aws::String m_contentEncoding;
916  Aws::String m_contentLanguage;
917  Aws::String m_contentRange;
918  Aws::String m_contentType;
919  Aws::Utils::DateTime m_expires;
920  Aws::String m_websiteRedirectLocation;
921  ServerSideEncryption m_serverSideEncryption;
923  Aws::String m_sSECustomerAlgorithm;
924  Aws::String m_sSECustomerKeyMD5;
925  Aws::String m_sSEKMSKeyId;
926  StorageClass m_storageClass;
927  RequestCharged m_requestCharged;
928  ReplicationStatus m_replicationStatus;
929  };
930 
931 } // namespace Model
932 } // namespace S3
933 } // namespace Aws
void SetContentLanguage(Aws::String &&value)
GetObjectResult & WithRestore(const Aws::String &value)
GetObjectResult & WithSSECustomerAlgorithm(const Aws::String &value)
void SetStorageClass(StorageClass &&value)
GetObjectResult & WithReplicationStatus(const ReplicationStatus &value)
GetObjectResult & WithServerSideEncryption(ServerSideEncryption &&value)
const Aws::String & GetAcceptRanges() const
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
GetObjectResult & WithRequestCharged(RequestCharged &&value)
void SetCacheControl(const Aws::String &value)
const Aws::String & GetWebsiteRedirectLocation() const
void SetVersionId(Aws::String &&value)
void SetVersionId(const char *value)
GetObjectResult & WithLastModified(Aws::Utils::DateTime &&value)
void SetSSEKMSKeyId(const char *value)
void SetContentRange(Aws::String &&value)
GetObjectResult & WithWebsiteRedirectLocation(const char *value)
GetObjectResult & WithExpires(const Aws::Utils::DateTime &value)
void SetRestore(const char *value)
void SetSSECustomerAlgorithm(const char *value)
const Aws::String & GetCacheControl() const
GetObjectResult & WithVersionId(Aws::String &&value)
GetObjectResult & WithETag(Aws::String &&value)
GetObjectResult & WithCacheControl(const char *value)
const Aws::String & GetContentLanguage() const
const Aws::String & GetContentType() const
void SetContentType(const char *value)
GetObjectResult & WithSSECustomerKeyMD5(Aws::String &&value)
void SetContentType(Aws::String &&value)
GetObjectResult & WithContentDisposition(Aws::String &&value)
GetObjectResult & WithExpiration(const Aws::String &value)
void SetAcceptRanges(const Aws::String &value)
void SetContentLanguage(const Aws::String &value)
GetObjectResult & WithVersionId(const Aws::String &value)
void SetContentEncoding(const Aws::String &value)
void SetSSECustomerKeyMD5(const char *value)
GetObjectResult & WithContentDisposition(const Aws::String &value)
void SetAcceptRanges(Aws::String &&value)
GetObjectResult & AddMetadata(Aws::String &&key, Aws::String &&value)
GetObjectResult & WithContentType(Aws::String &&value)
GetObjectResult & WithAcceptRanges(const Aws::String &value)
void SetCacheControl(const char *value)
GetObjectResult & AddMetadata(const char *key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
GetObjectResult & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Utils::DateTime & GetLastModified() const
void SetServerSideEncryption(ServerSideEncryption &&value)
GetObjectResult & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetServerSideEncryption(const ServerSideEncryption &value)
GetObjectResult & WithRestore(Aws::String &&value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
GetObjectResult & WithContentRange(const char *value)
GetObjectResult & WithServerSideEncryption(const ServerSideEncryption &value)
void SetExpiration(const Aws::String &value)
GetObjectResult & WithMissingMeta(long value)
GetObjectResult & WithExpiration(const char *value)
GetObjectResult & WithETag(const char *value)
GetObjectResult & WithSSEKMSKeyId(Aws::String &&value)
void SetReplicationStatus(const ReplicationStatus &value)
void SetETag(const char *value)
GetObjectResult & AddMetadata(Aws::String &&key, const char *value)
const Aws::String & GetContentRange() const
GetObjectResult & WithContentDisposition(const char *value)
GetObjectResult & AddMetadata(const Aws::String &key, const Aws::String &value)
GetObjectResult & WithContentEncoding(Aws::String &&value)
const ServerSideEncryption & GetServerSideEncryption() const
GetObjectResult & WithSSEKMSKeyId(const char *value)
const RequestCharged & GetRequestCharged() const
const ReplicationStatus & GetReplicationStatus() const
void SetExpires(Aws::Utils::DateTime &&value)
GetObjectResult & WithStorageClass(StorageClass &&value)
const Aws::String & GetVersionId() const
void SetVersionId(const Aws::String &value)
void SetSSECustomerAlgorithm(Aws::String &&value)
void SetRequestCharged(RequestCharged &&value)
GetObjectResult & WithRequestCharged(const RequestCharged &value)
void SetETag(Aws::String &&value)
GetObjectResult & WithExpiration(Aws::String &&value)
GetObjectResult & WithStorageClass(const StorageClass &value)
void SetRestore(Aws::String &&value)
void SetExpires(const Aws::Utils::DateTime &value)
void SetExpiration(const char *value)
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:32
GetObjectResult & WithETag(const Aws::String &value)
GetObjectResult & AddMetadata(const char *key, Aws::String &&value)
void SetContentDisposition(Aws::String &&value)
GetObjectResult & WithRestore(const char *value)
void SetETag(const Aws::String &value)
GetObjectResult & WithWebsiteRedirectLocation(const Aws::String &value)
void SetContentLanguage(const char *value)
GetObjectResult & WithContentLength(long long value)
GetObjectResult & WithWebsiteRedirectLocation(Aws::String &&value)
void SetContentType(const Aws::String &value)
GetObjectResult & AddMetadata(const Aws::String &key, Aws::String &&value)
GetObjectResult & WithContentEncoding(const char *value)
void SetRestore(const Aws::String &value)
const Aws::String & GetSSECustomerKeyMD5() const
GetObjectResult & WithContentEncoding(const Aws::String &value)
GetObjectResult & WithCacheControl(Aws::String &&value)
void SetWebsiteRedirectLocation(const Aws::String &value)
void SetAcceptRanges(const char *value)
const Aws::String & GetExpiration() const
GetObjectResult & WithSSEKMSKeyId(const Aws::String &value)
GetObjectResult & WithAcceptRanges(const char *value)
GetObjectResult & WithContentRange(const Aws::String &value)
void SetSSECustomerKeyMD5(Aws::String &&value)
long long GetContentLength() const
GetObjectResult & WithContentRange(Aws::String &&value)
void SetCacheControl(Aws::String &&value)
void SetContentEncoding(Aws::String &&value)
GetObjectResult & WithExpires(Aws::Utils::DateTime &&value)
const Aws::String & GetSSECustomerAlgorithm() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetSSEKMSKeyId(const Aws::String &value)
void SetStorageClass(const StorageClass &value)
GetObjectResult & WithContentType(const Aws::String &value)
void SetContentEncoding(const char *value)
void SetSSECustomerKeyMD5(const Aws::String &value)
void SetLastModified(const Aws::Utils::DateTime &value)
GetObjectResult & WithSSECustomerKeyMD5(const Aws::String &value)
void SetContentLength(long long value)
GetObjectResult & WithContentLanguage(Aws::String &&value)
void SetSSECustomerAlgorithm(const Aws::String &value)
GetObjectResult & WithVersionId(const char *value)
const Aws::String & GetETag() const
void SetLastModified(Aws::Utils::DateTime &&value)
void SetRequestCharged(const RequestCharged &value)
void SetContentRange(const Aws::String &value)
GetObjectResult & WithSSECustomerKeyMD5(const char *value)
const Aws::String & GetSSEKMSKeyId() const
void SetContentRange(const char *value)
void SetContentDisposition(const Aws::String &value)
GetObjectResult & WithDeleteMarker(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetWebsiteRedirectLocation(const char *value)
void SetContentDisposition(const char *value)
void SetSSEKMSKeyId(Aws::String &&value)
GetObjectResult & WithContentLanguage(const Aws::String &value)
GetObjectResult & WithReplicationStatus(ReplicationStatus &&value)
const Aws::String & GetContentDisposition() const
const Aws::String & GetContentEncoding() const
GetObjectResult & WithCacheControl(const Aws::String &value)
GetObjectResult & WithLastModified(const Aws::Utils::DateTime &value)
const StorageClass & GetStorageClass() const
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetReplicationStatus(ReplicationStatus &&value)
GetObjectResult & WithAcceptRanges(Aws::String &&value)
GetObjectResult & WithContentLanguage(const char *value)
const Aws::String & GetRestore() const
GetObjectResult & WithContentType(const char *value)
GetObjectResult & WithSSECustomerAlgorithm(Aws::String &&value)
void SetWebsiteRedirectLocation(Aws::String &&value)
const Aws::Utils::DateTime & GetExpires() const
JSON (JavaScript Object Notation).
GetObjectResult & AddMetadata(Aws::String &&key, const Aws::String &value)
GetObjectResult & WithSSECustomerAlgorithm(const char *value)
void SetExpiration(Aws::String &&value)