AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
PutObjectResult.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/S3_EXPORTS.h>
10#include <aws/s3/model/ChecksumType.h>
11#include <aws/s3/model/RequestCharged.h>
12#include <aws/s3/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 S3 {
26namespace Model {
28 public:
29 AWS_S3_API PutObjectResult() = default;
32
34
45 inline const Aws::String& GetExpiration() const { return m_expiration; }
46 template <typename ExpirationT = Aws::String>
47 void SetExpiration(ExpirationT&& value) {
48 m_expirationHasBeenSet = true;
49 m_expiration = std::forward<ExpirationT>(value);
50 }
51 template <typename ExpirationT = Aws::String>
52 PutObjectResult& WithExpiration(ExpirationT&& value) {
53 SetExpiration(std::forward<ExpirationT>(value));
54 return *this;
55 }
57
59
67 inline const Aws::String& GetETag() const { return m_eTag; }
68 template <typename ETagT = Aws::String>
69 void SetETag(ETagT&& value) {
70 m_eTagHasBeenSet = true;
71 m_eTag = std::forward<ETagT>(value);
72 }
73 template <typename ETagT = Aws::String>
74 PutObjectResult& WithETag(ETagT&& value) {
75 SetETag(std::forward<ETagT>(value));
76 return *this;
77 }
79
81
91 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
92 template <typename ChecksumCRC32T = Aws::String>
93 void SetChecksumCRC32(ChecksumCRC32T&& value) {
94 m_checksumCRC32HasBeenSet = true;
95 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
96 }
97 template <typename ChecksumCRC32T = Aws::String>
98 PutObjectResult& WithChecksumCRC32(ChecksumCRC32T&& value) {
99 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
100 return *this;
101 }
103
105
115 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
116 template <typename ChecksumCRC32CT = Aws::String>
117 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
118 m_checksumCRC32CHasBeenSet = true;
119 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
120 }
121 template <typename ChecksumCRC32CT = Aws::String>
122 PutObjectResult& WithChecksumCRC32C(ChecksumCRC32CT&& value) {
123 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
124 return *this;
125 }
127
129
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>
146 PutObjectResult& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
147 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
148 return *this;
149 }
151
153
163 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
164 template <typename ChecksumSHA1T = Aws::String>
165 void SetChecksumSHA1(ChecksumSHA1T&& value) {
166 m_checksumSHA1HasBeenSet = true;
167 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
168 }
169 template <typename ChecksumSHA1T = Aws::String>
170 PutObjectResult& WithChecksumSHA1(ChecksumSHA1T&& value) {
171 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
172 return *this;
173 }
175
177
187 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
188 template <typename ChecksumSHA256T = Aws::String>
189 void SetChecksumSHA256(ChecksumSHA256T&& value) {
190 m_checksumSHA256HasBeenSet = true;
191 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
192 }
193 template <typename ChecksumSHA256T = Aws::String>
194 PutObjectResult& WithChecksumSHA256(ChecksumSHA256T&& value) {
195 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
196 return *this;
197 }
199
201
211 inline ChecksumType GetChecksumType() const { return m_checksumType; }
212 inline void SetChecksumType(ChecksumType value) {
213 m_checksumTypeHasBeenSet = true;
214 m_checksumType = value;
215 }
217 SetChecksumType(value);
218 return *this;
219 }
221
223
229 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
231 m_serverSideEncryptionHasBeenSet = true;
232 m_serverSideEncryption = value;
233 }
236 return *this;
237 }
239
241
255 inline const Aws::String& GetVersionId() const { return m_versionId; }
256 template <typename VersionIdT = Aws::String>
257 void SetVersionId(VersionIdT&& value) {
258 m_versionIdHasBeenSet = true;
259 m_versionId = std::forward<VersionIdT>(value);
260 }
261 template <typename VersionIdT = Aws::String>
262 PutObjectResult& WithVersionId(VersionIdT&& value) {
263 SetVersionId(std::forward<VersionIdT>(value));
264 return *this;
265 }
267
269
275 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
276 template <typename SSECustomerAlgorithmT = Aws::String>
277 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
278 m_sSECustomerAlgorithmHasBeenSet = true;
279 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
280 }
281 template <typename SSECustomerAlgorithmT = Aws::String>
282 PutObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
283 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
284 return *this;
285 }
287
289
295 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
296 template <typename SSECustomerKeyMD5T = Aws::String>
297 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
298 m_sSECustomerKeyMD5HasBeenSet = true;
299 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
300 }
301 template <typename SSECustomerKeyMD5T = Aws::String>
302 PutObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
303 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
304 return *this;
305 }
307
309
313 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
314 template <typename SSEKMSKeyIdT = Aws::String>
315 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
316 m_sSEKMSKeyIdHasBeenSet = true;
317 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
318 }
319 template <typename SSEKMSKeyIdT = Aws::String>
320 PutObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
321 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
322 return *this;
323 }
325
327
335 inline const Aws::String& GetSSEKMSEncryptionContext() const { return m_sSEKMSEncryptionContext; }
336 template <typename SSEKMSEncryptionContextT = Aws::String>
337 void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
338 m_sSEKMSEncryptionContextHasBeenSet = true;
339 m_sSEKMSEncryptionContext = std::forward<SSEKMSEncryptionContextT>(value);
340 }
341 template <typename SSEKMSEncryptionContextT = Aws::String>
342 PutObjectResult& WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
343 SetSSEKMSEncryptionContext(std::forward<SSEKMSEncryptionContextT>(value));
344 return *this;
345 }
347
349
353 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
354 inline void SetBucketKeyEnabled(bool value) {
355 m_bucketKeyEnabledHasBeenSet = true;
356 m_bucketKeyEnabled = value;
357 }
359 SetBucketKeyEnabled(value);
360 return *this;
361 }
363
365
370 inline long long GetSize() const { return m_size; }
371 inline void SetSize(long long value) {
372 m_sizeHasBeenSet = true;
373 m_size = value;
374 }
375 inline PutObjectResult& WithSize(long long value) {
376 SetSize(value);
377 return *this;
378 }
380
382
383 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
385 m_requestChargedHasBeenSet = true;
386 m_requestCharged = value;
387 }
389 SetRequestCharged(value);
390 return *this;
391 }
393
395
396 inline const Aws::String& GetRequestId() const { return m_requestId; }
397 template <typename RequestIdT = Aws::String>
398 void SetRequestId(RequestIdT&& value) {
399 m_requestIdHasBeenSet = true;
400 m_requestId = std::forward<RequestIdT>(value);
401 }
402 template <typename RequestIdT = Aws::String>
403 PutObjectResult& WithRequestId(RequestIdT&& value) {
404 SetRequestId(std::forward<RequestIdT>(value));
405 return *this;
406 }
408 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
409
410 private:
411 Aws::String m_expiration;
412
413 Aws::String m_eTag;
414
415 Aws::String m_checksumCRC32;
416
417 Aws::String m_checksumCRC32C;
418
419 Aws::String m_checksumCRC64NVME;
420
421 Aws::String m_checksumSHA1;
422
423 Aws::String m_checksumSHA256;
424
425 ChecksumType m_checksumType{ChecksumType::NOT_SET};
426
428
429 Aws::String m_versionId;
430
431 Aws::String m_sSECustomerAlgorithm;
432
433 Aws::String m_sSECustomerKeyMD5;
434
435 Aws::String m_sSEKMSKeyId;
436
437 Aws::String m_sSEKMSEncryptionContext;
438
439 bool m_bucketKeyEnabled{false};
440
441 long long m_size{0};
442
443 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
444
445 Aws::String m_requestId;
446 Aws::Http::HttpResponseCode m_HttpResponseCode;
447 bool m_expirationHasBeenSet = false;
448 bool m_eTagHasBeenSet = false;
449 bool m_checksumCRC32HasBeenSet = false;
450 bool m_checksumCRC32CHasBeenSet = false;
451 bool m_checksumCRC64NVMEHasBeenSet = false;
452 bool m_checksumSHA1HasBeenSet = false;
453 bool m_checksumSHA256HasBeenSet = false;
454 bool m_checksumTypeHasBeenSet = false;
455 bool m_serverSideEncryptionHasBeenSet = false;
456 bool m_versionIdHasBeenSet = false;
457 bool m_sSECustomerAlgorithmHasBeenSet = false;
458 bool m_sSECustomerKeyMD5HasBeenSet = false;
459 bool m_sSEKMSKeyIdHasBeenSet = false;
460 bool m_sSEKMSEncryptionContextHasBeenSet = false;
461 bool m_bucketKeyEnabledHasBeenSet = false;
462 bool m_sizeHasBeenSet = false;
463 bool m_requestChargedHasBeenSet = false;
464 bool m_requestIdHasBeenSet = false;
465};
466
467} // namespace Model
468} // namespace S3
469} // namespace Aws
const Aws::String & GetChecksumCRC32C() const
ServerSideEncryption GetServerSideEncryption() const
PutObjectResult & WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
PutObjectResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetExpiration() const
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
const Aws::String & GetSSECustomerAlgorithm() const
void SetChecksumSHA256(ChecksumSHA256T &&value)
void SetChecksumType(ChecksumType value)
PutObjectResult & WithSize(long long value)
ChecksumType GetChecksumType() const
AWS_S3_API PutObjectResult()=default
PutObjectResult & WithBucketKeyEnabled(bool value)
void SetChecksumCRC32(ChecksumCRC32T &&value)
PutObjectResult & WithChecksumSHA256(ChecksumSHA256T &&value)
const Aws::String & GetChecksumSHA1() const
const Aws::String & GetSSEKMSEncryptionContext() const
void SetRequestCharged(RequestCharged value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetChecksumSHA256() const
RequestCharged GetRequestCharged() const
PutObjectResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
PutObjectResult & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
PutObjectResult & WithChecksumCRC32C(ChecksumCRC32CT &&value)
void SetVersionId(VersionIdT &&value)
const Aws::String & GetChecksumCRC32() const
PutObjectResult & WithChecksumCRC32(ChecksumCRC32T &&value)
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
const Aws::String & GetSSEKMSKeyId() const
const Aws::String & GetSSECustomerKeyMD5() const
AWS_S3_API PutObjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
PutObjectResult & WithChecksumType(ChecksumType value)
PutObjectResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
void SetExpiration(ExpirationT &&value)
PutObjectResult & WithRequestCharged(RequestCharged value)
PutObjectResult & WithChecksumSHA1(ChecksumSHA1T &&value)
const Aws::String & GetVersionId() const
void SetServerSideEncryption(ServerSideEncryption value)
void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::String & GetETag() const
PutObjectResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
const Aws::String & GetChecksumCRC64NVME() const
PutObjectResult & WithVersionId(VersionIdT &&value)
PutObjectResult & WithETag(ETagT &&value)
AWS_S3_API PutObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
PutObjectResult & WithServerSideEncryption(ServerSideEncryption value)
PutObjectResult & WithExpiration(ExpirationT &&value)
void SetChecksumSHA1(ChecksumSHA1T &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument