AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CopyObjectResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/S3_EXPORTS.h>
10#include <aws/s3/model/CopyObjectResultDetails.h>
11#include <aws/s3/model/RequestCharged.h>
12#include <aws/s3/model/ServerSideEncryption.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace S3 {
26namespace Model {
28 public:
29 AWS_S3_API CopyObjectResult() = default;
32
34
40 inline const Aws::String& GetExpiration() const { return m_expiration; }
41 template <typename ExpirationT = Aws::String>
42 void SetExpiration(ExpirationT&& value) {
43 m_expirationHasBeenSet = true;
44 m_expiration = std::forward<ExpirationT>(value);
45 }
46 template <typename ExpirationT = Aws::String>
47 CopyObjectResult& WithExpiration(ExpirationT&& value) {
48 SetExpiration(std::forward<ExpirationT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetCopySourceVersionId() const { return m_copySourceVersionId; }
60 template <typename CopySourceVersionIdT = Aws::String>
61 void SetCopySourceVersionId(CopySourceVersionIdT&& value) {
62 m_copySourceVersionIdHasBeenSet = true;
63 m_copySourceVersionId = std::forward<CopySourceVersionIdT>(value);
64 }
65 template <typename CopySourceVersionIdT = Aws::String>
66 CopyObjectResult& WithCopySourceVersionId(CopySourceVersionIdT&& value) {
67 SetCopySourceVersionId(std::forward<CopySourceVersionIdT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetVersionId() const { return m_versionId; }
78 template <typename VersionIdT = Aws::String>
79 void SetVersionId(VersionIdT&& value) {
80 m_versionIdHasBeenSet = true;
81 m_versionId = std::forward<VersionIdT>(value);
82 }
83 template <typename VersionIdT = Aws::String>
84 CopyObjectResult& WithVersionId(VersionIdT&& value) {
85 SetVersionId(std::forward<VersionIdT>(value));
86 return *this;
87 }
89
91
97 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
99 m_serverSideEncryptionHasBeenSet = true;
100 m_serverSideEncryption = value;
101 }
104 return *this;
105 }
107
109
115 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
116 template <typename SSECustomerAlgorithmT = Aws::String>
117 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
118 m_sSECustomerAlgorithmHasBeenSet = true;
119 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
120 }
121 template <typename SSECustomerAlgorithmT = Aws::String>
122 CopyObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
123 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
124 return *this;
125 }
127
129
135 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
136 template <typename SSECustomerKeyMD5T = Aws::String>
137 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
138 m_sSECustomerKeyMD5HasBeenSet = true;
139 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
140 }
141 template <typename SSECustomerKeyMD5T = Aws::String>
142 CopyObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
143 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
144 return *this;
145 }
147
149
153 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
154 template <typename SSEKMSKeyIdT = Aws::String>
155 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
156 m_sSEKMSKeyIdHasBeenSet = true;
157 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
158 }
159 template <typename SSEKMSKeyIdT = Aws::String>
160 CopyObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
161 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
162 return *this;
163 }
165
167
172 inline const Aws::String& GetSSEKMSEncryptionContext() const { return m_sSEKMSEncryptionContext; }
173 template <typename SSEKMSEncryptionContextT = Aws::String>
174 void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
175 m_sSEKMSEncryptionContextHasBeenSet = true;
176 m_sSEKMSEncryptionContext = std::forward<SSEKMSEncryptionContextT>(value);
177 }
178 template <typename SSEKMSEncryptionContextT = Aws::String>
179 CopyObjectResult& WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
180 SetSSEKMSEncryptionContext(std::forward<SSEKMSEncryptionContextT>(value));
181 return *this;
182 }
184
186
190 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
191 inline void SetBucketKeyEnabled(bool value) {
192 m_bucketKeyEnabledHasBeenSet = true;
193 m_bucketKeyEnabled = value;
194 }
196 SetBucketKeyEnabled(value);
197 return *this;
198 }
200
202
203 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
205 m_requestChargedHasBeenSet = true;
206 m_requestCharged = value;
207 }
209 SetRequestCharged(value);
210 return *this;
211 }
213
215
218 inline const CopyObjectResultDetails& GetCopyObjectResultDetails() const { return m_copyObjectResultDetails; }
219 template <typename CopyObjectResultDetailsT = CopyObjectResultDetails>
220 void SetCopyObjectResultDetails(CopyObjectResultDetailsT&& value) {
221 m_copyObjectResultDetailsHasBeenSet = true;
222 m_copyObjectResultDetails = std::forward<CopyObjectResultDetailsT>(value);
223 }
224 template <typename CopyObjectResultDetailsT = CopyObjectResultDetails>
225 CopyObjectResult& WithCopyObjectResultDetails(CopyObjectResultDetailsT&& value) {
226 SetCopyObjectResultDetails(std::forward<CopyObjectResultDetailsT>(value));
227 return *this;
228 }
230
232
233 inline const Aws::String& GetRequestId() const { return m_requestId; }
234 template <typename RequestIdT = Aws::String>
235 void SetRequestId(RequestIdT&& value) {
236 m_requestIdHasBeenSet = true;
237 m_requestId = std::forward<RequestIdT>(value);
238 }
239 template <typename RequestIdT = Aws::String>
240 CopyObjectResult& WithRequestId(RequestIdT&& value) {
241 SetRequestId(std::forward<RequestIdT>(value));
242 return *this;
243 }
245 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
246
247 private:
248 Aws::String m_expiration;
249
250 Aws::String m_copySourceVersionId;
251
252 Aws::String m_versionId;
253
255
256 Aws::String m_sSECustomerAlgorithm;
257
258 Aws::String m_sSECustomerKeyMD5;
259
260 Aws::String m_sSEKMSKeyId;
261
262 Aws::String m_sSEKMSEncryptionContext;
263
264 bool m_bucketKeyEnabled{false};
265
266 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
267
268 CopyObjectResultDetails m_copyObjectResultDetails;
269
270 Aws::String m_requestId;
271 Aws::Http::HttpResponseCode m_HttpResponseCode;
272 bool m_expirationHasBeenSet = false;
273 bool m_copySourceVersionIdHasBeenSet = false;
274 bool m_versionIdHasBeenSet = false;
275 bool m_serverSideEncryptionHasBeenSet = false;
276 bool m_sSECustomerAlgorithmHasBeenSet = false;
277 bool m_sSECustomerKeyMD5HasBeenSet = false;
278 bool m_sSEKMSKeyIdHasBeenSet = false;
279 bool m_sSEKMSEncryptionContextHasBeenSet = false;
280 bool m_bucketKeyEnabledHasBeenSet = false;
281 bool m_requestChargedHasBeenSet = false;
282 bool m_copyObjectResultDetailsHasBeenSet = false;
283 bool m_requestIdHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace S3
288} // namespace Aws
ServerSideEncryption GetServerSideEncryption() const
CopyObjectResult & WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
CopyObjectResult & WithCopySourceVersionId(CopySourceVersionIdT &&value)
const Aws::String & GetSSEKMSKeyId() const
void SetCopyObjectResultDetails(CopyObjectResultDetailsT &&value)
AWS_S3_API CopyObjectResult()=default
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
const Aws::String & GetVersionId() const
AWS_S3_API CopyObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CopyObjectResult & WithCopyObjectResultDetails(CopyObjectResultDetailsT &&value)
const Aws::String & GetSSEKMSEncryptionContext() const
void SetRequestCharged(RequestCharged value)
CopyObjectResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
void SetVersionId(VersionIdT &&value)
const Aws::String & GetCopySourceVersionId() const
CopyObjectResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
RequestCharged GetRequestCharged() const
const Aws::String & GetExpiration() const
void SetExpiration(ExpirationT &&value)
CopyObjectResult & WithBucketKeyEnabled(bool value)
const Aws::String & GetRequestId() const
const Aws::String & GetSSECustomerAlgorithm() const
CopyObjectResult & WithRequestId(RequestIdT &&value)
CopyObjectResult & WithServerSideEncryption(ServerSideEncryption value)
void SetRequestId(RequestIdT &&value)
void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const CopyObjectResultDetails & GetCopyObjectResultDetails() const
void SetCopySourceVersionId(CopySourceVersionIdT &&value)
void SetServerSideEncryption(ServerSideEncryption value)
CopyObjectResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
CopyObjectResult & WithVersionId(VersionIdT &&value)
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
CopyObjectResult & WithRequestCharged(RequestCharged value)
AWS_S3_API CopyObjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetSSECustomerKeyMD5() const
CopyObjectResult & WithExpiration(ExpirationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument