AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CopyObjectResult.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace S3
27{
28namespace Model
29{
31 {
32 public:
36
37
42 inline const Aws::String& GetExpiration() const{ return m_expiration; }
43
48 inline void SetExpiration(const Aws::String& value) { m_expiration = value; }
49
54 inline void SetExpiration(Aws::String&& value) { m_expiration = std::move(value); }
55
60 inline void SetExpiration(const char* value) { m_expiration.assign(value); }
61
66 inline CopyObjectResult& WithExpiration(const Aws::String& value) { SetExpiration(value); return *this;}
67
72 inline CopyObjectResult& WithExpiration(Aws::String&& value) { SetExpiration(std::move(value)); return *this;}
73
78 inline CopyObjectResult& WithExpiration(const char* value) { SetExpiration(value); return *this;}
79
80
84 inline const Aws::String& GetCopySourceVersionId() const{ return m_copySourceVersionId; }
85
89 inline void SetCopySourceVersionId(const Aws::String& value) { m_copySourceVersionId = value; }
90
94 inline void SetCopySourceVersionId(Aws::String&& value) { m_copySourceVersionId = std::move(value); }
95
99 inline void SetCopySourceVersionId(const char* value) { m_copySourceVersionId.assign(value); }
100
104 inline CopyObjectResult& WithCopySourceVersionId(const Aws::String& value) { SetCopySourceVersionId(value); return *this;}
105
109 inline CopyObjectResult& WithCopySourceVersionId(Aws::String&& value) { SetCopySourceVersionId(std::move(value)); return *this;}
110
114 inline CopyObjectResult& WithCopySourceVersionId(const char* value) { SetCopySourceVersionId(value); return *this;}
115
116
120 inline const Aws::String& GetVersionId() const{ return m_versionId; }
121
125 inline void SetVersionId(const Aws::String& value) { m_versionId = value; }
126
130 inline void SetVersionId(Aws::String&& value) { m_versionId = std::move(value); }
131
135 inline void SetVersionId(const char* value) { m_versionId.assign(value); }
136
140 inline CopyObjectResult& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
141
145 inline CopyObjectResult& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
146
150 inline CopyObjectResult& WithVersionId(const char* value) { SetVersionId(value); return *this;}
151
152
157 inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
158
163 inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryption = value; }
164
169 inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryption = std::move(value); }
170
176
182
183
189 inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
190
196 inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithm = value; }
197
203 inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithm = std::move(value); }
204
210 inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithm.assign(value); }
211
218
224 inline CopyObjectResult& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(std::move(value)); return *this;}
225
231 inline CopyObjectResult& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
232
233
239 inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
240
246 inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5 = value; }
247
253 inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5 = std::move(value); }
254
260 inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5.assign(value); }
261
267 inline CopyObjectResult& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
268
274 inline CopyObjectResult& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(std::move(value)); return *this;}
275
281 inline CopyObjectResult& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
282
283
289 inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
290
296 inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyId = value; }
297
303 inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyId = std::move(value); }
304
310 inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyId.assign(value); }
311
317 inline CopyObjectResult& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
318
324 inline CopyObjectResult& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(std::move(value)); return *this;}
325
331 inline CopyObjectResult& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
332
333
339 inline const Aws::String& GetSSEKMSEncryptionContext() const{ return m_sSEKMSEncryptionContext; }
340
346 inline void SetSSEKMSEncryptionContext(const Aws::String& value) { m_sSEKMSEncryptionContext = value; }
347
353 inline void SetSSEKMSEncryptionContext(Aws::String&& value) { m_sSEKMSEncryptionContext = std::move(value); }
354
360 inline void SetSSEKMSEncryptionContext(const char* value) { m_sSEKMSEncryptionContext.assign(value); }
361
368
374 inline CopyObjectResult& WithSSEKMSEncryptionContext(Aws::String&& value) { SetSSEKMSEncryptionContext(std::move(value)); return *this;}
375
381 inline CopyObjectResult& WithSSEKMSEncryptionContext(const char* value) { SetSSEKMSEncryptionContext(value); return *this;}
382
383
388 inline bool GetBucketKeyEnabled() const{ return m_bucketKeyEnabled; }
389
394 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabled = value; }
395
400 inline CopyObjectResult& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
401
402
403
404 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
405
406
407 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
408
409
410 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
411
412
413 inline CopyObjectResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
414
415
416 inline CopyObjectResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
417
418
422 inline const CopyObjectResultDetails& GetCopyObjectResultDetails() const{ return m_copyObjectResultDetails; }
423
427 inline void SetCopyObjectResultDetails(const CopyObjectResultDetails& value) { m_copyObjectResultDetails = value; }
428
432 inline void SetCopyObjectResultDetails(CopyObjectResultDetails&& value) { m_copyObjectResultDetails = std::move(value); }
433
438
443
444 private:
445
446 Aws::String m_expiration;
447
448 Aws::String m_copySourceVersionId;
449
450 Aws::String m_versionId;
451
452 ServerSideEncryption m_serverSideEncryption;
453
454 Aws::String m_sSECustomerAlgorithm;
455
456 Aws::String m_sSECustomerKeyMD5;
457
458 Aws::String m_sSEKMSKeyId;
459
460 Aws::String m_sSEKMSEncryptionContext;
461
462 bool m_bucketKeyEnabled;
463
464 RequestCharged m_requestCharged;
465
466 CopyObjectResultDetails m_copyObjectResultDetails;
467 };
468
469} // namespace Model
470} // namespace S3
471} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
CopyObjectResult & WithExpiration(Aws::String &&value)
CopyObjectResult & WithCopySourceVersionId(Aws::String &&value)
CopyObjectResult & WithServerSideEncryption(const ServerSideEncryption &value)
void SetServerSideEncryption(ServerSideEncryption &&value)
const Aws::String & GetSSEKMSKeyId() const
CopyObjectResult & WithSSECustomerKeyMD5(Aws::String &&value)
void SetSSECustomerKeyMD5(Aws::String &&value)
CopyObjectResult & WithSSECustomerAlgorithm(const Aws::String &value)
CopyObjectResult & WithExpiration(const Aws::String &value)
void SetVersionId(Aws::String &&value)
void SetSSEKMSEncryptionContext(const char *value)
void SetServerSideEncryption(const ServerSideEncryption &value)
const Aws::String & GetVersionId() const
AWS_S3_API CopyObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const ServerSideEncryption & GetServerSideEncryption() const
CopyObjectResult & WithRequestCharged(RequestCharged &&value)
CopyObjectResult & WithSSEKMSEncryptionContext(const Aws::String &value)
void SetExpiration(const char *value)
const Aws::String & GetSSEKMSEncryptionContext() const
void SetSSECustomerKeyMD5(const Aws::String &value)
void SetVersionId(const char *value)
void SetRequestCharged(const RequestCharged &value)
void SetCopySourceVersionId(const char *value)
const Aws::String & GetCopySourceVersionId() const
CopyObjectResult & WithSSEKMSKeyId(const char *value)
void SetSSECustomerAlgorithm(const char *value)
CopyObjectResult & WithCopySourceVersionId(const Aws::String &value)
CopyObjectResult & WithRequestCharged(const RequestCharged &value)
void SetCopySourceVersionId(Aws::String &&value)
void SetCopySourceVersionId(const Aws::String &value)
const Aws::String & GetExpiration() const
CopyObjectResult & WithSSECustomerAlgorithm(Aws::String &&value)
CopyObjectResult & WithBucketKeyEnabled(bool value)
CopyObjectResult & WithSSECustomerAlgorithm(const char *value)
void SetCopyObjectResultDetails(const CopyObjectResultDetails &value)
void SetSSEKMSKeyId(Aws::String &&value)
CopyObjectResult & WithCopyObjectResultDetails(CopyObjectResultDetails &&value)
void SetSSEKMSEncryptionContext(Aws::String &&value)
CopyObjectResult & WithSSEKMSEncryptionContext(const char *value)
CopyObjectResult & WithSSECustomerKeyMD5(const Aws::String &value)
const RequestCharged & GetRequestCharged() const
void SetVersionId(const Aws::String &value)
void SetSSECustomerAlgorithm(Aws::String &&value)
const Aws::String & GetSSECustomerAlgorithm() const
CopyObjectResult & WithServerSideEncryption(ServerSideEncryption &&value)
void SetCopyObjectResultDetails(CopyObjectResultDetails &&value)
void SetSSEKMSEncryptionContext(const Aws::String &value)
CopyObjectResult & WithSSECustomerKeyMD5(const char *value)
CopyObjectResult & WithExpiration(const char *value)
CopyObjectResult & WithVersionId(const char *value)
CopyObjectResult & WithVersionId(Aws::String &&value)
CopyObjectResult & WithCopySourceVersionId(const char *value)
void SetSSECustomerKeyMD5(const char *value)
CopyObjectResult & WithSSEKMSKeyId(const Aws::String &value)
void SetRequestCharged(RequestCharged &&value)
const CopyObjectResultDetails & GetCopyObjectResultDetails() const
CopyObjectResult & WithVersionId(const Aws::String &value)
CopyObjectResult & WithCopyObjectResultDetails(const CopyObjectResultDetails &value)
void SetExpiration(const Aws::String &value)
CopyObjectResult & WithSSEKMSEncryptionContext(Aws::String &&value)
void SetExpiration(Aws::String &&value)
void SetSSEKMSKeyId(const Aws::String &value)
void SetSSEKMSKeyId(const char *value)
void SetSSECustomerAlgorithm(const Aws::String &value)
AWS_S3_API CopyObjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetSSECustomerKeyMD5() const
CopyObjectResult & WithSSEKMSKeyId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String