AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UploadPartResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/RequestCharged.h>
10#include <aws/s3/model/ServerSideEncryption.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace S3 {
24namespace Model {
26 public:
27 AWS_S3_API UploadPartResult() = default;
30
32
38 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
40 m_serverSideEncryptionHasBeenSet = true;
41 m_serverSideEncryption = value;
42 }
45 return *this;
46 }
48
50
53 inline const Aws::String& GetETag() const { return m_eTag; }
54 template <typename ETagT = Aws::String>
55 void SetETag(ETagT&& value) {
56 m_eTagHasBeenSet = true;
57 m_eTag = std::forward<ETagT>(value);
58 }
59 template <typename ETagT = Aws::String>
60 UploadPartResult& WithETag(ETagT&& value) {
61 SetETag(std::forward<ETagT>(value));
62 return *this;
63 }
65
67
77 inline const Aws::String& GetChecksumCRC32() const { return m_checksumCRC32; }
78 template <typename ChecksumCRC32T = Aws::String>
79 void SetChecksumCRC32(ChecksumCRC32T&& value) {
80 m_checksumCRC32HasBeenSet = true;
81 m_checksumCRC32 = std::forward<ChecksumCRC32T>(value);
82 }
83 template <typename ChecksumCRC32T = Aws::String>
84 UploadPartResult& WithChecksumCRC32(ChecksumCRC32T&& value) {
85 SetChecksumCRC32(std::forward<ChecksumCRC32T>(value));
86 return *this;
87 }
89
91
101 inline const Aws::String& GetChecksumCRC32C() const { return m_checksumCRC32C; }
102 template <typename ChecksumCRC32CT = Aws::String>
103 void SetChecksumCRC32C(ChecksumCRC32CT&& value) {
104 m_checksumCRC32CHasBeenSet = true;
105 m_checksumCRC32C = std::forward<ChecksumCRC32CT>(value);
106 }
107 template <typename ChecksumCRC32CT = Aws::String>
108 UploadPartResult& WithChecksumCRC32C(ChecksumCRC32CT&& value) {
109 SetChecksumCRC32C(std::forward<ChecksumCRC32CT>(value));
110 return *this;
111 }
113
115
123 inline const Aws::String& GetChecksumCRC64NVME() const { return m_checksumCRC64NVME; }
124 template <typename ChecksumCRC64NVMET = Aws::String>
125 void SetChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
126 m_checksumCRC64NVMEHasBeenSet = true;
127 m_checksumCRC64NVME = std::forward<ChecksumCRC64NVMET>(value);
128 }
129 template <typename ChecksumCRC64NVMET = Aws::String>
130 UploadPartResult& WithChecksumCRC64NVME(ChecksumCRC64NVMET&& value) {
131 SetChecksumCRC64NVME(std::forward<ChecksumCRC64NVMET>(value));
132 return *this;
133 }
135
137
147 inline const Aws::String& GetChecksumSHA1() const { return m_checksumSHA1; }
148 template <typename ChecksumSHA1T = Aws::String>
149 void SetChecksumSHA1(ChecksumSHA1T&& value) {
150 m_checksumSHA1HasBeenSet = true;
151 m_checksumSHA1 = std::forward<ChecksumSHA1T>(value);
152 }
153 template <typename ChecksumSHA1T = Aws::String>
154 UploadPartResult& WithChecksumSHA1(ChecksumSHA1T&& value) {
155 SetChecksumSHA1(std::forward<ChecksumSHA1T>(value));
156 return *this;
157 }
159
161
171 inline const Aws::String& GetChecksumSHA256() const { return m_checksumSHA256; }
172 template <typename ChecksumSHA256T = Aws::String>
173 void SetChecksumSHA256(ChecksumSHA256T&& value) {
174 m_checksumSHA256HasBeenSet = true;
175 m_checksumSHA256 = std::forward<ChecksumSHA256T>(value);
176 }
177 template <typename ChecksumSHA256T = Aws::String>
178 UploadPartResult& WithChecksumSHA256(ChecksumSHA256T&& value) {
179 SetChecksumSHA256(std::forward<ChecksumSHA256T>(value));
180 return *this;
181 }
183
185
191 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
192 template <typename SSECustomerAlgorithmT = Aws::String>
193 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
194 m_sSECustomerAlgorithmHasBeenSet = true;
195 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
196 }
197 template <typename SSECustomerAlgorithmT = Aws::String>
198 UploadPartResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
199 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
200 return *this;
201 }
203
205
211 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
212 template <typename SSECustomerKeyMD5T = Aws::String>
213 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
214 m_sSECustomerKeyMD5HasBeenSet = true;
215 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
216 }
217 template <typename SSECustomerKeyMD5T = Aws::String>
218 UploadPartResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
219 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
220 return *this;
221 }
223
225
229 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
230 template <typename SSEKMSKeyIdT = Aws::String>
231 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
232 m_sSEKMSKeyIdHasBeenSet = true;
233 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
234 }
235 template <typename SSEKMSKeyIdT = Aws::String>
236 UploadPartResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
237 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
238 return *this;
239 }
241
243
247 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
248 inline void SetBucketKeyEnabled(bool value) {
249 m_bucketKeyEnabledHasBeenSet = true;
250 m_bucketKeyEnabled = value;
251 }
253 SetBucketKeyEnabled(value);
254 return *this;
255 }
257
259
260 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
262 m_requestChargedHasBeenSet = true;
263 m_requestCharged = value;
264 }
266 SetRequestCharged(value);
267 return *this;
268 }
270
272
273 inline const Aws::String& GetRequestId() const { return m_requestId; }
274 template <typename RequestIdT = Aws::String>
275 void SetRequestId(RequestIdT&& value) {
276 m_requestIdHasBeenSet = true;
277 m_requestId = std::forward<RequestIdT>(value);
278 }
279 template <typename RequestIdT = Aws::String>
280 UploadPartResult& WithRequestId(RequestIdT&& value) {
281 SetRequestId(std::forward<RequestIdT>(value));
282 return *this;
283 }
285 private:
287
288 Aws::String m_eTag;
289
290 Aws::String m_checksumCRC32;
291
292 Aws::String m_checksumCRC32C;
293
294 Aws::String m_checksumCRC64NVME;
295
296 Aws::String m_checksumSHA1;
297
298 Aws::String m_checksumSHA256;
299
300 Aws::String m_sSECustomerAlgorithm;
301
302 Aws::String m_sSECustomerKeyMD5;
303
304 Aws::String m_sSEKMSKeyId;
305
306 bool m_bucketKeyEnabled{false};
307
308 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
309
310 Aws::String m_requestId;
311 bool m_serverSideEncryptionHasBeenSet = false;
312 bool m_eTagHasBeenSet = false;
313 bool m_checksumCRC32HasBeenSet = false;
314 bool m_checksumCRC32CHasBeenSet = false;
315 bool m_checksumCRC64NVMEHasBeenSet = false;
316 bool m_checksumSHA1HasBeenSet = false;
317 bool m_checksumSHA256HasBeenSet = false;
318 bool m_sSECustomerAlgorithmHasBeenSet = false;
319 bool m_sSECustomerKeyMD5HasBeenSet = false;
320 bool m_sSEKMSKeyIdHasBeenSet = false;
321 bool m_bucketKeyEnabledHasBeenSet = false;
322 bool m_requestChargedHasBeenSet = false;
323 bool m_requestIdHasBeenSet = false;
324};
325
326} // namespace Model
327} // namespace S3
328} // namespace Aws
void SetChecksumCRC32C(ChecksumCRC32CT &&value)
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
const Aws::String & GetRequestId() const
UploadPartResult & WithChecksumCRC32(ChecksumCRC32T &&value)
const Aws::String & GetChecksumCRC32() const
UploadPartResult & WithETag(ETagT &&value)
const Aws::String & GetSSECustomerKeyMD5() const
UploadPartResult & WithChecksumCRC32C(ChecksumCRC32CT &&value)
const Aws::String & GetChecksumSHA256() const
UploadPartResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
AWS_S3_API UploadPartResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetChecksumCRC32C() const
UploadPartResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
const Aws::String & GetChecksumCRC64NVME() const
const Aws::String & GetChecksumSHA1() const
void SetChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
UploadPartResult & WithServerSideEncryption(ServerSideEncryption value)
AWS_S3_API UploadPartResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetRequestId(RequestIdT &&value)
RequestCharged GetRequestCharged() const
UploadPartResult & WithBucketKeyEnabled(bool value)
UploadPartResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
UploadPartResult & WithRequestCharged(RequestCharged value)
UploadPartResult & WithRequestId(RequestIdT &&value)
ServerSideEncryption GetServerSideEncryption() const
const Aws::String & GetSSECustomerAlgorithm() const
void SetChecksumCRC32(ChecksumCRC32T &&value)
const Aws::String & GetETag() const
const Aws::String & GetSSEKMSKeyId() const
AWS_S3_API UploadPartResult()=default
UploadPartResult & WithChecksumSHA256(ChecksumSHA256T &&value)
void SetServerSideEncryption(ServerSideEncryption value)
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetRequestCharged(RequestCharged value)
UploadPartResult & WithChecksumSHA1(ChecksumSHA1T &&value)
void SetChecksumSHA256(ChecksumSHA256T &&value)
UploadPartResult & WithChecksumCRC64NVME(ChecksumCRC64NVMET &&value)
void SetChecksumSHA1(ChecksumSHA1T &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument