AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CopyObjectResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3-crt/S3Crt_EXPORTS.h>
9#include <aws/s3-crt/model/CopyObjectResultDetails.h>
10#include <aws/s3-crt/model/RequestCharged.h>
11#include <aws/s3-crt/model/ServerSideEncryption.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace S3Crt {
25namespace Model {
27 public:
28 AWS_S3CRT_API CopyObjectResult() = default;
31
33
39 inline const Aws::String& GetExpiration() const { return m_expiration; }
40 template <typename ExpirationT = Aws::String>
41 void SetExpiration(ExpirationT&& value) {
42 m_expirationHasBeenSet = true;
43 m_expiration = std::forward<ExpirationT>(value);
44 }
45 template <typename ExpirationT = Aws::String>
46 CopyObjectResult& WithExpiration(ExpirationT&& value) {
47 SetExpiration(std::forward<ExpirationT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetCopySourceVersionId() const { return m_copySourceVersionId; }
59 template <typename CopySourceVersionIdT = Aws::String>
60 void SetCopySourceVersionId(CopySourceVersionIdT&& value) {
61 m_copySourceVersionIdHasBeenSet = true;
62 m_copySourceVersionId = std::forward<CopySourceVersionIdT>(value);
63 }
64 template <typename CopySourceVersionIdT = Aws::String>
65 CopyObjectResult& WithCopySourceVersionId(CopySourceVersionIdT&& value) {
66 SetCopySourceVersionId(std::forward<CopySourceVersionIdT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetVersionId() const { return m_versionId; }
77 template <typename VersionIdT = Aws::String>
78 void SetVersionId(VersionIdT&& value) {
79 m_versionIdHasBeenSet = true;
80 m_versionId = std::forward<VersionIdT>(value);
81 }
82 template <typename VersionIdT = Aws::String>
83 CopyObjectResult& WithVersionId(VersionIdT&& value) {
84 SetVersionId(std::forward<VersionIdT>(value));
85 return *this;
86 }
88
90
96 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
98 m_serverSideEncryptionHasBeenSet = true;
99 m_serverSideEncryption = value;
100 }
103 return *this;
104 }
106
108
114 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
115 template <typename SSECustomerAlgorithmT = Aws::String>
116 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
117 m_sSECustomerAlgorithmHasBeenSet = true;
118 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
119 }
120 template <typename SSECustomerAlgorithmT = Aws::String>
121 CopyObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
122 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
123 return *this;
124 }
126
128
134 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
135 template <typename SSECustomerKeyMD5T = Aws::String>
136 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
137 m_sSECustomerKeyMD5HasBeenSet = true;
138 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
139 }
140 template <typename SSECustomerKeyMD5T = Aws::String>
141 CopyObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
142 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
153 template <typename SSEKMSKeyIdT = Aws::String>
154 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
155 m_sSEKMSKeyIdHasBeenSet = true;
156 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
157 }
158 template <typename SSEKMSKeyIdT = Aws::String>
159 CopyObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
160 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
161 return *this;
162 }
164
166
171 inline const Aws::String& GetSSEKMSEncryptionContext() const { return m_sSEKMSEncryptionContext; }
172 template <typename SSEKMSEncryptionContextT = Aws::String>
173 void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
174 m_sSEKMSEncryptionContextHasBeenSet = true;
175 m_sSEKMSEncryptionContext = std::forward<SSEKMSEncryptionContextT>(value);
176 }
177 template <typename SSEKMSEncryptionContextT = Aws::String>
178 CopyObjectResult& WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
179 SetSSEKMSEncryptionContext(std::forward<SSEKMSEncryptionContextT>(value));
180 return *this;
181 }
183
185
189 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
190 inline void SetBucketKeyEnabled(bool value) {
191 m_bucketKeyEnabledHasBeenSet = true;
192 m_bucketKeyEnabled = value;
193 }
195 SetBucketKeyEnabled(value);
196 return *this;
197 }
199
201
202 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
204 m_requestChargedHasBeenSet = true;
205 m_requestCharged = value;
206 }
208 SetRequestCharged(value);
209 return *this;
210 }
212
214
217 inline const CopyObjectResultDetails& GetCopyObjectResultDetails() const { return m_copyObjectResultDetails; }
218 template <typename CopyObjectResultDetailsT = CopyObjectResultDetails>
219 void SetCopyObjectResultDetails(CopyObjectResultDetailsT&& value) {
220 m_copyObjectResultDetailsHasBeenSet = true;
221 m_copyObjectResultDetails = std::forward<CopyObjectResultDetailsT>(value);
222 }
223 template <typename CopyObjectResultDetailsT = CopyObjectResultDetails>
224 CopyObjectResult& WithCopyObjectResultDetails(CopyObjectResultDetailsT&& value) {
225 SetCopyObjectResultDetails(std::forward<CopyObjectResultDetailsT>(value));
226 return *this;
227 }
229
231
232 inline const Aws::String& GetRequestId() const { return m_requestId; }
233 template <typename RequestIdT = Aws::String>
234 void SetRequestId(RequestIdT&& value) {
235 m_requestIdHasBeenSet = true;
236 m_requestId = std::forward<RequestIdT>(value);
237 }
238 template <typename RequestIdT = Aws::String>
239 CopyObjectResult& WithRequestId(RequestIdT&& value) {
240 SetRequestId(std::forward<RequestIdT>(value));
241 return *this;
242 }
244 private:
245 Aws::String m_expiration;
246
247 Aws::String m_copySourceVersionId;
248
249 Aws::String m_versionId;
250
252
253 Aws::String m_sSECustomerAlgorithm;
254
255 Aws::String m_sSECustomerKeyMD5;
256
257 Aws::String m_sSEKMSKeyId;
258
259 Aws::String m_sSEKMSEncryptionContext;
260
261 bool m_bucketKeyEnabled{false};
262
263 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
264
265 CopyObjectResultDetails m_copyObjectResultDetails;
266
267 Aws::String m_requestId;
268 bool m_expirationHasBeenSet = false;
269 bool m_copySourceVersionIdHasBeenSet = false;
270 bool m_versionIdHasBeenSet = false;
271 bool m_serverSideEncryptionHasBeenSet = false;
272 bool m_sSECustomerAlgorithmHasBeenSet = false;
273 bool m_sSECustomerKeyMD5HasBeenSet = false;
274 bool m_sSEKMSKeyIdHasBeenSet = false;
275 bool m_sSEKMSEncryptionContextHasBeenSet = false;
276 bool m_bucketKeyEnabledHasBeenSet = false;
277 bool m_requestChargedHasBeenSet = false;
278 bool m_copyObjectResultDetailsHasBeenSet = false;
279 bool m_requestIdHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace S3Crt
284} // namespace Aws
CopyObjectResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetServerSideEncryption(ServerSideEncryption value)
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
RequestCharged GetRequestCharged() const
CopyObjectResult & WithExpiration(ExpirationT &&value)
const Aws::String & GetSSECustomerAlgorithm() const
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
CopyObjectResult & WithCopySourceVersionId(CopySourceVersionIdT &&value)
CopyObjectResult & WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
void SetCopySourceVersionId(CopySourceVersionIdT &&value)
const Aws::String & GetSSEKMSEncryptionContext() const
void SetExpiration(ExpirationT &&value)
CopyObjectResult & WithRequestCharged(RequestCharged value)
CopyObjectResult & WithBucketKeyEnabled(bool value)
CopyObjectResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
CopyObjectResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
ServerSideEncryption GetServerSideEncryption() const
CopyObjectResult & WithRequestId(RequestIdT &&value)
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
const Aws::String & GetCopySourceVersionId() const
CopyObjectResult & WithCopyObjectResultDetails(CopyObjectResultDetailsT &&value)
CopyObjectResult & WithVersionId(VersionIdT &&value)
AWS_S3CRT_API CopyObjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetSSEKMSKeyId() const
const Aws::String & GetRequestId() const
AWS_S3CRT_API CopyObjectResult()=default
void SetRequestCharged(RequestCharged value)
AWS_S3CRT_API CopyObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetSSECustomerKeyMD5() const
void SetCopyObjectResultDetails(CopyObjectResultDetailsT &&value)
const Aws::String & GetExpiration() const
CopyObjectResult & WithServerSideEncryption(ServerSideEncryption value)
const CopyObjectResultDetails & GetCopyObjectResultDetails() const
const Aws::String & GetVersionId() const
void SetVersionId(VersionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument