AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutObjectResult.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3-crt/model/ServerSideEncryption.h>
10#include <aws/s3-crt/model/RequestCharged.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace S3Crt
26{
27namespace Model
28{
30 {
31 public:
32 AWS_S3CRT_API PutObjectResult();
35
36
38
47 inline const Aws::String& GetExpiration() const{ return m_expiration; }
48 inline void SetExpiration(const Aws::String& value) { m_expiration = value; }
49 inline void SetExpiration(Aws::String&& value) { m_expiration = std::move(value); }
50 inline void SetExpiration(const char* value) { m_expiration.assign(value); }
51 inline PutObjectResult& WithExpiration(const Aws::String& value) { SetExpiration(value); return *this;}
52 inline PutObjectResult& WithExpiration(Aws::String&& value) { SetExpiration(std::move(value)); return *this;}
53 inline PutObjectResult& WithExpiration(const char* value) { SetExpiration(value); return *this;}
55
57
65 inline const Aws::String& GetETag() const{ return m_eTag; }
66 inline void SetETag(const Aws::String& value) { m_eTag = value; }
67 inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); }
68 inline void SetETag(const char* value) { m_eTag.assign(value); }
69 inline PutObjectResult& WithETag(const Aws::String& value) { SetETag(value); return *this;}
70 inline PutObjectResult& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
71 inline PutObjectResult& WithETag(const char* value) { SetETag(value); return *this;}
73
75
85 inline const Aws::String& GetChecksumCRC32() const{ return m_checksumCRC32; }
86 inline void SetChecksumCRC32(const Aws::String& value) { m_checksumCRC32 = value; }
87 inline void SetChecksumCRC32(Aws::String&& value) { m_checksumCRC32 = std::move(value); }
88 inline void SetChecksumCRC32(const char* value) { m_checksumCRC32.assign(value); }
89 inline PutObjectResult& WithChecksumCRC32(const Aws::String& value) { SetChecksumCRC32(value); return *this;}
90 inline PutObjectResult& WithChecksumCRC32(Aws::String&& value) { SetChecksumCRC32(std::move(value)); return *this;}
91 inline PutObjectResult& WithChecksumCRC32(const char* value) { SetChecksumCRC32(value); return *this;}
93
95
105 inline const Aws::String& GetChecksumCRC32C() const{ return m_checksumCRC32C; }
106 inline void SetChecksumCRC32C(const Aws::String& value) { m_checksumCRC32C = value; }
107 inline void SetChecksumCRC32C(Aws::String&& value) { m_checksumCRC32C = std::move(value); }
108 inline void SetChecksumCRC32C(const char* value) { m_checksumCRC32C.assign(value); }
109 inline PutObjectResult& WithChecksumCRC32C(const Aws::String& value) { SetChecksumCRC32C(value); return *this;}
110 inline PutObjectResult& WithChecksumCRC32C(Aws::String&& value) { SetChecksumCRC32C(std::move(value)); return *this;}
111 inline PutObjectResult& WithChecksumCRC32C(const char* value) { SetChecksumCRC32C(value); return *this;}
113
115
125 inline const Aws::String& GetChecksumSHA1() const{ return m_checksumSHA1; }
126 inline void SetChecksumSHA1(const Aws::String& value) { m_checksumSHA1 = value; }
127 inline void SetChecksumSHA1(Aws::String&& value) { m_checksumSHA1 = std::move(value); }
128 inline void SetChecksumSHA1(const char* value) { m_checksumSHA1.assign(value); }
129 inline PutObjectResult& WithChecksumSHA1(const Aws::String& value) { SetChecksumSHA1(value); return *this;}
130 inline PutObjectResult& WithChecksumSHA1(Aws::String&& value) { SetChecksumSHA1(std::move(value)); return *this;}
131 inline PutObjectResult& WithChecksumSHA1(const char* value) { SetChecksumSHA1(value); return *this;}
133
135
145 inline const Aws::String& GetChecksumSHA256() const{ return m_checksumSHA256; }
146 inline void SetChecksumSHA256(const Aws::String& value) { m_checksumSHA256 = value; }
147 inline void SetChecksumSHA256(Aws::String&& value) { m_checksumSHA256 = std::move(value); }
148 inline void SetChecksumSHA256(const char* value) { m_checksumSHA256.assign(value); }
149 inline PutObjectResult& WithChecksumSHA256(const Aws::String& value) { SetChecksumSHA256(value); return *this;}
150 inline PutObjectResult& WithChecksumSHA256(Aws::String&& value) { SetChecksumSHA256(std::move(value)); return *this;}
151 inline PutObjectResult& WithChecksumSHA256(const char* value) { SetChecksumSHA256(value); return *this;}
153
155
159 inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
160 inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryption = value; }
161 inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryption = std::move(value); }
165
167
181 inline const Aws::String& GetVersionId() const{ return m_versionId; }
182 inline void SetVersionId(const Aws::String& value) { m_versionId = value; }
183 inline void SetVersionId(Aws::String&& value) { m_versionId = std::move(value); }
184 inline void SetVersionId(const char* value) { m_versionId.assign(value); }
185 inline PutObjectResult& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
186 inline PutObjectResult& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
187 inline PutObjectResult& WithVersionId(const char* value) { SetVersionId(value); return *this;}
189
191
197 inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
198 inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithm = value; }
199 inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithm = std::move(value); }
200 inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithm.assign(value); }
202 inline PutObjectResult& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(std::move(value)); return *this;}
203 inline PutObjectResult& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
205
207
213 inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
214 inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5 = value; }
215 inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5 = std::move(value); }
216 inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5.assign(value); }
217 inline PutObjectResult& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
218 inline PutObjectResult& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(std::move(value)); return *this;}
219 inline PutObjectResult& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
221
223
227 inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
228 inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyId = value; }
229 inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyId = std::move(value); }
230 inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyId.assign(value); }
231 inline PutObjectResult& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
232 inline PutObjectResult& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(std::move(value)); return *this;}
233 inline PutObjectResult& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
235
237
245 inline const Aws::String& GetSSEKMSEncryptionContext() const{ return m_sSEKMSEncryptionContext; }
246 inline void SetSSEKMSEncryptionContext(const Aws::String& value) { m_sSEKMSEncryptionContext = value; }
247 inline void SetSSEKMSEncryptionContext(Aws::String&& value) { m_sSEKMSEncryptionContext = std::move(value); }
248 inline void SetSSEKMSEncryptionContext(const char* value) { m_sSEKMSEncryptionContext.assign(value); }
250 inline PutObjectResult& WithSSEKMSEncryptionContext(Aws::String&& value) { SetSSEKMSEncryptionContext(std::move(value)); return *this;}
251 inline PutObjectResult& WithSSEKMSEncryptionContext(const char* value) { SetSSEKMSEncryptionContext(value); return *this;}
253
255
259 inline bool GetBucketKeyEnabled() const{ return m_bucketKeyEnabled; }
260 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabled = value; }
261 inline PutObjectResult& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
263
265
266 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
267 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
268 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
269 inline PutObjectResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
270 inline PutObjectResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
272
274
275 inline const Aws::String& GetRequestId() const{ return m_requestId; }
276 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
277 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
278 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
279 inline PutObjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
280 inline PutObjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
281 inline PutObjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
283 private:
284
285 Aws::String m_expiration;
286
287 Aws::String m_eTag;
288
289 Aws::String m_checksumCRC32;
290
291 Aws::String m_checksumCRC32C;
292
293 Aws::String m_checksumSHA1;
294
295 Aws::String m_checksumSHA256;
296
297 ServerSideEncryption m_serverSideEncryption;
298
299 Aws::String m_versionId;
300
301 Aws::String m_sSECustomerAlgorithm;
302
303 Aws::String m_sSECustomerKeyMD5;
304
305 Aws::String m_sSEKMSKeyId;
306
307 Aws::String m_sSEKMSEncryptionContext;
308
309 bool m_bucketKeyEnabled;
310
311 RequestCharged m_requestCharged;
312
313 Aws::String m_requestId;
314 };
315
316} // namespace Model
317} // namespace S3Crt
318} // namespace Aws
void SetChecksumSHA256(const Aws::String &value)
PutObjectResult & WithServerSideEncryption(ServerSideEncryption &&value)
const Aws::String & GetChecksumSHA1() const
void SetSSEKMSKeyId(const Aws::String &value)
AWS_S3CRT_API PutObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const RequestCharged & GetRequestCharged() const
void SetChecksumSHA256(const char *value)
PutObjectResult & WithVersionId(const char *value)
PutObjectResult & WithChecksumSHA256(Aws::String &&value)
PutObjectResult & WithSSECustomerAlgorithm(const char *value)
PutObjectResult & WithVersionId(Aws::String &&value)
PutObjectResult & WithSSEKMSKeyId(const char *value)
PutObjectResult & WithSSECustomerAlgorithm(Aws::String &&value)
const Aws::String & GetExpiration() const
PutObjectResult & WithExpiration(Aws::String &&value)
PutObjectResult & WithRequestId(const char *value)
PutObjectResult & WithServerSideEncryption(const ServerSideEncryption &value)
PutObjectResult & WithChecksumSHA1(Aws::String &&value)
PutObjectResult & WithChecksumCRC32(Aws::String &&value)
void SetChecksumSHA256(Aws::String &&value)
PutObjectResult & WithSSECustomerAlgorithm(const Aws::String &value)
void SetVersionId(Aws::String &&value)
void SetChecksumCRC32(Aws::String &&value)
PutObjectResult & WithChecksumCRC32(const Aws::String &value)
void SetRequestId(const char *value)
void SetSSEKMSEncryptionContext(const Aws::String &value)
const Aws::String & GetChecksumCRC32() const
const Aws::String & GetSSECustomerKeyMD5() const
const Aws::String & GetETag() const
void SetExpiration(const char *value)
PutObjectResult & WithSSECustomerKeyMD5(const char *value)
PutObjectResult & WithSSEKMSKeyId(const Aws::String &value)
void SetChecksumCRC32(const Aws::String &value)
void SetRequestId(const Aws::String &value)
const ServerSideEncryption & GetServerSideEncryption() const
PutObjectResult & WithBucketKeyEnabled(bool value)
void SetRequestId(Aws::String &&value)
PutObjectResult & WithExpiration(const char *value)
AWS_S3CRT_API PutObjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
PutObjectResult & WithSSEKMSEncryptionContext(const char *value)
PutObjectResult & WithChecksumCRC32C(const char *value)
const Aws::String & GetSSEKMSKeyId() const
const Aws::String & GetSSECustomerAlgorithm() const
PutObjectResult & WithChecksumSHA1(const char *value)
void SetChecksumCRC32C(const Aws::String &value)
void SetSSECustomerAlgorithm(const Aws::String &value)
void SetSSECustomerKeyMD5(Aws::String &&value)
PutObjectResult & WithRequestCharged(RequestCharged &&value)
PutObjectResult & WithSSECustomerKeyMD5(Aws::String &&value)
PutObjectResult & WithExpiration(const Aws::String &value)
const Aws::String & GetSSEKMSEncryptionContext() const
void SetETag(const char *value)
PutObjectResult & WithETag(const char *value)
void SetChecksumSHA1(const char *value)
void SetSSEKMSEncryptionContext(const char *value)
PutObjectResult & WithSSECustomerKeyMD5(const Aws::String &value)
void SetETag(Aws::String &&value)
void SetExpiration(const Aws::String &value)
void SetSSECustomerAlgorithm(const char *value)
const Aws::String & GetChecksumCRC32C() const
void SetRequestCharged(const RequestCharged &value)
const Aws::String & GetRequestId() const
void SetSSEKMSEncryptionContext(Aws::String &&value)
void SetSSECustomerKeyMD5(const char *value)
void SetRequestCharged(RequestCharged &&value)
PutObjectResult & WithSSEKMSKeyId(Aws::String &&value)
PutObjectResult & WithChecksumCRC32C(const Aws::String &value)
PutObjectResult & WithETag(const Aws::String &value)
void SetSSECustomerKeyMD5(const Aws::String &value)
const Aws::String & GetVersionId() const
void SetServerSideEncryption(const ServerSideEncryption &value)
PutObjectResult & WithVersionId(const Aws::String &value)
PutObjectResult & WithSSEKMSEncryptionContext(Aws::String &&value)
void SetVersionId(const char *value)
void SetChecksumSHA1(Aws::String &&value)
void SetChecksumCRC32C(const char *value)
void SetETag(const Aws::String &value)
void SetVersionId(const Aws::String &value)
void SetChecksumSHA1(const Aws::String &value)
PutObjectResult & WithRequestId(Aws::String &&value)
void SetSSECustomerAlgorithm(Aws::String &&value)
void SetSSEKMSKeyId(Aws::String &&value)
const Aws::String & GetChecksumSHA256() const
PutObjectResult & WithChecksumCRC32(const char *value)
void SetExpiration(Aws::String &&value)
PutObjectResult & WithRequestCharged(const RequestCharged &value)
PutObjectResult & WithChecksumSHA256(const Aws::String &value)
PutObjectResult & WithChecksumSHA256(const char *value)
PutObjectResult & WithRequestId(const Aws::String &value)
PutObjectResult & WithChecksumSHA1(const Aws::String &value)
PutObjectResult & WithSSEKMSEncryptionContext(const Aws::String &value)
void SetChecksumCRC32(const char *value)
PutObjectResult & WithETag(Aws::String &&value)
void SetSSEKMSKeyId(const char *value)
void SetServerSideEncryption(ServerSideEncryption &&value)
void SetChecksumCRC32C(Aws::String &&value)
PutObjectResult & WithChecksumCRC32C(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument