AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CopyObjectResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/model/ServerSideEncryption.h>
10#include <aws/s3/model/RequestCharged.h>
11#include <aws/s3/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 S3
27{
28namespace Model
29{
31 {
32 public:
33 AWS_S3_API CopyObjectResult() = default;
36
37
39
45 inline const Aws::String& GetExpiration() const { return m_expiration; }
46 template<typename ExpirationT = Aws::String>
47 void SetExpiration(ExpirationT&& value) { m_expirationHasBeenSet = true; m_expiration = std::forward<ExpirationT>(value); }
48 template<typename ExpirationT = Aws::String>
49 CopyObjectResult& WithExpiration(ExpirationT&& value) { SetExpiration(std::forward<ExpirationT>(value)); return *this;}
51
53
58 inline const Aws::String& GetCopySourceVersionId() const { return m_copySourceVersionId; }
59 template<typename CopySourceVersionIdT = Aws::String>
60 void SetCopySourceVersionId(CopySourceVersionIdT&& value) { m_copySourceVersionIdHasBeenSet = true; m_copySourceVersionId = std::forward<CopySourceVersionIdT>(value); }
61 template<typename CopySourceVersionIdT = Aws::String>
62 CopyObjectResult& WithCopySourceVersionId(CopySourceVersionIdT&& value) { SetCopySourceVersionId(std::forward<CopySourceVersionIdT>(value)); return *this;}
64
66
70 inline const Aws::String& GetVersionId() const { return m_versionId; }
71 template<typename VersionIdT = Aws::String>
72 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
73 template<typename VersionIdT = Aws::String>
74 CopyObjectResult& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
76
78
84 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
85 inline void SetServerSideEncryption(ServerSideEncryption value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
88
90
96 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
97 template<typename SSECustomerAlgorithmT = Aws::String>
98 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value); }
99 template<typename SSECustomerAlgorithmT = Aws::String>
100 CopyObjectResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value)); return *this;}
102
104
110 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
111 template<typename SSECustomerKeyMD5T = Aws::String>
112 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value); }
113 template<typename SSECustomerKeyMD5T = Aws::String>
114 CopyObjectResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value)); return *this;}
116
118
122 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
123 template<typename SSEKMSKeyIdT = Aws::String>
124 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value); }
125 template<typename SSEKMSKeyIdT = Aws::String>
126 CopyObjectResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) { SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value)); return *this;}
128
130
135 inline const Aws::String& GetSSEKMSEncryptionContext() const { return m_sSEKMSEncryptionContext; }
136 template<typename SSEKMSEncryptionContextT = Aws::String>
137 void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) { m_sSEKMSEncryptionContextHasBeenSet = true; m_sSEKMSEncryptionContext = std::forward<SSEKMSEncryptionContextT>(value); }
138 template<typename SSEKMSEncryptionContextT = Aws::String>
139 CopyObjectResult& WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) { SetSSEKMSEncryptionContext(std::forward<SSEKMSEncryptionContextT>(value)); return *this;}
141
143
147 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
148 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabledHasBeenSet = true; m_bucketKeyEnabled = value; }
149 inline CopyObjectResult& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
151
153
154 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
155 inline void SetRequestCharged(RequestCharged value) { m_requestChargedHasBeenSet = true; m_requestCharged = value; }
158
160
163 inline const CopyObjectResultDetails& GetCopyObjectResultDetails() const { return m_copyObjectResultDetails; }
164 template<typename CopyObjectResultDetailsT = CopyObjectResultDetails>
165 void SetCopyObjectResultDetails(CopyObjectResultDetailsT&& value) { m_copyObjectResultDetailsHasBeenSet = true; m_copyObjectResultDetails = std::forward<CopyObjectResultDetailsT>(value); }
166 template<typename CopyObjectResultDetailsT = CopyObjectResultDetails>
167 CopyObjectResult& WithCopyObjectResultDetails(CopyObjectResultDetailsT&& value) { SetCopyObjectResultDetails(std::forward<CopyObjectResultDetailsT>(value)); return *this;}
169
171
172 inline const Aws::String& GetRequestId() const { return m_requestId; }
173 template<typename RequestIdT = Aws::String>
174 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
175 template<typename RequestIdT = Aws::String>
176 CopyObjectResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
178 private:
179
180 Aws::String m_expiration;
181 bool m_expirationHasBeenSet = false;
182
183 Aws::String m_copySourceVersionId;
184 bool m_copySourceVersionIdHasBeenSet = false;
185
186 Aws::String m_versionId;
187 bool m_versionIdHasBeenSet = false;
188
190 bool m_serverSideEncryptionHasBeenSet = false;
191
192 Aws::String m_sSECustomerAlgorithm;
193 bool m_sSECustomerAlgorithmHasBeenSet = false;
194
195 Aws::String m_sSECustomerKeyMD5;
196 bool m_sSECustomerKeyMD5HasBeenSet = false;
197
198 Aws::String m_sSEKMSKeyId;
199 bool m_sSEKMSKeyIdHasBeenSet = false;
200
201 Aws::String m_sSEKMSEncryptionContext;
202 bool m_sSEKMSEncryptionContextHasBeenSet = false;
203
204 bool m_bucketKeyEnabled{false};
205 bool m_bucketKeyEnabledHasBeenSet = false;
206
207 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
208 bool m_requestChargedHasBeenSet = false;
209
210 CopyObjectResultDetails m_copyObjectResultDetails;
211 bool m_copyObjectResultDetailsHasBeenSet = false;
212
213 Aws::String m_requestId;
214 bool m_requestIdHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace S3
219} // 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)
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