AWS SDK for C++

AWS SDK for C++ Version 1.11.831

Loading...
Searching...
No Matches
PutObjectAnnotationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3-crt/S3Crt_EXPORTS.h>
10#include <aws/s3-crt/model/ChecksumType.h>
11#include <aws/s3-crt/model/RequestCharged.h>
12#include <aws/s3-crt/model/ServerSideEncryption.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace S3Crt {
26namespace Model {
28 public:
29 AWS_S3CRT_API PutObjectAnnotationResult() = default;
32
34
37 inline const Aws::String& GetKey() const { return m_key; }
38 template <typename KeyT = Aws::String>
39 void SetKey(KeyT&& value) {
40 m_keyHasBeenSet = true;
41 m_key = std::forward<KeyT>(value);
42 }
43 template <typename KeyT = Aws::String>
45 SetKey(std::forward<KeyT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetAnnotationName() const { return m_annotationName; }
55 template <typename AnnotationNameT = Aws::String>
56 void SetAnnotationName(AnnotationNameT&& value) {
57 m_annotationNameHasBeenSet = true;
58 m_annotationName = std::forward<AnnotationNameT>(value);
59 }
60 template <typename AnnotationNameT = Aws::String>
62 SetAnnotationName(std::forward<AnnotationNameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetObjectVersionId() const { return m_objectVersionId; }
72 template <typename ObjectVersionIdT = Aws::String>
73 void SetObjectVersionId(ObjectVersionIdT&& value) {
74 m_objectVersionIdHasBeenSet = true;
75 m_objectVersionId = std::forward<ObjectVersionIdT>(value);
76 }
77 template <typename ObjectVersionIdT = Aws::String>
79 SetObjectVersionId(std::forward<ObjectVersionIdT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetETag() const { return m_eTag; }
89 template <typename ETagT = Aws::String>
90 void SetETag(ETagT&& value) {
91 m_eTagHasBeenSet = true;
92 m_eTag = std::forward<ETagT>(value);
93 }
94 template <typename ETagT = Aws::String>
96 SetETag(std::forward<ETagT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
106 template <typename ChecksumCRC32T = Aws::String>
107 void SetChecksumCRC32(ChecksumCRC32T&& value) {
108 m_checksumCRC32HasBeenSet = true;
109 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
110 }
111 template <typename ChecksumCRC32T = Aws::String>
113 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
123 template <typename ChecksumCRC32CT = Aws::String>
124 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
125 m_checksumCRC32CHasBeenSet = true;
126 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
127 }
128 template <typename ChecksumCRC32CT = Aws::String>
130 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
140 template <typename ChecksumCRC64NVMET = Aws::String>
141 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
142 m_checksumCRC64NVMEHasBeenSet = true;
143 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
144 }
145 template <typename ChecksumCRC64NVMET = Aws::String>
147 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
157 template <typename ChecksumSHA1T = Aws::String>
158 void SetChecksumSHA1(ChecksumSHA1T&& value) {
159 m_checksumSHA1HasBeenSet = true;
160 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
161 }
162 template <typename ChecksumSHA1T = Aws::String>
164 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
174 template <typename ChecksumSHA256T = Aws::String>
175 void SetChecksumSHA256(ChecksumSHA256T&& value) {
176 m_checksumSHA256HasBeenSet = true;
177 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
178 }
179 template <typename ChecksumSHA256T = Aws::String>
181 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetChecksumSHA512() const { return m_checksumSHA512; }
191 template <typename ChecksumSHA512T = Aws::String>
192 void SetChecksumSHA512(ChecksumSHA512T&& value) {
193 m_checksumSHA512HasBeenSet = true;
194 m_checksumSHA512 = std::forward<ChecksumSHA512T>(value);
195 }
196 template <typename ChecksumSHA512T = Aws::String>
198 SetChecksumSHA512(std::forward<ChecksumSHA512T>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetChecksumMD5() const { return m_checksumMD5; }
208 template <typename ChecksumMD5T = Aws::String>
209 void SetChecksumMD5(ChecksumMD5T&& value) {
210 m_checksumMD5HasBeenSet = true;
211 m_checksumMD5 = std::forward<ChecksumMD5T>(value);
212 }
213 template <typename ChecksumMD5T = Aws::String>
215 SetChecksumMD5(std::forward<ChecksumMD5T>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetChecksumXXHASH64() const { return m_checksumXXHASH64; }
225 template <typename ChecksumXXHASH64T = Aws::String>
226 void SetChecksumXXHASH64(ChecksumXXHASH64T&& value) {
227 m_checksumXXHASH64HasBeenSet = true;
228 m_checksumXXHASH64 = std::forward<ChecksumXXHASH64T>(value);
229 }
230 template <typename ChecksumXXHASH64T = Aws::String>
232 SetChecksumXXHASH64(std::forward<ChecksumXXHASH64T>(value));
233 return *this;
234 }
236
238
241 inline const Aws::String& GetChecksumXXHASH3() const { return m_checksumXXHASH3; }
242 template <typename ChecksumXXHASH3T = Aws::String>
243 void SetChecksumXXHASH3(ChecksumXXHASH3T&& value) {
244 m_checksumXXHASH3HasBeenSet = true;
245 m_checksumXXHASH3 = std::forward<ChecksumXXHASH3T>(value);
246 }
247 template <typename ChecksumXXHASH3T = Aws::String>
249 SetChecksumXXHASH3(std::forward<ChecksumXXHASH3T>(value));
250 return *this;
251 }
253
255
258 inline const Aws::String& GetChecksumXXHASH128() const { return m_checksumXXHASH128; }
259 template <typename ChecksumXXHASH128T = Aws::String>
260 void SetChecksumXXHASH128(ChecksumXXHASH128T&& value) {
261 m_checksumXXHASH128HasBeenSet = true;
262 m_checksumXXHASH128 = std::forward<ChecksumXXHASH128T>(value);
263 }
264 template <typename ChecksumXXHASH128T = Aws::String>
266 SetChecksumXXHASH128(std::forward<ChecksumXXHASH128T>(value));
267 return *this;
268 }
270
272
275 inline ChecksumType GetChecksumType() const { return m_checksumType; }
276 inline void SetChecksumType(ChecksumType value) {
277 m_checksumTypeHasBeenSet = true;
278 m_checksumType = value;
279 }
281 SetChecksumType(value);
282 return *this;
283 }
285
287
290 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
292 m_serverSideEncryptionHasBeenSet = true;
293 m_serverSideEncryption = value;
294 }
297 return *this;
298 }
300
302
303 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
305 m_requestChargedHasBeenSet = true;
306 m_requestCharged = value;
307 }
309 SetRequestCharged(value);
310 return *this;
311 }
313
315
316 inline const Aws::String& GetRequestId() const { return m_requestId; }
317 template <typename RequestIdT = Aws::String>
318 void SetRequestId(RequestIdT&& value) {
319 m_requestIdHasBeenSet = true;
320 m_requestId = std::forward<RequestIdT>(value);
321 }
322 template <typename RequestIdT = Aws::String>
324 SetRequestId(std::forward<RequestIdT>(value));
325 return *this;
326 }
328 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
329
330 private:
331 Aws::String m_key;
332
333 Aws::String m_annotationName;
334
335 Aws::String m_objectVersionId;
336
337 Aws::String m_eTag;
338
339 Aws::String m_checksumCRC32;
340
341 Aws::String m_checksumCRC32C;
342
343 Aws::String m_checksumCRC64NVME;
344
345 Aws::String m_checksumSHA1;
346
347 Aws::String m_checksumSHA256;
348
349 Aws::String m_checksumSHA512;
350
351 Aws::String m_checksumMD5;
352
353 Aws::String m_checksumXXHASH64;
354
355 Aws::String m_checksumXXHASH3;
356
357 Aws::String m_checksumXXHASH128;
358
359 ChecksumType m_checksumType{ChecksumType::NOT_SET};
360
362
363 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
364
365 Aws::String m_requestId;
366 Aws::Http::HttpResponseCode m_HttpResponseCode;
367 bool m_keyHasBeenSet = false;
368 bool m_annotationNameHasBeenSet = false;
369 bool m_objectVersionIdHasBeenSet = false;
370 bool m_eTagHasBeenSet = false;
371 bool m_checksumCRC32HasBeenSet = false;
372 bool m_checksumCRC32CHasBeenSet = false;
373 bool m_checksumCRC64NVMEHasBeenSet = false;
374 bool m_checksumSHA1HasBeenSet = false;
375 bool m_checksumSHA256HasBeenSet = false;
376 bool m_checksumSHA512HasBeenSet = false;
377 bool m_checksumMD5HasBeenSet = false;
378 bool m_checksumXXHASH64HasBeenSet = false;
379 bool m_checksumXXHASH3HasBeenSet = false;
380 bool m_checksumXXHASH128HasBeenSet = false;
381 bool m_checksumTypeHasBeenSet = false;
382 bool m_serverSideEncryptionHasBeenSet = false;
383 bool m_requestChargedHasBeenSet = false;
384 bool m_requestIdHasBeenSet = false;
385};
386
387} // namespace Model
388} // namespace S3Crt
389} // namespace Aws
PutObjectAnnotationResult & WithRequestCharged(RequestCharged value)
PutObjectAnnotationResult & WithChecksumSHA256(ChecksumSHA256T &&value)
PutObjectAnnotationResult & WithRequestId(RequestIdT &&value)
AWS_S3CRT_API PutObjectAnnotationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
PutObjectAnnotationResult & WithChecksumXXHASH64(ChecksumXXHASH64T &&value)
AWS_S3CRT_API PutObjectAnnotationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3CRT_API PutObjectAnnotationResult()=default
PutObjectAnnotationResult & WithChecksumSHA512(ChecksumSHA512T &&value)
PutObjectAnnotationResult & WithAnnotationName(AnnotationNameT &&value)
PutObjectAnnotationResult & WithChecksumMD5(ChecksumMD5T &&value)
PutObjectAnnotationResult & WithChecksumCRC32C(ChecksumCRC32CT &&value)
PutObjectAnnotationResult & WithChecksumType(ChecksumType value)
PutObjectAnnotationResult & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
PutObjectAnnotationResult & WithChecksumXXHASH128(ChecksumXXHASH128T &&value)
void SetServerSideEncryption(ServerSideEncryption value)
PutObjectAnnotationResult & WithObjectVersionId(ObjectVersionIdT &&value)
PutObjectAnnotationResult & WithETag(ETagT &&value)
PutObjectAnnotationResult & WithChecksumSHA1(ChecksumSHA1T &&value)
PutObjectAnnotationResult & WithChecksumCRC32(ChecksumCRC32T &&value)
PutObjectAnnotationResult & WithKey(KeyT &&value)
PutObjectAnnotationResult & WithServerSideEncryption(ServerSideEncryption value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
PutObjectAnnotationResult & WithChecksumXXHASH3(ChecksumXXHASH3T &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument