AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutObjectResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/model/ChecksumType.h>
10#include <aws/s3/model/ServerSideEncryption.h>
11#include <aws/s3/model/RequestCharged.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace S3
27{
28namespace Model
29{
31 {
32 public:
33 AWS_S3_API PutObjectResult() = default;
36
37
39
50 inline const Aws::String& GetExpiration() const { return m_expiration; }
51 template<typename ExpirationT = Aws::String>
52 void SetExpiration(ExpirationT&& value) { m_expirationHasBeenSet = true; m_expiration = std::forward<ExpirationT>(value); }
53 template<typename ExpirationT = Aws::String>
54 PutObjectResult& WithExpiration(ExpirationT&& value) { SetExpiration(std::forward<ExpirationT>(value)); return *this;}
56
58
66 inline const Aws::String& GetETag() const { return m_eTag; }
67 template<typename ETagT = Aws::String>
68 void SetETag(ETagT&& value) { m_eTagHasBeenSet = true; m_eTag = std::forward<ETagT>(value); }
69 template<typename ETagT = Aws::String>
70 PutObjectResult& WithETag(ETagT&& value) { SetETag(std::forward<ETagT>(value)); return *this;}
72
74
84 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
85 template<typename ChecksumCRC32T = Aws::String>
86 void SetChecksumCRC32(ChecksumCRC32T&& value) { m_checksumCRC32HasBeenSet = true; m_checksumCRC32 = std::forward<ChecksumCRC32T>(value); }
87 template<typename ChecksumCRC32T = Aws::String>
88 PutObjectResult& WithChecksumCRC32(ChecksumCRC32T&& value) { SetChecksumCRC32(std::forward<ChecksumCRC32T>(value)); return *this;}
90
92
102 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
103 template<typename ChecksumCRC32CT = Aws::String>
104 void SetChecksumCRC32C(ChecksumCRC32CT&& value) { m_checksumCRC32CHasBeenSet = true; m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value); }
105 template<typename ChecksumCRC32CT = Aws::String>
106 PutObjectResult& WithChecksumCRC32C(ChecksumCRC32CT&& value) { SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value)); return *this;}
108
110
120 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
121 template<typename ChecksumCRC64NVMET = Aws::String>
122 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) { m_checksumCRC64NVMEHasBeenSet = true; m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value); }
123 template<typename ChecksumCRC64NVMET = Aws::String>
124 PutObjectResult& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) { SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value)); return *this;}
126
128
138 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
139 template<typename ChecksumSHA1T = Aws::String>
140 void SetChecksumSHA1(ChecksumSHA1T&& value) { m_checksumSHA1HasBeenSet = true; m_checksumSHA1 = std::forward<ChecksumSHA1T>(value); }
141 template<typename ChecksumSHA1T = Aws::String>
142 PutObjectResult& WithChecksumSHA1(ChecksumSHA1T&& value) { SetChecksumSHA1(std::forward<ChecksumSHA1T>(value)); return *this;}
144
146
156 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
157 template<typename ChecksumSHA256T = Aws::String>
158 void SetChecksumSHA256(ChecksumSHA256T&& value) { m_checksumSHA256HasBeenSet = true; m_checksumSHA256 = std::forward<ChecksumSHA256T>(value); }
159 template<typename ChecksumSHA256T = Aws::String>
160 PutObjectResult& WithChecksumSHA256(ChecksumSHA256T&& value) { SetChecksumSHA256(std::forward<ChecksumSHA256T>(value)); return *this;}
162
164
174 inline ChecksumType GetChecksumType() const { return m_checksumType; }
175 inline void SetChecksumType(ChecksumType value) { m_checksumTypeHasBeenSet = true; m_checksumType = value; }
176 inline PutObjectResult& WithChecksumType(ChecksumType value) { SetChecksumType(value); return *this;}
178
180
186 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
187 inline void SetServerSideEncryption(ServerSideEncryption value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
190
192
206 inline const Aws::String& GetVersionId() const { return m_versionId; }
207 template<typename VersionIdT = Aws::String>
208 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
209 template<typename VersionIdT = Aws::String>
210 PutObjectResult& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
212
214
220 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
221 template<typename SSECustomerAlgorithmT = Aws::String>
222 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value); }
223 template<typename SSECustomerAlgorithmT = Aws::String>
224 PutObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value)); return *this;}
226
228
234 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
235 template<typename SSECustomerKeyMD5T = Aws::String>
236 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value); }
237 template<typename SSECustomerKeyMD5T = Aws::String>
238 PutObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value)); return *this;}
240
242
246 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
247 template<typename SSEKMSKeyIdT = Aws::String>
248 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value); }
249 template<typename SSEKMSKeyIdT = Aws::String>
250 PutObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) { SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value)); return *this;}
252
254
262 inline const Aws::String& GetSSEKMSEncryptionContext() const { return m_sSEKMSEncryptionContext; }
263 template<typename SSEKMSEncryptionContextT = Aws::String>
264 void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) { m_sSEKMSEncryptionContextHasBeenSet = true; m_sSEKMSEncryptionContext = std::forward<SSEKMSEncryptionContextT>(value); }
265 template<typename SSEKMSEncryptionContextT = Aws::String>
266 PutObjectResult& WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) { SetSSEKMSEncryptionContext(std::forward<SSEKMSEncryptionContextT>(value)); return *this;}
268
270
274 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
275 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabledHasBeenSet = true; m_bucketKeyEnabled = value; }
276 inline PutObjectResult& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
278
280
285 inline long long GetSize() const { return m_size; }
286 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
287 inline PutObjectResult& WithSize(long long value) { SetSize(value); return *this;}
289
291
292 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
293 inline void SetRequestCharged(RequestCharged value) { m_requestChargedHasBeenSet = true; m_requestCharged = value; }
296
298
299 inline const Aws::String& GetRequestId() const { return m_requestId; }
300 template<typename RequestIdT = Aws::String>
301 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
302 template<typename RequestIdT = Aws::String>
303 PutObjectResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
305 private:
306
307 Aws::String m_expiration;
308 bool m_expirationHasBeenSet = false;
309
310 Aws::String m_eTag;
311 bool m_eTagHasBeenSet = false;
312
313 Aws::String m_checksumCRC32;
314 bool m_checksumCRC32HasBeenSet = false;
315
316 Aws::String m_checksumCRC32C;
317 bool m_checksumCRC32CHasBeenSet = false;
318
319 Aws::String m_checksumCRC64NVME;
320 bool m_checksumCRC64NVMEHasBeenSet = false;
321
322 Aws::String m_checksumSHA1;
323 bool m_checksumSHA1HasBeenSet = false;
324
325 Aws::String m_checksumSHA256;
326 bool m_checksumSHA256HasBeenSet = false;
327
328 ChecksumType m_checksumType{ChecksumType::NOT_SET};
329 bool m_checksumTypeHasBeenSet = false;
330
332 bool m_serverSideEncryptionHasBeenSet = false;
333
334 Aws::String m_versionId;
335 bool m_versionIdHasBeenSet = false;
336
337 Aws::String m_sSECustomerAlgorithm;
338 bool m_sSECustomerAlgorithmHasBeenSet = false;
339
340 Aws::String m_sSECustomerKeyMD5;
341 bool m_sSECustomerKeyMD5HasBeenSet = false;
342
343 Aws::String m_sSEKMSKeyId;
344 bool m_sSEKMSKeyIdHasBeenSet = false;
345
346 Aws::String m_sSEKMSEncryptionContext;
347 bool m_sSEKMSEncryptionContextHasBeenSet = false;
348
349 bool m_bucketKeyEnabled{false};
350 bool m_bucketKeyEnabledHasBeenSet = false;
351
352 long long m_size{0};
353 bool m_sizeHasBeenSet = false;
354
355 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
356 bool m_requestChargedHasBeenSet = false;
357
358 Aws::String m_requestId;
359 bool m_requestIdHasBeenSet = false;
360 };
361
362} // namespace Model
363} // namespace S3
364} // 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)
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