AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
GetObjectAnnotationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/stream/ResponseStream.h>
12#include <aws/s3-crt/S3Crt_EXPORTS.h>
13#include <aws/s3-crt/model/ChecksumType.h>
14#include <aws/s3-crt/model/ReplicationStatus.h>
15#include <aws/s3-crt/model/RequestCharged.h>
16#include <aws/s3-crt/model/ServerSideEncryption.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace S3Crt {
25namespace Model {
27 public:
28 AWS_S3CRT_API GetObjectAnnotationResult() = default;
31 // we delete these because Microsoft doesn't handle move generation correctly
32 // and we therefore don't trust them to get it right here either.
35
38
40
43 inline Aws::IOStream& GetAnnotationPayload() const { return m_annotationPayload.GetUnderlyingStream(); }
44 inline void ReplaceBody(Aws::IOStream* body) { m_annotationPayload = Aws::Utils::Stream::ResponseStream(body); }
45
47
49
52 inline const Aws::String& GetObjectVersionId() const { return m_objectVersionId; }
53 template <typename ObjectVersionIdT = Aws::String>
54 void SetObjectVersionId(ObjectVersionIdT&& value) {
55 m_objectVersionIdHasBeenSet = true;
56 m_objectVersionId = std::forward<ObjectVersionIdT>(value);
57 }
58 template <typename ObjectVersionIdT = Aws::String>
60 SetObjectVersionId(std::forward<ObjectVersionIdT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
70 template <typename LastModifiedT = Aws::Utils::DateTime>
71 void SetLastModified(LastModifiedT&& value) {
72 m_lastModifiedHasBeenSet = true;
73 m_lastModified = std::forward<LastModifiedT>(value);
74 }
75 template <typename LastModifiedT = Aws::Utils::DateTime>
77 SetLastModified(std::forward<LastModifiedT>(value));
78 return *this;
79 }
81
83
86 inline long long GetContentLength() const { return m_contentLength; }
87 inline void SetContentLength(long long value) {
88 m_contentLengthHasBeenSet = true;
89 m_contentLength = value;
90 }
92 SetContentLength(value);
93 return *this;
94 }
96
98
101 inline const Aws::String& GetETag() const { return m_eTag; }
102 template <typename ETagT = Aws::String>
103 void SetETag(ETagT&& value) {
104 m_eTagHasBeenSet = true;
105 m_eTag = std::forward<ETagT>(value);
106 }
107 template <typename ETagT = Aws::String>
109 SetETag(std::forward<ETagT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
119 template <typename ChecksumCRC32T = Aws::String>
120 void SetChecksumCRC32(ChecksumCRC32T&& value) {
121 m_checksumCRC32HasBeenSet = true;
122 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
123 }
124 template <typename ChecksumCRC32T = Aws::String>
126 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
136 template <typename ChecksumCRC32CT = Aws::String>
137 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
138 m_checksumCRC32CHasBeenSet = true;
139 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
140 }
141 template <typename ChecksumCRC32CT = Aws::String>
143 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
153 template <typename ChecksumCRC64NVMET = Aws::String>
154 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
155 m_checksumCRC64NVMEHasBeenSet = true;
156 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
157 }
158 template <typename ChecksumCRC64NVMET = Aws::String>
160 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
170 template <typename ChecksumSHA1T = Aws::String>
171 void SetChecksumSHA1(ChecksumSHA1T&& value) {
172 m_checksumSHA1HasBeenSet = true;
173 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
174 }
175 template <typename ChecksumSHA1T = Aws::String>
177 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
187 template <typename ChecksumSHA256T = Aws::String>
188 void SetChecksumSHA256(ChecksumSHA256T&& value) {
189 m_checksumSHA256HasBeenSet = true;
190 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
191 }
192 template <typename ChecksumSHA256T = Aws::String>
194 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetChecksumSHA512() const { return m_checksumSHA512; }
204 template <typename ChecksumSHA512T = Aws::String>
205 void SetChecksumSHA512(ChecksumSHA512T&& value) {
206 m_checksumSHA512HasBeenSet = true;
207 m_checksumSHA512 = std::forward<ChecksumSHA512T>(value);
208 }
209 template <typename ChecksumSHA512T = Aws::String>
211 SetChecksumSHA512(std::forward<ChecksumSHA512T>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetChecksumMD5() const { return m_checksumMD5; }
221 template <typename ChecksumMD5T = Aws::String>
222 void SetChecksumMD5(ChecksumMD5T&& value) {
223 m_checksumMD5HasBeenSet = true;
224 m_checksumMD5 = std::forward<ChecksumMD5T>(value);
225 }
226 template <typename ChecksumMD5T = Aws::String>
228 SetChecksumMD5(std::forward<ChecksumMD5T>(value));
229 return *this;
230 }
232
234
237 inline const Aws::String& GetChecksumXXHASH64() const { return m_checksumXXHASH64; }
238 template <typename ChecksumXXHASH64T = Aws::String>
239 void SetChecksumXXHASH64(ChecksumXXHASH64T&& value) {
240 m_checksumXXHASH64HasBeenSet = true;
241 m_checksumXXHASH64 = std::forward<ChecksumXXHASH64T>(value);
242 }
243 template <typename ChecksumXXHASH64T = Aws::String>
245 SetChecksumXXHASH64(std::forward<ChecksumXXHASH64T>(value));
246 return *this;
247 }
249
251
254 inline const Aws::String& GetChecksumXXHASH3() const { return m_checksumXXHASH3; }
255 template <typename ChecksumXXHASH3T = Aws::String>
256 void SetChecksumXXHASH3(ChecksumXXHASH3T&& value) {
257 m_checksumXXHASH3HasBeenSet = true;
258 m_checksumXXHASH3 = std::forward<ChecksumXXHASH3T>(value);
259 }
260 template <typename ChecksumXXHASH3T = Aws::String>
262 SetChecksumXXHASH3(std::forward<ChecksumXXHASH3T>(value));
263 return *this;
264 }
266
268
271 inline const Aws::String& GetChecksumXXHASH128() const { return m_checksumXXHASH128; }
272 template <typename ChecksumXXHASH128T = Aws::String>
273 void SetChecksumXXHASH128(ChecksumXXHASH128T&& value) {
274 m_checksumXXHASH128HasBeenSet = true;
275 m_checksumXXHASH128 = std::forward<ChecksumXXHASH128T>(value);
276 }
277 template <typename ChecksumXXHASH128T = Aws::String>
279 SetChecksumXXHASH128(std::forward<ChecksumXXHASH128T>(value));
280 return *this;
281 }
283
285
288 inline ChecksumType GetChecksumType() const { return m_checksumType; }
289 inline void SetChecksumType(ChecksumType value) {
290 m_checksumTypeHasBeenSet = true;
291 m_checksumType = value;
292 }
294 SetChecksumType(value);
295 return *this;
296 }
298
300
303 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
305 m_serverSideEncryptionHasBeenSet = true;
306 m_serverSideEncryption = value;
307 }
310 return *this;
311 }
313
315
316 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
318 m_requestChargedHasBeenSet = true;
319 m_requestCharged = value;
320 }
322 SetRequestCharged(value);
323 return *this;
324 }
326
328
333 inline ReplicationStatus GetReplicationStatus() const { return m_replicationStatus; }
335 m_replicationStatusHasBeenSet = true;
336 m_replicationStatus = value;
337 }
340 return *this;
341 }
343
345
346 inline const Aws::String& GetRequestId() const { return m_requestId; }
347 template <typename RequestIdT = Aws::String>
348 void SetRequestId(RequestIdT&& value) {
349 m_requestIdHasBeenSet = true;
350 m_requestId = std::forward<RequestIdT>(value);
351 }
352 template <typename RequestIdT = Aws::String>
354 SetRequestId(std::forward<RequestIdT>(value));
355 return *this;
356 }
358 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
359
360 private:
361 Aws::Utils::Stream::ResponseStream m_annotationPayload{};
362
363 Aws::String m_objectVersionId;
364
365 Aws::Utils::DateTime m_lastModified{};
366
367 long long m_contentLength{0};
368
369 Aws::String m_eTag;
370
371 Aws::String m_checksumCRC32;
372
373 Aws::String m_checksumCRC32C;
374
375 Aws::String m_checksumCRC64NVME;
376
377 Aws::String m_checksumSHA1;
378
379 Aws::String m_checksumSHA256;
380
381 Aws::String m_checksumSHA512;
382
383 Aws::String m_checksumMD5;
384
385 Aws::String m_checksumXXHASH64;
386
387 Aws::String m_checksumXXHASH3;
388
389 Aws::String m_checksumXXHASH128;
390
391 ChecksumType m_checksumType{ChecksumType::NOT_SET};
392
394
395 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
396
398
399 Aws::String m_requestId;
400 Aws::Http::HttpResponseCode m_HttpResponseCode;
401 bool m_annotationPayloadHasBeenSet = false;
402 bool m_objectVersionIdHasBeenSet = false;
403 bool m_lastModifiedHasBeenSet = false;
404 bool m_contentLengthHasBeenSet = false;
405 bool m_eTagHasBeenSet = false;
406 bool m_checksumCRC32HasBeenSet = false;
407 bool m_checksumCRC32CHasBeenSet = false;
408 bool m_checksumCRC64NVMEHasBeenSet = false;
409 bool m_checksumSHA1HasBeenSet = false;
410 bool m_checksumSHA256HasBeenSet = false;
411 bool m_checksumSHA512HasBeenSet = false;
412 bool m_checksumMD5HasBeenSet = false;
413 bool m_checksumXXHASH64HasBeenSet = false;
414 bool m_checksumXXHASH3HasBeenSet = false;
415 bool m_checksumXXHASH128HasBeenSet = false;
416 bool m_checksumTypeHasBeenSet = false;
417 bool m_serverSideEncryptionHasBeenSet = false;
418 bool m_requestChargedHasBeenSet = false;
419 bool m_replicationStatusHasBeenSet = false;
420 bool m_requestIdHasBeenSet = false;
421};
422
423} // namespace Model
424} // namespace S3Crt
425} // namespace Aws
GetObjectAnnotationResult & WithServerSideEncryption(ServerSideEncryption value)
AWS_S3CRT_API GetObjectAnnotationResult()=default
GetObjectAnnotationResult & WithReplicationStatus(ReplicationStatus value)
GetObjectAnnotationResult & WithLastModified(LastModifiedT &&value)
GetObjectAnnotationResult & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
GetObjectAnnotationResult & WithChecksumCRC32(ChecksumCRC32T &&value)
GetObjectAnnotationResult & WithChecksumXXHASH64(ChecksumXXHASH64T &&value)
GetObjectAnnotationResult & WithChecksumSHA256(ChecksumSHA256T &&value)
GetObjectAnnotationResult & WithRequestCharged(RequestCharged value)
GetObjectAnnotationResult(const GetObjectAnnotationResult &)=delete
GetObjectAnnotationResult & WithChecksumSHA1(ChecksumSHA1T &&value)
GetObjectAnnotationResult & operator=(const GetObjectAnnotationResult &)=delete
GetObjectAnnotationResult & WithChecksumMD5(ChecksumMD5T &&value)
AWS_S3CRT_API GetObjectAnnotationResult & operator=(GetObjectAnnotationResult &&)=default
GetObjectAnnotationResult & WithRequestId(RequestIdT &&value)
GetObjectAnnotationResult & WithChecksumType(ChecksumType value)
GetObjectAnnotationResult & WithChecksumSHA512(ChecksumSHA512T &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetLastModified() const
GetObjectAnnotationResult & WithObjectVersionId(ObjectVersionIdT &&value)
AWS_S3CRT_API GetObjectAnnotationResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_S3CRT_API GetObjectAnnotationResult(GetObjectAnnotationResult &&)=default
GetObjectAnnotationResult & WithETag(ETagT &&value)
GetObjectAnnotationResult & WithChecksumXXHASH128(ChecksumXXHASH128T &&value)
GetObjectAnnotationResult & WithChecksumCRC32C(ChecksumCRC32CT &&value)
GetObjectAnnotationResult & WithChecksumXXHASH3(ChecksumXXHASH3T &&value)
void SetServerSideEncryption(ServerSideEncryption value)
AWS_S3CRT_API GetObjectAnnotationResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectAnnotationResult & WithContentLength(long long value)
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String