AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UploadPartCopyResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3-crt/S3Crt_EXPORTS.h>
9#include <aws/s3-crt/model/CopyPartResult.h>
10#include <aws/s3-crt/model/RequestCharged.h>
11#include <aws/s3-crt/model/ServerSideEncryption.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace S3Crt {
25namespace Model {
27 public:
28 AWS_S3CRT_API UploadPartCopyResult() = default;
31
33
38 inline const Aws::String& GetCopySourceVersionId() const { return m_copySourceVersionId; }
39 template <typename CopySourceVersionIdT = Aws::String>
40 void SetCopySourceVersionId(CopySourceVersionIdT&& value) {
41 m_copySourceVersionIdHasBeenSet = true;
42 m_copySourceVersionId = std::forward<CopySourceVersionIdT>(value);
43 }
44 template <typename CopySourceVersionIdT = Aws::String>
45 UploadPartCopyResult& WithCopySourceVersionId(CopySourceVersionIdT&& value) {
46 SetCopySourceVersionId(std::forward<CopySourceVersionIdT>(value));
47 return *this;
48 }
50
52
55 inline const CopyPartResult& GetCopyPartResult() const { return m_copyPartResult; }
56 template <typename CopyPartResultT = CopyPartResult>
57 void SetCopyPartResult(CopyPartResultT&& value) {
58 m_copyPartResultHasBeenSet = true;
59 m_copyPartResult = std::forward<CopyPartResultT>(value);
60 }
61 template <typename CopyPartResultT = CopyPartResult>
62 UploadPartCopyResult& WithCopyPartResult(CopyPartResultT&& value) {
63 SetCopyPartResult(std::forward<CopyPartResultT>(value));
64 return *this;
65 }
67
69
75 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
77 m_serverSideEncryptionHasBeenSet = true;
78 m_serverSideEncryption = value;
79 }
82 return *this;
83 }
85
87
93 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
94 template <typename SSECustomerAlgorithmT = Aws::String>
95 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
96 m_sSECustomerAlgorithmHasBeenSet = true;
97 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
98 }
99 template <typename SSECustomerAlgorithmT = Aws::String>
100 UploadPartCopyResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
101 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
102 return *this;
103 }
105
107
113 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
114 template <typename SSECustomerKeyMD5T = Aws::String>
115 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
116 m_sSECustomerKeyMD5HasBeenSet = true;
117 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
118 }
119 template <typename SSECustomerKeyMD5T = Aws::String>
120 UploadPartCopyResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
121 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
132 template <typename SSEKMSKeyIdT = Aws::String>
133 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
134 m_sSEKMSKeyIdHasBeenSet = true;
135 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
136 }
137 template <typename SSEKMSKeyIdT = Aws::String>
138 UploadPartCopyResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
139 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
140 return *this;
141 }
143
145
149 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
150 inline void SetBucketKeyEnabled(bool value) {
151 m_bucketKeyEnabledHasBeenSet = true;
152 m_bucketKeyEnabled = value;
153 }
155 SetBucketKeyEnabled(value);
156 return *this;
157 }
159
161
162 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
164 m_requestChargedHasBeenSet = true;
165 m_requestCharged = value;
166 }
168 SetRequestCharged(value);
169 return *this;
170 }
172
174
175 inline const Aws::String& GetRequestId() const { return m_requestId; }
176 template <typename RequestIdT = Aws::String>
177 void SetRequestId(RequestIdT&& value) {
178 m_requestIdHasBeenSet = true;
179 m_requestId = std::forward<RequestIdT>(value);
180 }
181 template <typename RequestIdT = Aws::String>
182 UploadPartCopyResult& WithRequestId(RequestIdT&& value) {
183 SetRequestId(std::forward<RequestIdT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_copySourceVersionId;
189
190 CopyPartResult m_copyPartResult;
191
193
194 Aws::String m_sSECustomerAlgorithm;
195
196 Aws::String m_sSECustomerKeyMD5;
197
198 Aws::String m_sSEKMSKeyId;
199
200 bool m_bucketKeyEnabled{false};
201
202 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
203
204 Aws::String m_requestId;
205 bool m_copySourceVersionIdHasBeenSet = false;
206 bool m_copyPartResultHasBeenSet = false;
207 bool m_serverSideEncryptionHasBeenSet = false;
208 bool m_sSECustomerAlgorithmHasBeenSet = false;
209 bool m_sSECustomerKeyMD5HasBeenSet = false;
210 bool m_sSEKMSKeyIdHasBeenSet = false;
211 bool m_bucketKeyEnabledHasBeenSet = false;
212 bool m_requestChargedHasBeenSet = false;
213 bool m_requestIdHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace S3Crt
218} // 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)
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