AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetObjectAttributesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3-crt/S3Crt_EXPORTS.h>
11#include <aws/s3-crt/model/Checksum.h>
12#include <aws/s3-crt/model/GetObjectAttributesParts.h>
13#include <aws/s3-crt/model/RequestCharged.h>
14#include <aws/s3-crt/model/StorageClass.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Xml {
24class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace S3Crt {
28namespace Model {
30 public:
31 AWS_S3CRT_API GetObjectAttributesResult() = default;
34
36
45 inline bool GetDeleteMarker() const { return m_deleteMarker; }
46 inline void SetDeleteMarker(bool value) {
47 m_deleteMarkerHasBeenSet = true;
48 m_deleteMarker = value;
49 }
51 SetDeleteMarker(value);
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
61 template <typename LastModifiedT = Aws::Utils::DateTime>
62 void SetLastModified(LastModifiedT&& value) {
63 m_lastModifiedHasBeenSet = true;
64 m_lastModified = std::forward<LastModifiedT>(value);
65 }
66 template <typename LastModifiedT = Aws::Utils::DateTime>
68 SetLastModified(std::forward<LastModifiedT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetVersionId() const { return m_versionId; }
79 template <typename VersionIdT = Aws::String>
80 void SetVersionId(VersionIdT&& value) {
81 m_versionIdHasBeenSet = true;
82 m_versionId = std::forward<VersionIdT>(value);
83 }
84 template <typename VersionIdT = Aws::String>
86 SetVersionId(std::forward<VersionIdT>(value));
87 return *this;
88 }
90
92
93 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
94 inline void SetRequestCharged(RequestCharged value) {
95 m_requestChargedHasBeenSet = true;
96 m_requestCharged = value;
97 }
99 SetRequestCharged(value);
100 return *this;
101 }
103
105
109 inline const Aws::String& GetETag() const { return m_eTag; }
110 template <typename ETagT = Aws::String>
111 void SetETag(ETagT&& value) {
112 m_eTagHasBeenSet = true;
113 m_eTag = std::forward<ETagT>(value);
114 }
115 template <typename ETagT = Aws::String>
117 SetETag(std::forward<ETagT>(value));
118 return *this;
119 }
121
123
126 inline const Checksum& GetChecksum() const { return m_checksum; }
127 template <typename ChecksumT = Checksum>
128 void SetChecksum(ChecksumT&& value) {
129 m_checksumHasBeenSet = true;
130 m_checksum = std::forward<ChecksumT>(value);
131 }
132 template <typename ChecksumT = Checksum>
134 SetChecksum(std::forward<ChecksumT>(value));
135 return *this;
136 }
138
140
143 inline const GetObjectAttributesParts& GetObjectParts() const { return m_objectParts; }
144 template <typename ObjectPartsT = GetObjectAttributesParts>
145 void SetObjectParts(ObjectPartsT&& value) {
146 m_objectPartsHasBeenSet = true;
147 m_objectParts = std::forward<ObjectPartsT>(value);
148 }
149 template <typename ObjectPartsT = GetObjectAttributesParts>
151 SetObjectParts(std::forward<ObjectPartsT>(value));
152 return *this;
153 }
155
157
167 inline StorageClass GetStorageClass() const { return m_storageClass; }
168 inline void SetStorageClass(StorageClass value) {
169 m_storageClassHasBeenSet = true;
170 m_storageClass = value;
171 }
173 SetStorageClass(value);
174 return *this;
175 }
177
179
182 inline long long GetObjectSize() const { return m_objectSize; }
183 inline void SetObjectSize(long long value) {
184 m_objectSizeHasBeenSet = true;
185 m_objectSize = value;
186 }
187 inline GetObjectAttributesResult& WithObjectSize(long long value) {
188 SetObjectSize(value);
189 return *this;
190 }
192
194
195 inline const Aws::String& GetRequestId() const { return m_requestId; }
196 template <typename RequestIdT = Aws::String>
197 void SetRequestId(RequestIdT&& value) {
198 m_requestIdHasBeenSet = true;
199 m_requestId = std::forward<RequestIdT>(value);
200 }
201 template <typename RequestIdT = Aws::String>
203 SetRequestId(std::forward<RequestIdT>(value));
204 return *this;
205 }
207 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
208
209 private:
210 bool m_deleteMarker{false};
211
212 Aws::Utils::DateTime m_lastModified{};
213
214 Aws::String m_versionId;
215
216 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
217
218 Aws::String m_eTag;
219
220 Checksum m_checksum;
221
222 GetObjectAttributesParts m_objectParts;
223
224 StorageClass m_storageClass{StorageClass::NOT_SET};
225
226 long long m_objectSize{0};
227
228 Aws::String m_requestId;
229 Aws::Http::HttpResponseCode m_HttpResponseCode;
230 bool m_deleteMarkerHasBeenSet = false;
231 bool m_lastModifiedHasBeenSet = false;
232 bool m_versionIdHasBeenSet = false;
233 bool m_requestChargedHasBeenSet = false;
234 bool m_eTagHasBeenSet = false;
235 bool m_checksumHasBeenSet = false;
236 bool m_objectPartsHasBeenSet = false;
237 bool m_storageClassHasBeenSet = false;
238 bool m_objectSizeHasBeenSet = false;
239 bool m_requestIdHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace S3Crt
244} // namespace Aws
GetObjectAttributesResult & WithObjectParts(ObjectPartsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetObjectAttributesResult & WithRequestId(RequestIdT &&value)
GetObjectAttributesResult & WithStorageClass(StorageClass value)
AWS_S3CRT_API GetObjectAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetObjectAttributesResult & WithLastModified(LastModifiedT &&value)
GetObjectAttributesResult & WithVersionId(VersionIdT &&value)
AWS_S3CRT_API GetObjectAttributesResult()=default
GetObjectAttributesResult & WithDeleteMarker(bool value)
const GetObjectAttributesParts & GetObjectParts() const
GetObjectAttributesResult & WithChecksum(ChecksumT &&value)
AWS_S3CRT_API GetObjectAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetObjectAttributesResult & WithETag(ETagT &&value)
GetObjectAttributesResult & WithObjectSize(long long value)
const Aws::Utils::DateTime & GetLastModified() const
GetObjectAttributesResult & WithRequestCharged(RequestCharged value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument