AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
UploadPartCopyResult.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-crt/S3Crt_EXPORTS.h>
10#include <aws/s3-crt/model/CopyPartResult.h>
11#include <aws/s3-crt/model/RequestCharged.h>
12#include <aws/s3-crt/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 S3Crt {
26namespace Model {
28 public:
29 AWS_S3CRT_API UploadPartCopyResult() = default;
32
34
39 inline const Aws::String& GetCopySourceVersionId() const { return m_copySourceVersionId; }
40 template <typename CopySourceVersionIdT = Aws::String>
41 void SetCopySourceVersionId(CopySourceVersionIdT&& value) {
42 m_copySourceVersionIdHasBeenSet = true;
43 m_copySourceVersionId = std::forward<CopySourceVersionIdT>(value);
44 }
45 template <typename CopySourceVersionIdT = Aws::String>
46 UploadPartCopyResult& WithCopySourceVersionId(CopySourceVersionIdT&& value) {
47 SetCopySourceVersionId(std::forward<CopySourceVersionIdT>(value));
48 return *this;
49 }
51
53
56 inline const CopyPartResult& GetCopyPartResult() const { return m_copyPartResult; }
57 template <typename CopyPartResultT = CopyPartResult>
58 void SetCopyPartResult(CopyPartResultT&& value) {
59 m_copyPartResultHasBeenSet = true;
60 m_copyPartResult = std::forward<CopyPartResultT>(value);
61 }
62 template <typename CopyPartResultT = CopyPartResult>
63 UploadPartCopyResult& WithCopyPartResult(CopyPartResultT&& value) {
64 SetCopyPartResult(std::forward<CopyPartResultT>(value));
65 return *this;
66 }
68
70
76 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
78 m_serverSideEncryptionHasBeenSet = true;
79 m_serverSideEncryption = value;
80 }
83 return *this;
84 }
86
88
94 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
95 template <typename SSECustomerAlgorithmT = Aws::String>
96 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
97 m_sSECustomerAlgorithmHasBeenSet = true;
98 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
99 }
100 template <typename SSECustomerAlgorithmT = Aws::String>
101 UploadPartCopyResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
102 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
103 return *this;
104 }
106
108
114 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
115 template <typename SSECustomerKeyMD5T = Aws::String>
116 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
117 m_sSECustomerKeyMD5HasBeenSet = true;
118 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
119 }
120 template <typename SSECustomerKeyMD5T = Aws::String>
121 UploadPartCopyResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
122 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
133 template <typename SSEKMSKeyIdT = Aws::String>
134 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
135 m_sSEKMSKeyIdHasBeenSet = true;
136 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
137 }
138 template <typename SSEKMSKeyIdT = Aws::String>
139 UploadPartCopyResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
140 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
141 return *this;
142 }
144
146
150 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
151 inline void SetBucketKeyEnabled(bool value) {
152 m_bucketKeyEnabledHasBeenSet = true;
153 m_bucketKeyEnabled = value;
154 }
156 SetBucketKeyEnabled(value);
157 return *this;
158 }
160
162
163 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
165 m_requestChargedHasBeenSet = true;
166 m_requestCharged = value;
167 }
169 SetRequestCharged(value);
170 return *this;
171 }
173
175
176 inline const Aws::String& GetRequestId() const { return m_requestId; }
177 template <typename RequestIdT = Aws::String>
178 void SetRequestId(RequestIdT&& value) {
179 m_requestIdHasBeenSet = true;
180 m_requestId = std::forward<RequestIdT>(value);
181 }
182 template <typename RequestIdT = Aws::String>
183 UploadPartCopyResult& WithRequestId(RequestIdT&& value) {
184 SetRequestId(std::forward<RequestIdT>(value));
185 return *this;
186 }
188 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
189
190 private:
191 Aws::String m_copySourceVersionId;
192
193 CopyPartResult m_copyPartResult;
194
196
197 Aws::String m_sSECustomerAlgorithm;
198
199 Aws::String m_sSECustomerKeyMD5;
200
201 Aws::String m_sSEKMSKeyId;
202
203 bool m_bucketKeyEnabled{false};
204
205 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
206
207 Aws::String m_requestId;
208 Aws::Http::HttpResponseCode m_HttpResponseCode;
209 bool m_copySourceVersionIdHasBeenSet = false;
210 bool m_copyPartResultHasBeenSet = false;
211 bool m_serverSideEncryptionHasBeenSet = false;
212 bool m_sSECustomerAlgorithmHasBeenSet = false;
213 bool m_sSECustomerKeyMD5HasBeenSet = false;
214 bool m_sSEKMSKeyIdHasBeenSet = false;
215 bool m_bucketKeyEnabledHasBeenSet = false;
216 bool m_requestChargedHasBeenSet = false;
217 bool m_requestIdHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace S3Crt
222} // namespace Aws
UploadPartCopyResult & WithCopySourceVersionId(CopySourceVersionIdT &&value)
ServerSideEncryption GetServerSideEncryption() const
const Aws::String & GetSSECustomerKeyMD5() const
AWS_S3CRT_API UploadPartCopyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
UploadPartCopyResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
const Aws::String & GetSSECustomerAlgorithm() const
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
UploadPartCopyResult & WithBucketKeyEnabled(bool value)
UploadPartCopyResult & WithServerSideEncryption(ServerSideEncryption value)
UploadPartCopyResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetCopyPartResult(CopyPartResultT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UploadPartCopyResult & WithCopyPartResult(CopyPartResultT &&value)
const Aws::String & GetCopySourceVersionId() const
UploadPartCopyResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
UploadPartCopyResult & WithRequestId(RequestIdT &&value)
const CopyPartResult & GetCopyPartResult() const
AWS_S3CRT_API UploadPartCopyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetServerSideEncryption(ServerSideEncryption value)
UploadPartCopyResult & WithRequestCharged(RequestCharged value)
void SetCopySourceVersionId(CopySourceVersionIdT &&value)
AWS_S3CRT_API UploadPartCopyResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument