AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListPartsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3-crt/S3CrtRequest.h>
10#include <aws/s3-crt/S3Crt_EXPORTS.h>
11#include <aws/s3-crt/model/RequestPayer.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace S3Crt {
20namespace Model {
21
25 public:
26 AWS_S3CRT_API ListPartsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListParts"; }
33
34 AWS_S3CRT_API Aws::String SerializePayload() const override;
35
36 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
40 AWS_S3CRT_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
44 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
45
47
82 inline const Aws::String& GetBucket() const { return m_bucket; }
83 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
84 template <typename BucketT = Aws::String>
85 void SetBucket(BucketT&& value) {
86 m_bucketHasBeenSet = true;
87 m_bucket = std::forward<BucketT>(value);
88 }
89 template <typename BucketT = Aws::String>
90 ListPartsRequest& WithBucket(BucketT&& value) {
91 SetBucket(std::forward<BucketT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetKey() const { return m_key; }
101 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
102 template <typename KeyT = Aws::String>
103 void SetKey(KeyT&& value) {
104 m_keyHasBeenSet = true;
105 m_key = std::forward<KeyT>(value);
106 }
107 template <typename KeyT = Aws::String>
108 ListPartsRequest& WithKey(KeyT&& value) {
109 SetKey(std::forward<KeyT>(value));
110 return *this;
111 }
113
115
118 inline int GetMaxParts() const { return m_maxParts; }
119 inline bool MaxPartsHasBeenSet() const { return m_maxPartsHasBeenSet; }
120 inline void SetMaxParts(int value) {
121 m_maxPartsHasBeenSet = true;
122 m_maxParts = value;
123 }
124 inline ListPartsRequest& WithMaxParts(int value) {
125 SetMaxParts(value);
126 return *this;
127 }
129
131
135 inline int GetPartNumberMarker() const { return m_partNumberMarker; }
136 inline bool PartNumberMarkerHasBeenSet() const { return m_partNumberMarkerHasBeenSet; }
137 inline void SetPartNumberMarker(int value) {
138 m_partNumberMarkerHasBeenSet = true;
139 m_partNumberMarker = value;
140 }
142 SetPartNumberMarker(value);
143 return *this;
144 }
146
148
151 inline const Aws::String& GetUploadId() const { return m_uploadId; }
152 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
153 template <typename UploadIdT = Aws::String>
154 void SetUploadId(UploadIdT&& value) {
155 m_uploadIdHasBeenSet = true;
156 m_uploadId = std::forward<UploadIdT>(value);
157 }
158 template <typename UploadIdT = Aws::String>
159 ListPartsRequest& WithUploadId(UploadIdT&& value) {
160 SetUploadId(std::forward<UploadIdT>(value));
161 return *this;
162 }
164
166
167 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
168 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
169 inline void SetRequestPayer(RequestPayer value) {
170 m_requestPayerHasBeenSet = true;
171 m_requestPayer = value;
172 }
174 SetRequestPayer(value);
175 return *this;
176 }
178
180
185 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
186 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
187 template <typename ExpectedBucketOwnerT = Aws::String>
188 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
189 m_expectedBucketOwnerHasBeenSet = true;
190 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
191 }
192 template <typename ExpectedBucketOwnerT = Aws::String>
193 ListPartsRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
194 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
195 return *this;
196 }
198
200
208 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
209 inline bool SSECustomerAlgorithmHasBeenSet() const { return m_sSECustomerAlgorithmHasBeenSet; }
210 template <typename SSECustomerAlgorithmT = Aws::String>
211 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
212 m_sSECustomerAlgorithmHasBeenSet = true;
213 m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value);
214 }
215 template <typename SSECustomerAlgorithmT = Aws::String>
216 ListPartsRequest& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) {
217 SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value));
218 return *this;
219 }
221
223
231 inline const Aws::String& GetSSECustomerKey() const { return m_sSECustomerKey; }
232 inline bool SSECustomerKeyHasBeenSet() const { return m_sSECustomerKeyHasBeenSet; }
233 template <typename SSECustomerKeyT = Aws::String>
234 void SetSSECustomerKey(SSECustomerKeyT&& value) {
235 m_sSECustomerKeyHasBeenSet = true;
236 m_sSECustomerKey = std::forward<SSECustomerKeyT>(value);
237 }
238 template <typename SSECustomerKeyT = Aws::String>
239 ListPartsRequest& WithSSECustomerKey(SSECustomerKeyT&& value) {
240 SetSSECustomerKey(std::forward<SSECustomerKeyT>(value));
241 return *this;
242 }
244
246
254 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
255 inline bool SSECustomerKeyMD5HasBeenSet() const { return m_sSECustomerKeyMD5HasBeenSet; }
256 template <typename SSECustomerKeyMD5T = Aws::String>
257 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
258 m_sSECustomerKeyMD5HasBeenSet = true;
259 m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value);
260 }
261 template <typename SSECustomerKeyMD5T = Aws::String>
262 ListPartsRequest& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) {
263 SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value));
264 return *this;
265 }
267
269
270 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
271 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
272 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
273 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
274 m_customizedAccessLogTagHasBeenSet = true;
275 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
276 }
277 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
278 ListPartsRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
279 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
280 return *this;
281 }
282 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
283 ListPartsRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
284 m_customizedAccessLogTagHasBeenSet = true;
285 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
286 return *this;
287 }
289 private:
290 Aws::String m_bucket;
291
292 Aws::String m_key;
293
294 int m_maxParts{0};
295
296 int m_partNumberMarker{0};
297
298 Aws::String m_uploadId;
299
300 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
301
302 Aws::String m_expectedBucketOwner;
303
304 Aws::String m_sSECustomerAlgorithm;
305
306 Aws::String m_sSECustomerKey;
307
308 Aws::String m_sSECustomerKeyMD5;
309
310 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
311 bool m_bucketHasBeenSet = false;
312 bool m_keyHasBeenSet = false;
313 bool m_maxPartsHasBeenSet = false;
314 bool m_partNumberMarkerHasBeenSet = false;
315 bool m_uploadIdHasBeenSet = false;
316 bool m_requestPayerHasBeenSet = false;
317 bool m_expectedBucketOwnerHasBeenSet = false;
318 bool m_sSECustomerAlgorithmHasBeenSet = false;
319 bool m_sSECustomerKeyHasBeenSet = false;
320 bool m_sSECustomerKeyMD5HasBeenSet = false;
321 bool m_customizedAccessLogTagHasBeenSet = false;
322};
323
324} // namespace Model
325} // namespace S3Crt
326} // namespace Aws
AWS_S3CRT_API ListPartsRequest()=default
const Aws::String & GetSSECustomerAlgorithm() const
ListPartsRequest & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
virtual const char * GetServiceRequestName() const override
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
ListPartsRequest & WithRequestPayer(RequestPayer value)
void SetRequestPayer(RequestPayer value)
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListPartsRequest & WithMaxParts(int value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetSSECustomerKeyMD5() const
const Aws::String & GetExpectedBucketOwner() const
const Aws::String & GetBucket() const
ListPartsRequest & WithKey(KeyT &&value)
AWS_S3CRT_API Aws::String SerializePayload() const override
ListPartsRequest & WithUploadId(UploadIdT &&value)
ListPartsRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
ListPartsRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
ListPartsRequest & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetSSECustomerKey(SSECustomerKeyT &&value)
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
ListPartsRequest & WithBucket(BucketT &&value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
const Aws::String & GetSSECustomerKey() const
const Aws::String & GetUploadId() const
ListPartsRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
const Aws::String & GetKey() const
ListPartsRequest & WithPartNumberMarker(int value)
ListPartsRequest & WithSSECustomerKey(SSECustomerKeyT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String