AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListMultipartUploadsRequest.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/S3CrtRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3-crt/model/EncodingType.h>
11#include <aws/s3-crt/model/RequestPayer.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace S3Crt
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ListMultipartUploads"; }
38
39 AWS_S3CRT_API Aws::String SerializePayload() const override;
40
41 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
45 AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
49 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
50
52
85 inline const Aws::String& GetBucket() const{ return m_bucket; }
86 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
87 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
88 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
89 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
90 inline ListMultipartUploadsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
91 inline ListMultipartUploadsRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
92 inline ListMultipartUploadsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
94
96
106 inline const Aws::String& GetDelimiter() const{ return m_delimiter; }
107 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
108 inline void SetDelimiter(const Aws::String& value) { m_delimiterHasBeenSet = true; m_delimiter = value; }
109 inline void SetDelimiter(Aws::String&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::move(value); }
110 inline void SetDelimiter(const char* value) { m_delimiterHasBeenSet = true; m_delimiter.assign(value); }
111 inline ListMultipartUploadsRequest& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
112 inline ListMultipartUploadsRequest& WithDelimiter(Aws::String&& value) { SetDelimiter(std::move(value)); return *this;}
113 inline ListMultipartUploadsRequest& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
115
117
118 inline const EncodingType& GetEncodingType() const{ return m_encodingType; }
119 inline bool EncodingTypeHasBeenSet() const { return m_encodingTypeHasBeenSet; }
120 inline void SetEncodingType(const EncodingType& value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
121 inline void SetEncodingType(EncodingType&& value) { m_encodingTypeHasBeenSet = true; m_encodingType = std::move(value); }
122 inline ListMultipartUploadsRequest& WithEncodingType(const EncodingType& value) { SetEncodingType(value); return *this;}
123 inline ListMultipartUploadsRequest& WithEncodingType(EncodingType&& value) { SetEncodingType(std::move(value)); return *this;}
125
127
147 inline const Aws::String& GetKeyMarker() const{ return m_keyMarker; }
148 inline bool KeyMarkerHasBeenSet() const { return m_keyMarkerHasBeenSet; }
149 inline void SetKeyMarker(const Aws::String& value) { m_keyMarkerHasBeenSet = true; m_keyMarker = value; }
150 inline void SetKeyMarker(Aws::String&& value) { m_keyMarkerHasBeenSet = true; m_keyMarker = std::move(value); }
151 inline void SetKeyMarker(const char* value) { m_keyMarkerHasBeenSet = true; m_keyMarker.assign(value); }
152 inline ListMultipartUploadsRequest& WithKeyMarker(const Aws::String& value) { SetKeyMarker(value); return *this;}
153 inline ListMultipartUploadsRequest& WithKeyMarker(Aws::String&& value) { SetKeyMarker(std::move(value)); return *this;}
154 inline ListMultipartUploadsRequest& WithKeyMarker(const char* value) { SetKeyMarker(value); return *this;}
156
158
163 inline int GetMaxUploads() const{ return m_maxUploads; }
164 inline bool MaxUploadsHasBeenSet() const { return m_maxUploadsHasBeenSet; }
165 inline void SetMaxUploads(int value) { m_maxUploadsHasBeenSet = true; m_maxUploads = value; }
166 inline ListMultipartUploadsRequest& WithMaxUploads(int value) { SetMaxUploads(value); return *this;}
168
170
178 inline const Aws::String& GetPrefix() const{ return m_prefix; }
179 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
180 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
181 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
182 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
183 inline ListMultipartUploadsRequest& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
184 inline ListMultipartUploadsRequest& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
185 inline ListMultipartUploadsRequest& WithPrefix(const char* value) { SetPrefix(value); return *this;}
187
189
197 inline const Aws::String& GetUploadIdMarker() const{ return m_uploadIdMarker; }
198 inline bool UploadIdMarkerHasBeenSet() const { return m_uploadIdMarkerHasBeenSet; }
199 inline void SetUploadIdMarker(const Aws::String& value) { m_uploadIdMarkerHasBeenSet = true; m_uploadIdMarker = value; }
200 inline void SetUploadIdMarker(Aws::String&& value) { m_uploadIdMarkerHasBeenSet = true; m_uploadIdMarker = std::move(value); }
201 inline void SetUploadIdMarker(const char* value) { m_uploadIdMarkerHasBeenSet = true; m_uploadIdMarker.assign(value); }
203 inline ListMultipartUploadsRequest& WithUploadIdMarker(Aws::String&& value) { SetUploadIdMarker(std::move(value)); return *this;}
204 inline ListMultipartUploadsRequest& WithUploadIdMarker(const char* value) { SetUploadIdMarker(value); return *this;}
206
208
213 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
214 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
215 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
216 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
217 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
220 inline ListMultipartUploadsRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
222
224
225 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
226 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
227 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
228 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
229 inline ListMultipartUploadsRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
230 inline ListMultipartUploadsRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
232
234
235 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
236 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
237 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
238 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
241 inline ListMultipartUploadsRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
242 inline ListMultipartUploadsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
243 inline ListMultipartUploadsRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
244 inline ListMultipartUploadsRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
245 inline ListMultipartUploadsRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
246 inline ListMultipartUploadsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
247 inline ListMultipartUploadsRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
249 private:
250
251 Aws::String m_bucket;
252 bool m_bucketHasBeenSet = false;
253
254 Aws::String m_delimiter;
255 bool m_delimiterHasBeenSet = false;
256
257 EncodingType m_encodingType;
258 bool m_encodingTypeHasBeenSet = false;
259
260 Aws::String m_keyMarker;
261 bool m_keyMarkerHasBeenSet = false;
262
263 int m_maxUploads;
264 bool m_maxUploadsHasBeenSet = false;
265
266 Aws::String m_prefix;
267 bool m_prefixHasBeenSet = false;
268
269 Aws::String m_uploadIdMarker;
270 bool m_uploadIdMarkerHasBeenSet = false;
271
272 Aws::String m_expectedBucketOwner;
273 bool m_expectedBucketOwnerHasBeenSet = false;
274
275 RequestPayer m_requestPayer;
276 bool m_requestPayerHasBeenSet = false;
277
278 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
279 bool m_customizedAccessLogTagHasBeenSet = false;
280 };
281
282} // namespace Model
283} // namespace S3Crt
284} // namespace Aws
ListMultipartUploadsRequest & WithPrefix(Aws::String &&value)
ListMultipartUploadsRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
ListMultipartUploadsRequest & WithPrefix(const Aws::String &value)
ListMultipartUploadsRequest & WithExpectedBucketOwner(const char *value)
ListMultipartUploadsRequest & WithRequestPayer(RequestPayer &&value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
ListMultipartUploadsRequest & WithEncodingType(EncodingType &&value)
ListMultipartUploadsRequest & WithDelimiter(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
ListMultipartUploadsRequest & WithKeyMarker(Aws::String &&value)
ListMultipartUploadsRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
ListMultipartUploadsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListMultipartUploadsRequest & WithBucket(const char *value)
ListMultipartUploadsRequest & WithExpectedBucketOwner(const Aws::String &value)
ListMultipartUploadsRequest & WithExpectedBucketOwner(Aws::String &&value)
ListMultipartUploadsRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
ListMultipartUploadsRequest & WithBucket(Aws::String &&value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
ListMultipartUploadsRequest & WithDelimiter(const Aws::String &value)
ListMultipartUploadsRequest & WithMaxUploads(int value)
ListMultipartUploadsRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
ListMultipartUploadsRequest & WithPrefix(const char *value)
ListMultipartUploadsRequest & WithEncodingType(const EncodingType &value)
ListMultipartUploadsRequest & WithDelimiter(const char *value)
ListMultipartUploadsRequest & WithKeyMarker(const char *value)
ListMultipartUploadsRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
ListMultipartUploadsRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
ListMultipartUploadsRequest & WithKeyMarker(const Aws::String &value)
ListMultipartUploadsRequest & WithUploadIdMarker(const Aws::String &value)
ListMultipartUploadsRequest & WithUploadIdMarker(Aws::String &&value)
ListMultipartUploadsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
virtual const char * GetServiceRequestName() const override
ListMultipartUploadsRequest & WithBucket(const Aws::String &value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
ListMultipartUploadsRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3CRT_API Aws::String SerializePayload() const override
ListMultipartUploadsRequest & WithUploadIdMarker(const char *value)
ListMultipartUploadsRequest & WithRequestPayer(const RequestPayer &value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
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