AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CopyObjectResult.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3-crt/model/ServerSideEncryption.h>
10#include <aws/s3-crt/model/RequestCharged.h>
11#include <aws/s3-crt/model/CopyObjectResultDetails.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 S3Crt
27{
28namespace Model
29{
31 {
32 public:
33 AWS_S3CRT_API CopyObjectResult();
36
37
39
44 inline const Aws::String& GetExpiration() const{ return m_expiration; }
45 inline void SetExpiration(const Aws::String& value) { m_expiration = value; }
46 inline void SetExpiration(Aws::String&& value) { m_expiration = std::move(value); }
47 inline void SetExpiration(const char* value) { m_expiration.assign(value); }
48 inline CopyObjectResult& WithExpiration(const Aws::String& value) { SetExpiration(value); return *this;}
49 inline CopyObjectResult& WithExpiration(Aws::String&& value) { SetExpiration(std::move(value)); return *this;}
50 inline CopyObjectResult& WithExpiration(const char* value) { SetExpiration(value); return *this;}
52
54
59 inline const Aws::String& GetCopySourceVersionId() const{ return m_copySourceVersionId; }
60 inline void SetCopySourceVersionId(const Aws::String& value) { m_copySourceVersionId = value; }
61 inline void SetCopySourceVersionId(Aws::String&& value) { m_copySourceVersionId = std::move(value); }
62 inline void SetCopySourceVersionId(const char* value) { m_copySourceVersionId.assign(value); }
63 inline CopyObjectResult& WithCopySourceVersionId(const Aws::String& value) { SetCopySourceVersionId(value); return *this;}
64 inline CopyObjectResult& WithCopySourceVersionId(Aws::String&& value) { SetCopySourceVersionId(std::move(value)); return *this;}
65 inline CopyObjectResult& WithCopySourceVersionId(const char* value) { SetCopySourceVersionId(value); return *this;}
67
69
73 inline const Aws::String& GetVersionId() const{ return m_versionId; }
74 inline void SetVersionId(const Aws::String& value) { m_versionId = value; }
75 inline void SetVersionId(Aws::String&& value) { m_versionId = std::move(value); }
76 inline void SetVersionId(const char* value) { m_versionId.assign(value); }
77 inline CopyObjectResult& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
78 inline CopyObjectResult& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
79 inline CopyObjectResult& WithVersionId(const char* value) { SetVersionId(value); return *this;}
81
83
88 inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
89 inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryption = value; }
90 inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryption = std::move(value); }
94
96
102 inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
103 inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithm = value; }
104 inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithm = std::move(value); }
105 inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithm.assign(value); }
107 inline CopyObjectResult& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(std::move(value)); return *this;}
108 inline CopyObjectResult& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
110
112
118 inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
119 inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5 = value; }
120 inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5 = std::move(value); }
121 inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5.assign(value); }
122 inline CopyObjectResult& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
123 inline CopyObjectResult& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(std::move(value)); return *this;}
124 inline CopyObjectResult& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
126
128
132 inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
133 inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyId = value; }
134 inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyId = std::move(value); }
135 inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyId.assign(value); }
136 inline CopyObjectResult& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
137 inline CopyObjectResult& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(std::move(value)); return *this;}
138 inline CopyObjectResult& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
140
142
147 inline const Aws::String& GetSSEKMSEncryptionContext() const{ return m_sSEKMSEncryptionContext; }
148 inline void SetSSEKMSEncryptionContext(const Aws::String& value) { m_sSEKMSEncryptionContext = value; }
149 inline void SetSSEKMSEncryptionContext(Aws::String&& value) { m_sSEKMSEncryptionContext = std::move(value); }
150 inline void SetSSEKMSEncryptionContext(const char* value) { m_sSEKMSEncryptionContext.assign(value); }
152 inline CopyObjectResult& WithSSEKMSEncryptionContext(Aws::String&& value) { SetSSEKMSEncryptionContext(std::move(value)); return *this;}
153 inline CopyObjectResult& WithSSEKMSEncryptionContext(const char* value) { SetSSEKMSEncryptionContext(value); return *this;}
155
157
161 inline bool GetBucketKeyEnabled() const{ return m_bucketKeyEnabled; }
162 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabled = value; }
163 inline CopyObjectResult& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
165
167
168 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
169 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
170 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
171 inline CopyObjectResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
172 inline CopyObjectResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
174
176
179 inline const CopyObjectResultDetails& GetCopyObjectResultDetails() const{ return m_copyObjectResultDetails; }
180 inline void SetCopyObjectResultDetails(const CopyObjectResultDetails& value) { m_copyObjectResultDetails = value; }
181 inline void SetCopyObjectResultDetails(CopyObjectResultDetails&& value) { m_copyObjectResultDetails = std::move(value); }
185
187
188 inline const Aws::String& GetRequestId() const{ return m_requestId; }
189 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
190 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
191 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
192 inline CopyObjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
193 inline CopyObjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
194 inline CopyObjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
196 private:
197
198 Aws::String m_expiration;
199
200 Aws::String m_copySourceVersionId;
201
202 Aws::String m_versionId;
203
204 ServerSideEncryption m_serverSideEncryption;
205
206 Aws::String m_sSECustomerAlgorithm;
207
208 Aws::String m_sSECustomerKeyMD5;
209
210 Aws::String m_sSEKMSKeyId;
211
212 Aws::String m_sSEKMSEncryptionContext;
213
214 bool m_bucketKeyEnabled;
215
216 RequestCharged m_requestCharged;
217
218 CopyObjectResultDetails m_copyObjectResultDetails;
219
220 Aws::String m_requestId;
221 };
222
223} // namespace Model
224} // namespace S3Crt
225} // namespace Aws
CopyObjectResult & WithSSECustomerAlgorithm(Aws::String &&value)
void SetVersionId(const Aws::String &value)
void SetRequestCharged(RequestCharged &&value)
void SetSSECustomerAlgorithm(const char *value)
void SetSSECustomerAlgorithm(const Aws::String &value)
void SetSSECustomerKeyMD5(const char *value)
void SetCopySourceVersionId(Aws::String &&value)
void SetSSECustomerKeyMD5(Aws::String &&value)
void SetSSEKMSKeyId(Aws::String &&value)
CopyObjectResult & WithCopySourceVersionId(Aws::String &&value)
const Aws::String & GetSSECustomerAlgorithm() const
void SetExpiration(Aws::String &&value)
CopyObjectResult & WithSSECustomerAlgorithm(const char *value)
void SetSSECustomerAlgorithm(Aws::String &&value)
CopyObjectResult & WithVersionId(Aws::String &&value)
void SetSSECustomerKeyMD5(const Aws::String &value)
CopyObjectResult & WithSSEKMSEncryptionContext(const char *value)
const Aws::String & GetSSEKMSEncryptionContext() const
CopyObjectResult & WithRequestCharged(RequestCharged &&value)
CopyObjectResult & WithSSEKMSKeyId(const char *value)
void SetExpiration(const char *value)
void SetSSEKMSEncryptionContext(const char *value)
CopyObjectResult & WithSSECustomerKeyMD5(const char *value)
CopyObjectResult & WithCopyObjectResultDetails(CopyObjectResultDetails &&value)
void SetCopySourceVersionId(const char *value)
CopyObjectResult & WithVersionId(const char *value)
CopyObjectResult & WithServerSideEncryption(ServerSideEncryption &&value)
CopyObjectResult & WithRequestId(const Aws::String &value)
CopyObjectResult & WithSSECustomerKeyMD5(const Aws::String &value)
CopyObjectResult & WithBucketKeyEnabled(bool value)
void SetSSEKMSEncryptionContext(const Aws::String &value)
CopyObjectResult & WithRequestCharged(const RequestCharged &value)
void SetVersionId(const char *value)
void SetRequestId(const Aws::String &value)
CopyObjectResult & WithVersionId(const Aws::String &value)
CopyObjectResult & WithSSEKMSEncryptionContext(Aws::String &&value)
void SetRequestCharged(const RequestCharged &value)
CopyObjectResult & WithSSEKMSEncryptionContext(const Aws::String &value)
CopyObjectResult & WithExpiration(Aws::String &&value)
void SetSSEKMSEncryptionContext(Aws::String &&value)
void SetServerSideEncryption(ServerSideEncryption &&value)
void SetExpiration(const Aws::String &value)
const Aws::String & GetCopySourceVersionId() const
void SetCopySourceVersionId(const Aws::String &value)
CopyObjectResult & WithExpiration(const char *value)
void SetCopyObjectResultDetails(CopyObjectResultDetails &&value)
CopyObjectResult & WithSSEKMSKeyId(const Aws::String &value)
CopyObjectResult & WithCopySourceVersionId(const Aws::String &value)
CopyObjectResult & WithSSEKMSKeyId(Aws::String &&value)
AWS_S3CRT_API CopyObjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CopyObjectResult & WithCopyObjectResultDetails(const CopyObjectResultDetails &value)
CopyObjectResult & WithSSECustomerAlgorithm(const Aws::String &value)
void SetVersionId(Aws::String &&value)
const Aws::String & GetSSEKMSKeyId() const
CopyObjectResult & WithCopySourceVersionId(const char *value)
const RequestCharged & GetRequestCharged() const
const Aws::String & GetRequestId() const
void SetSSEKMSKeyId(const Aws::String &value)
AWS_S3CRT_API CopyObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CopyObjectResult & WithRequestId(Aws::String &&value)
const Aws::String & GetSSECustomerKeyMD5() const
CopyObjectResult & WithRequestId(const char *value)
const Aws::String & GetExpiration() const
const ServerSideEncryption & GetServerSideEncryption() const
CopyObjectResult & WithExpiration(const Aws::String &value)
void SetRequestId(Aws::String &&value)
const CopyObjectResultDetails & GetCopyObjectResultDetails() const
const Aws::String & GetVersionId() const
void SetCopyObjectResultDetails(const CopyObjectResultDetails &value)
CopyObjectResult & WithSSECustomerKeyMD5(Aws::String &&value)
CopyObjectResult & WithServerSideEncryption(const ServerSideEncryption &value)
void SetServerSideEncryption(const ServerSideEncryption &value)
void SetSSEKMSKeyId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument