AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutObjectResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3-crt/S3Crt_EXPORTS.h>
9#include <aws/s3-crt/model/ChecksumType.h>
10#include <aws/s3-crt/model/RequestCharged.h>
11#include <aws/s3-crt/model/ServerSideEncryption.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace S3Crt {
25namespace Model {
27 public:
28 AWS_S3CRT_API PutObjectResult() = default;
31
33
44 inline const Aws::String& GetExpiration() const { return m_expiration; }
45 template <typename ExpirationT = Aws::String>
46 void SetExpiration(ExpirationT&& value) {
47 m_expirationHasBeenSet = true;
48 m_expiration = std::forward<ExpirationT>(value);
49 }
50 template <typename ExpirationT = Aws::String>
51 PutObjectResult& WithExpiration(ExpirationT&& value) {
52 SetExpiration(std::forward<ExpirationT>(value));
53 return *this;
54 }
56
58
66 inline const Aws::String& GetETag() const { return m_eTag; }
67 template <typename ETagT = Aws::String>
68 void SetETag(ETagT&& value) {
69 m_eTagHasBeenSet = true;
70 m_eTag = std::forward<ETagT>(value);
71 }
72 template <typename ETagT = Aws::String>
73 PutObjectResult& WithETag(ETagT&& value) {
74 SetETag(std::forward<ETagT>(value));
75 return *this;
76 }
78
80
90 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
91 template <typename ChecksumCRC32T = Aws::String>
92 void SetChecksumCRC32(ChecksumCRC32T&& value) {
93 m_checksumCRC32HasBeenSet = true;
94 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
95 }
96 template <typename ChecksumCRC32T = Aws::String>
97 PutObjectResult& WithChecksumCRC32(ChecksumCRC32T&& value) {
98 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
99 return *this;
100 }
102
104
114 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
115 template <typename ChecksumCRC32CT = Aws::String>
116 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
117 m_checksumCRC32CHasBeenSet = true;
118 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
119 }
120 template <typename ChecksumCRC32CT = Aws::String>
121 PutObjectResult& WithChecksumCRC32C(ChecksumCRC32CT&& value) {
122 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
123 return *this;
124 }
126
128
138 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
139 template <typename ChecksumCRC64NVMET = Aws::String>
140 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
141 m_checksumCRC64NVMEHasBeenSet = true;
142 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
143 }
144 template <typename ChecksumCRC64NVMET = Aws::String>
145 PutObjectResult& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
146 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
147 return *this;
148 }
150
152
162 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
163 template <typename ChecksumSHA1T = Aws::String>
164 void SetChecksumSHA1(ChecksumSHA1T&& value) {
165 m_checksumSHA1HasBeenSet = true;
166 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
167 }
168 template <typename ChecksumSHA1T = Aws::String>
169 PutObjectResult& WithChecksumSHA1(ChecksumSHA1T&& value) {
170 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
171 return *this;
172 }
174
176
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>
193 PutObjectResult& WithChecksumSHA256(ChecksumSHA256T&& value) {
194 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
195 return *this;
196 }
198
200
210 inline ChecksumType GetChecksumType() const { return m_checksumType; }
211 inline void SetChecksumType(ChecksumType value) {
212 m_checksumTypeHasBeenSet = true;
213 m_checksumType = value;
214 }
216 SetChecksumType(value);
217 return *this;
218 }
220
222
228 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
230 m_serverSideEncryptionHasBeenSet = true;
231 m_serverSideEncryption = value;
232 }
235 return *this;
236 }
238
240
254 inline const Aws::String& GetVersionId() const { return m_versionId; }
255 template <typename VersionIdT = Aws::String>
256 void SetVersionId(VersionIdT&& value) {
257 m_versionIdHasBeenSet = true;
258 m_versionId = std::forward<VersionIdT>(value);
259 }
260 template <typename VersionIdT = Aws::String>
261 PutObjectResult& WithVersionId(VersionIdT&& value) {
262 SetVersionId(std::forward<VersionIdT>(value));
263 return *this;
264 }
266
268
274 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
275 template <typename SSECustomerAlgorithmT = Aws::String>
276 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
277 m_sSECustomerAlgorithmHasBeenSet = true;
278 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
279 }
280 template <typename SSECustomerAlgorithmT = Aws::String>
281 PutObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
282 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
283 return *this;
284 }
286
288
294 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
295 template <typename SSECustomerKeyMD5T = Aws::String>
296 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
297 m_sSECustomerKeyMD5HasBeenSet = true;
298 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
299 }
300 template <typename SSECustomerKeyMD5T = Aws::String>
301 PutObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
302 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
303 return *this;
304 }
306
308
312 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
313 template <typename SSEKMSKeyIdT = Aws::String>
314 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
315 m_sSEKMSKeyIdHasBeenSet = true;
316 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
317 }
318 template <typename SSEKMSKeyIdT = Aws::String>
319 PutObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
320 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
321 return *this;
322 }
324
326
334 inline const Aws::String& GetSSEKMSEncryptionContext() const { return m_sSEKMSEncryptionContext; }
335 template <typename SSEKMSEncryptionContextT = Aws::String>
336 void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
337 m_sSEKMSEncryptionContextHasBeenSet = true;
338 m_sSEKMSEncryptionContext = std::forward<SSEKMSEncryptionContextT>(value);
339 }
340 template <typename SSEKMSEncryptionContextT = Aws::String>
341 PutObjectResult& WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
342 SetSSEKMSEncryptionContext(std::forward<SSEKMSEncryptionContextT>(value));
343 return *this;
344 }
346
348
352 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
353 inline void SetBucketKeyEnabled(bool value) {
354 m_bucketKeyEnabledHasBeenSet = true;
355 m_bucketKeyEnabled = value;
356 }
358 SetBucketKeyEnabled(value);
359 return *this;
360 }
362
364
369 inline long long GetSize() const { return m_size; }
370 inline void SetSize(long long value) {
371 m_sizeHasBeenSet = true;
372 m_size = value;
373 }
374 inline PutObjectResult& WithSize(long long value) {
375 SetSize(value);
376 return *this;
377 }
379
381
382 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
384 m_requestChargedHasBeenSet = true;
385 m_requestCharged = value;
386 }
388 SetRequestCharged(value);
389 return *this;
390 }
392
394
395 inline const Aws::String& GetRequestId() const { return m_requestId; }
396 template <typename RequestIdT = Aws::String>
397 void SetRequestId(RequestIdT&& value) {
398 m_requestIdHasBeenSet = true;
399 m_requestId = std::forward<RequestIdT>(value);
400 }
401 template <typename RequestIdT = Aws::String>
402 PutObjectResult& WithRequestId(RequestIdT&& value) {
403 SetRequestId(std::forward<RequestIdT>(value));
404 return *this;
405 }
407 private:
408 Aws::String m_expiration;
409
410 Aws::String m_eTag;
411
412 Aws::String m_checksumCRC32;
413
414 Aws::String m_checksumCRC32C;
415
416 Aws::String m_checksumCRC64NVME;
417
418 Aws::String m_checksumSHA1;
419
420 Aws::String m_checksumSHA256;
421
422 ChecksumType m_checksumType{ChecksumType::NOT_SET};
423
425
426 Aws::String m_versionId;
427
428 Aws::String m_sSECustomerAlgorithm;
429
430 Aws::String m_sSECustomerKeyMD5;
431
432 Aws::String m_sSEKMSKeyId;
433
434 Aws::String m_sSEKMSEncryptionContext;
435
436 bool m_bucketKeyEnabled{false};
437
438 long long m_size{0};
439
440 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
441
442 Aws::String m_requestId;
443 bool m_expirationHasBeenSet = false;
444 bool m_eTagHasBeenSet = false;
445 bool m_checksumCRC32HasBeenSet = false;
446 bool m_checksumCRC32CHasBeenSet = false;
447 bool m_checksumCRC64NVMEHasBeenSet = false;
448 bool m_checksumSHA1HasBeenSet = false;
449 bool m_checksumSHA256HasBeenSet = false;
450 bool m_checksumTypeHasBeenSet = false;
451 bool m_serverSideEncryptionHasBeenSet = false;
452 bool m_versionIdHasBeenSet = false;
453 bool m_sSECustomerAlgorithmHasBeenSet = false;
454 bool m_sSECustomerKeyMD5HasBeenSet = false;
455 bool m_sSEKMSKeyIdHasBeenSet = false;
456 bool m_sSEKMSEncryptionContextHasBeenSet = false;
457 bool m_bucketKeyEnabledHasBeenSet = false;
458 bool m_sizeHasBeenSet = false;
459 bool m_requestChargedHasBeenSet = false;
460 bool m_requestIdHasBeenSet = false;
461};
462
463} // namespace Model
464} // namespace S3Crt
465} // namespace Aws
const Aws::String & GetChecksumCRC64NVME() const
PutObjectResult & WithETag(ETagT &&value)
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
const Aws::String & GetChecksumSHA1() const
AWS_S3CRT_API PutObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetServerSideEncryption(ServerSideEncryption value)
PutObjectResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
PutObjectResult & WithChecksumSHA1(ChecksumSHA1T &&value)
PutObjectResult & WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
const Aws::String & GetExpiration() const
PutObjectResult & WithVersionId(VersionIdT &&value)
void SetExpiration(ExpirationT &&value)
PutObjectResult & WithExpiration(ExpirationT &&value)
void SetRequestId(RequestIdT &&value)
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
const Aws::String & GetChecksumCRC32() const
ServerSideEncryption GetServerSideEncryption() const
const Aws::String & GetSSECustomerKeyMD5() const
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::String & GetETag() const
PutObjectResult & WithRequestId(RequestIdT &&value)
PutObjectResult & WithBucketKeyEnabled(bool value)
PutObjectResult & WithChecksumSHA256(ChecksumSHA256T &&value)
void SetChecksumType(ChecksumType value)
void SetChecksumSHA256(ChecksumSHA256T &&value)
PutObjectResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
AWS_S3CRT_API PutObjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
PutObjectResult & WithChecksumCRC32C(ChecksumCRC32CT &&value)
const Aws::String & GetSSEKMSKeyId() const
PutObjectResult & WithChecksumCRC32(ChecksumCRC32T &&value)
const Aws::String & GetSSECustomerAlgorithm() const
const Aws::String & GetSSEKMSEncryptionContext() const
PutObjectResult & WithRequestCharged(RequestCharged value)
PutObjectResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
PutObjectResult & WithServerSideEncryption(ServerSideEncryption value)
const Aws::String & GetChecksumCRC32C() const
void SetRequestCharged(RequestCharged value)
const Aws::String & GetRequestId() const
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
void SetChecksumSHA1(ChecksumSHA1T &&value)
PutObjectResult & WithSize(long long value)
const Aws::String & GetVersionId() const
void SetChecksumCRC32(ChecksumCRC32T &&value)
AWS_S3CRT_API PutObjectResult()=default
void SetVersionId(VersionIdT &&value)
RequestCharged GetRequestCharged() const
const Aws::String & GetChecksumSHA256() const
PutObjectResult & WithChecksumType(ChecksumType value)
PutObjectResult & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument