AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListMultipartUploadsRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/EncodingType.h>
11#include <aws/s3/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 S3
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_S3_API ListMultipartUploadsRequest() = default;
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_S3_API Aws::String SerializePayload() const override;
40
41 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
45 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
49 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
50
52
87 inline const Aws::String& GetBucket() const { return m_bucket; }
88 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
89 template<typename BucketT = Aws::String>
90 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
91 template<typename BucketT = Aws::String>
92 ListMultipartUploadsRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
94
96
108 inline const Aws::String& GetDelimiter() const { return m_delimiter; }
109 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
110 template<typename DelimiterT = Aws::String>
111 void SetDelimiter(DelimiterT&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::forward<DelimiterT>(value); }
112 template<typename DelimiterT = Aws::String>
113 ListMultipartUploadsRequest& WithDelimiter(DelimiterT&& value) { SetDelimiter(std::forward<DelimiterT>(value)); return *this;}
115
117
118 inline EncodingType GetEncodingType() const { return m_encodingType; }
119 inline bool EncodingTypeHasBeenSet() const { return m_encodingTypeHasBeenSet; }
120 inline void SetEncodingType(EncodingType value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
123
125
145 inline const Aws::String& GetKeyMarker() const { return m_keyMarker; }
146 inline bool KeyMarkerHasBeenSet() const { return m_keyMarkerHasBeenSet; }
147 template<typename KeyMarkerT = Aws::String>
148 void SetKeyMarker(KeyMarkerT&& value) { m_keyMarkerHasBeenSet = true; m_keyMarker = std::forward<KeyMarkerT>(value); }
149 template<typename KeyMarkerT = Aws::String>
150 ListMultipartUploadsRequest& WithKeyMarker(KeyMarkerT&& value) { SetKeyMarker(std::forward<KeyMarkerT>(value)); return *this;}
152
154
159 inline int GetMaxUploads() const { return m_maxUploads; }
160 inline bool MaxUploadsHasBeenSet() const { return m_maxUploadsHasBeenSet; }
161 inline void SetMaxUploads(int value) { m_maxUploadsHasBeenSet = true; m_maxUploads = value; }
162 inline ListMultipartUploadsRequest& WithMaxUploads(int value) { SetMaxUploads(value); return *this;}
164
166
174 inline const Aws::String& GetPrefix() const { return m_prefix; }
175 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
176 template<typename PrefixT = Aws::String>
177 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
178 template<typename PrefixT = Aws::String>
179 ListMultipartUploadsRequest& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
181
183
191 inline const Aws::String& GetUploadIdMarker() const { return m_uploadIdMarker; }
192 inline bool UploadIdMarkerHasBeenSet() const { return m_uploadIdMarkerHasBeenSet; }
193 template<typename UploadIdMarkerT = Aws::String>
194 void SetUploadIdMarker(UploadIdMarkerT&& value) { m_uploadIdMarkerHasBeenSet = true; m_uploadIdMarker = std::forward<UploadIdMarkerT>(value); }
195 template<typename UploadIdMarkerT = Aws::String>
196 ListMultipartUploadsRequest& WithUploadIdMarker(UploadIdMarkerT&& value) { SetUploadIdMarker(std::forward<UploadIdMarkerT>(value)); return *this;}
198
200
205 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
206 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
207 template<typename ExpectedBucketOwnerT = Aws::String>
208 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
209 template<typename ExpectedBucketOwnerT = Aws::String>
210 ListMultipartUploadsRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
212
214
215 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
216 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
217 inline void SetRequestPayer(RequestPayer value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
220
222
223 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
224 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
225 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
226 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
227 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
228 ListMultipartUploadsRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
229 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
230 ListMultipartUploadsRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
231 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
232 }
234 private:
235
236 Aws::String m_bucket;
237 bool m_bucketHasBeenSet = false;
238
239 Aws::String m_delimiter;
240 bool m_delimiterHasBeenSet = false;
241
242 EncodingType m_encodingType{EncodingType::NOT_SET};
243 bool m_encodingTypeHasBeenSet = false;
244
245 Aws::String m_keyMarker;
246 bool m_keyMarkerHasBeenSet = false;
247
248 int m_maxUploads{0};
249 bool m_maxUploadsHasBeenSet = false;
250
251 Aws::String m_prefix;
252 bool m_prefixHasBeenSet = false;
253
254 Aws::String m_uploadIdMarker;
255 bool m_uploadIdMarkerHasBeenSet = false;
256
257 Aws::String m_expectedBucketOwner;
258 bool m_expectedBucketOwnerHasBeenSet = false;
259
260 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
261 bool m_requestPayerHasBeenSet = false;
262
263 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
264 bool m_customizedAccessLogTagHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace S3
269} // namespace Aws
ListMultipartUploadsRequest & WithUploadIdMarker(UploadIdMarkerT &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
AWS_S3_API Aws::String SerializePayload() const override
ListMultipartUploadsRequest & WithEncodingType(EncodingType value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
virtual const char * GetServiceRequestName() const override
ListMultipartUploadsRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
ListMultipartUploadsRequest & WithMaxUploads(int value)
ListMultipartUploadsRequest & WithDelimiter(DelimiterT &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListMultipartUploadsRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
ListMultipartUploadsRequest & WithKeyMarker(KeyMarkerT &&value)
AWS_S3_API ListMultipartUploadsRequest()=default
ListMultipartUploadsRequest & WithRequestPayer(RequestPayer value)
ListMultipartUploadsRequest & WithBucket(BucketT &&value)
ListMultipartUploadsRequest & WithPrefix(PrefixT &&value)
ListMultipartUploadsRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Definition S3Request.h:22
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