AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateMultipartUploadResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/ServerSideEncryption.h>
11#include <aws/s3/model/RequestCharged.h>
12#include <aws/s3/model/ChecksumAlgorithm.h>
13#include <aws/s3/model/ChecksumType.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Xml
24{
25 class XmlDocument;
26} // namespace Xml
27} // namespace Utils
28namespace S3
29{
30namespace Model
31{
33 {
34 public:
35 AWS_S3_API CreateMultipartUploadResult() = default;
38
39
41
54 inline const Aws::Utils::DateTime& GetAbortDate() const { return m_abortDate; }
55 template<typename AbortDateT = Aws::Utils::DateTime>
56 void SetAbortDate(AbortDateT&& value) { m_abortDateHasBeenSet = true; m_abortDate = std::forward<AbortDateT>(value); }
57 template<typename AbortDateT = Aws::Utils::DateTime>
58 CreateMultipartUploadResult& WithAbortDate(AbortDateT&& value) { SetAbortDate(std::forward<AbortDateT>(value)); return *this;}
60
62
68 inline const Aws::String& GetAbortRuleId() const { return m_abortRuleId; }
69 template<typename AbortRuleIdT = Aws::String>
70 void SetAbortRuleId(AbortRuleIdT&& value) { m_abortRuleIdHasBeenSet = true; m_abortRuleId = std::forward<AbortRuleIdT>(value); }
71 template<typename AbortRuleIdT = Aws::String>
72 CreateMultipartUploadResult& WithAbortRuleId(AbortRuleIdT&& value) { SetAbortRuleId(std::forward<AbortRuleIdT>(value)); return *this;}
74
76
81 inline const Aws::String& GetBucket() const { return m_bucket; }
82 template<typename BucketT = Aws::String>
83 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
84 template<typename BucketT = Aws::String>
85 CreateMultipartUploadResult& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
87
89
92 inline const Aws::String& GetKey() const { return m_key; }
93 template<typename KeyT = Aws::String>
94 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
95 template<typename KeyT = Aws::String>
96 CreateMultipartUploadResult& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
98
100
103 inline const Aws::String& GetUploadId() const { return m_uploadId; }
104 template<typename UploadIdT = Aws::String>
105 void SetUploadId(UploadIdT&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::forward<UploadIdT>(value); }
106 template<typename UploadIdT = Aws::String>
107 CreateMultipartUploadResult& WithUploadId(UploadIdT&& value) { SetUploadId(std::forward<UploadIdT>(value)); return *this;}
109
111
117 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
118 inline void SetServerSideEncryption(ServerSideEncryption value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
121
123
129 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
130 template<typename SSECustomerAlgorithmT = Aws::String>
131 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value); }
132 template<typename SSECustomerAlgorithmT = Aws::String>
133 CreateMultipartUploadResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value)); return *this;}
135
137
143 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
144 template<typename SSECustomerKeyMD5T = Aws::String>
145 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value); }
146 template<typename SSECustomerKeyMD5T = Aws::String>
147 CreateMultipartUploadResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value)); return *this;}
149
151
155 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
156 template<typename SSEKMSKeyIdT = Aws::String>
157 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value); }
158 template<typename SSEKMSKeyIdT = Aws::String>
159 CreateMultipartUploadResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) { SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value)); return *this;}
161
163
169 inline const Aws::String& GetSSEKMSEncryptionContext() const { return m_sSEKMSEncryptionContext; }
170 template<typename SSEKMSEncryptionContextT = Aws::String>
171 void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) { m_sSEKMSEncryptionContextHasBeenSet = true; m_sSEKMSEncryptionContext = std::forward<SSEKMSEncryptionContextT>(value); }
172 template<typename SSEKMSEncryptionContextT = Aws::String>
173 CreateMultipartUploadResult& WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) { SetSSEKMSEncryptionContext(std::forward<SSEKMSEncryptionContextT>(value)); return *this;}
175
177
181 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
182 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabledHasBeenSet = true; m_bucketKeyEnabled = value; }
183 inline CreateMultipartUploadResult& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
185
187
188 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
189 inline void SetRequestCharged(RequestCharged value) { m_requestChargedHasBeenSet = true; m_requestCharged = value; }
192
194
197 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
198 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
201
203
209 inline ChecksumType GetChecksumType() const { return m_checksumType; }
210 inline void SetChecksumType(ChecksumType value) { m_checksumTypeHasBeenSet = true; m_checksumType = value; }
213
215
216 inline const Aws::String& GetRequestId() const { return m_requestId; }
217 template<typename RequestIdT = Aws::String>
218 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
219 template<typename RequestIdT = Aws::String>
220 CreateMultipartUploadResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
222 private:
223
224 Aws::Utils::DateTime m_abortDate{};
225 bool m_abortDateHasBeenSet = false;
226
227 Aws::String m_abortRuleId;
228 bool m_abortRuleIdHasBeenSet = false;
229
230 Aws::String m_bucket;
231 bool m_bucketHasBeenSet = false;
232
233 Aws::String m_key;
234 bool m_keyHasBeenSet = false;
235
236 Aws::String m_uploadId;
237 bool m_uploadIdHasBeenSet = false;
238
240 bool m_serverSideEncryptionHasBeenSet = false;
241
242 Aws::String m_sSECustomerAlgorithm;
243 bool m_sSECustomerAlgorithmHasBeenSet = false;
244
245 Aws::String m_sSECustomerKeyMD5;
246 bool m_sSECustomerKeyMD5HasBeenSet = false;
247
248 Aws::String m_sSEKMSKeyId;
249 bool m_sSEKMSKeyIdHasBeenSet = false;
250
251 Aws::String m_sSEKMSEncryptionContext;
252 bool m_sSEKMSEncryptionContextHasBeenSet = false;
253
254 bool m_bucketKeyEnabled{false};
255 bool m_bucketKeyEnabledHasBeenSet = false;
256
257 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
258 bool m_requestChargedHasBeenSet = false;
259
261 bool m_checksumAlgorithmHasBeenSet = false;
262
263 ChecksumType m_checksumType{ChecksumType::NOT_SET};
264 bool m_checksumTypeHasBeenSet = false;
265
266 Aws::String m_requestId;
267 bool m_requestIdHasBeenSet = false;
268 };
269
270} // namespace Model
271} // namespace S3
272} // namespace Aws
CreateMultipartUploadResult & WithChecksumType(ChecksumType value)
CreateMultipartUploadResult & WithBucket(BucketT &&value)
void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
AWS_S3_API CreateMultipartUploadResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3_API CreateMultipartUploadResult()=default
CreateMultipartUploadResult & WithBucketKeyEnabled(bool value)
CreateMultipartUploadResult & WithAbortDate(AbortDateT &&value)
CreateMultipartUploadResult & WithChecksumAlgorithm(ChecksumAlgorithm value)
CreateMultipartUploadResult & WithKey(KeyT &&value)
CreateMultipartUploadResult & WithServerSideEncryption(ServerSideEncryption value)
CreateMultipartUploadResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
CreateMultipartUploadResult & WithAbortRuleId(AbortRuleIdT &&value)
CreateMultipartUploadResult & WithRequestId(RequestIdT &&value)
CreateMultipartUploadResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
CreateMultipartUploadResult & WithUploadId(UploadIdT &&value)
CreateMultipartUploadResult & WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
CreateMultipartUploadResult & WithRequestCharged(RequestCharged value)
AWS_S3_API CreateMultipartUploadResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateMultipartUploadResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
const Aws::Utils::DateTime & GetAbortDate() const
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument