AWS SDK for C++  1.9.40
AWS SDK for C++
ListPartsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace S3Crt
21 {
22 namespace Model
23 {
24 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "ListParts"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
43 
44 
64  inline const Aws::String& GetBucket() const{ return m_bucket; }
65 
85  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
86 
106  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
107 
127  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
128 
148  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
149 
169  inline ListPartsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
170 
190  inline ListPartsRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
191 
211  inline ListPartsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
212 
213 
217  inline const Aws::String& GetKey() const{ return m_key; }
218 
222  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
223 
227  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
228 
232  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
233 
237  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
238 
242  inline ListPartsRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
243 
247  inline ListPartsRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
248 
252  inline ListPartsRequest& WithKey(const char* value) { SetKey(value); return *this;}
253 
254 
258  inline int GetMaxParts() const{ return m_maxParts; }
259 
263  inline bool MaxPartsHasBeenSet() const { return m_maxPartsHasBeenSet; }
264 
268  inline void SetMaxParts(int value) { m_maxPartsHasBeenSet = true; m_maxParts = value; }
269 
273  inline ListPartsRequest& WithMaxParts(int value) { SetMaxParts(value); return *this;}
274 
275 
280  inline int GetPartNumberMarker() const{ return m_partNumberMarker; }
281 
286  inline bool PartNumberMarkerHasBeenSet() const { return m_partNumberMarkerHasBeenSet; }
287 
292  inline void SetPartNumberMarker(int value) { m_partNumberMarkerHasBeenSet = true; m_partNumberMarker = value; }
293 
298  inline ListPartsRequest& WithPartNumberMarker(int value) { SetPartNumberMarker(value); return *this;}
299 
300 
304  inline const Aws::String& GetUploadId() const{ return m_uploadId; }
305 
309  inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
310 
314  inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
315 
319  inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
320 
324  inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
325 
329  inline ListPartsRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
330 
334  inline ListPartsRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
335 
339  inline ListPartsRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
340 
341 
342 
343  inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
344 
345 
346  inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
347 
348 
349  inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
350 
351 
352  inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
353 
354 
355  inline ListPartsRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
356 
357 
358  inline ListPartsRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
359 
360 
366  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
367 
373  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
374 
380  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
381 
387  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
388 
394  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
395 
401  inline ListPartsRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
402 
408  inline ListPartsRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
409 
415  inline ListPartsRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
416 
417 
418 
419  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
420 
421 
422  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
423 
424 
425  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
426 
427 
428  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
429 
430 
431  inline ListPartsRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
432 
433 
434  inline ListPartsRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
435 
436 
437  inline ListPartsRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
438 
439 
440  inline ListPartsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
441 
442 
443  inline ListPartsRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
444 
445 
446  inline ListPartsRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
447 
448 
449  inline ListPartsRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
450 
451 
452  inline ListPartsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
453 
454 
455  inline ListPartsRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
456 
457  private:
458 
459  Aws::String m_bucket;
460  bool m_bucketHasBeenSet;
461 
462  Aws::String m_key;
463  bool m_keyHasBeenSet;
464 
465  int m_maxParts;
466  bool m_maxPartsHasBeenSet;
467 
468  int m_partNumberMarker;
469  bool m_partNumberMarkerHasBeenSet;
470 
471  Aws::String m_uploadId;
472  bool m_uploadIdHasBeenSet;
473 
474  RequestPayer m_requestPayer;
475  bool m_requestPayerHasBeenSet;
476 
477  Aws::String m_expectedBucketOwner;
478  bool m_expectedBucketOwnerHasBeenSet;
479 
480  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
481  bool m_customizedAccessLogTagHasBeenSet;
482  };
483 
484 } // namespace Model
485 } // namespace S3Crt
486 } // namespace Aws
Aws::S3Crt::Model::ListPartsRequest::AddCustomizedAccessLogTag
ListPartsRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Definition: ListPartsRequest.h:443
Aws::S3Crt::Model::ListPartsRequest::UploadIdHasBeenSet
bool UploadIdHasBeenSet() const
Definition: ListPartsRequest.h:309
Aws::S3Crt::Model::ListPartsRequest::WithCustomizedAccessLogTag
ListPartsRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ListPartsRequest.h:434
Aws::S3Crt::Model::ListPartsRequest::SetPartNumberMarker
void SetPartNumberMarker(int value)
Definition: ListPartsRequest.h:292
Aws::S3Crt::Model::ListPartsRequest::GetMaxParts
int GetMaxParts() const
Definition: ListPartsRequest.h:258
Aws::Http::URI
Definition: URI.h:32
Aws::S3Crt::Model::ListPartsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3Crt::Model::ListPartsRequest::WithBucket
ListPartsRequest & WithBucket(const Aws::String &value)
Definition: ListPartsRequest.h:169
Aws::S3Crt::Model::ListPartsRequest::ExpectedBucketOwnerHasBeenSet
bool ExpectedBucketOwnerHasBeenSet() const
Definition: ListPartsRequest.h:373
Aws::S3Crt::Model::ListPartsRequest::WithKey
ListPartsRequest & WithKey(Aws::String &&value)
Definition: ListPartsRequest.h:247
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Crt::Model::ListPartsRequest::AddCustomizedAccessLogTag
ListPartsRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
Definition: ListPartsRequest.h:449
Aws::S3Crt::Model::ListPartsRequest::GetBucket
const Aws::String & GetBucket() const
Definition: ListPartsRequest.h:64
Aws::S3Crt::Model::ListPartsRequest::SetMaxParts
void SetMaxParts(int value)
Definition: ListPartsRequest.h:268
Aws::S3Crt::Model::ListPartsRequest::AddCustomizedAccessLogTag
ListPartsRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
Definition: ListPartsRequest.h:446
Aws::S3Crt::Model::ListPartsRequest::PartNumberMarkerHasBeenSet
bool PartNumberMarkerHasBeenSet() const
Definition: ListPartsRequest.h:286
Aws::S3Crt::Model::ListPartsRequest::SetRequestPayer
void SetRequestPayer(RequestPayer &&value)
Definition: ListPartsRequest.h:352
Aws::S3Crt::Model::ListPartsRequest::SetUploadId
void SetUploadId(Aws::String &&value)
Definition: ListPartsRequest.h:319
Aws::S3Crt::Model::ListPartsRequest::WithCustomizedAccessLogTag
ListPartsRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ListPartsRequest.h:431
Aws::S3Crt::Model::ListPartsRequest::WithMaxParts
ListPartsRequest & WithMaxParts(int value)
Definition: ListPartsRequest.h:273
Aws::S3Crt::Model::ListPartsRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ListPartsRequest.h:425
RequestPayer.h
Aws::S3Crt::Model::ListPartsRequest::WithKey
ListPartsRequest & WithKey(const Aws::String &value)
Definition: ListPartsRequest.h:242
Aws::S3Crt::Model::ListPartsRequest::SetKey
void SetKey(const Aws::String &value)
Definition: ListPartsRequest.h:227
Aws::S3Crt::Model::ListPartsRequest::WithRequestPayer
ListPartsRequest & WithRequestPayer(const RequestPayer &value)
Definition: ListPartsRequest.h:355
Aws::S3Crt::Model::ListPartsRequest::WithExpectedBucketOwner
ListPartsRequest & WithExpectedBucketOwner(Aws::String &&value)
Definition: ListPartsRequest.h:408
Aws::S3Crt::Model::ListPartsRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const Aws::String &value)
Definition: ListPartsRequest.h:380
Aws::S3Crt::Model::ListPartsRequest::WithUploadId
ListPartsRequest & WithUploadId(const char *value)
Definition: ListPartsRequest.h:339
Aws::S3Crt::Model::ListPartsRequest::MaxPartsHasBeenSet
bool MaxPartsHasBeenSet() const
Definition: ListPartsRequest.h:263
Aws::S3Crt::Model::ListPartsRequest::GetRequestPayer
const RequestPayer & GetRequestPayer() const
Definition: ListPartsRequest.h:343
S3CrtRequest.h
Aws::S3Crt::Model::ListPartsRequest::GetPartNumberMarker
int GetPartNumberMarker() const
Definition: ListPartsRequest.h:280
Aws::S3Crt::Model::ListPartsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3CRT_API
#define AWS_S3CRT_API
Definition: S3Crt_EXPORTS.h:28
Aws::S3Crt::Model::ListPartsRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ListPartsRequest.h:428
Aws::S3Crt::Model::ListPartsRequest::AddCustomizedAccessLogTag
ListPartsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
Definition: ListPartsRequest.h:440
Aws::S3Crt::Model::ListPartsRequest::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: ListPartsRequest.h:222
Aws::S3Crt::Model::ListPartsRequest::GetCustomizedAccessLogTag
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Definition: ListPartsRequest.h:419
Aws::S3Crt::Model::ListPartsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPartsRequest.h:36
Aws::S3Crt::Model::ListPartsRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: ListPartsRequest.h:106
Aws::S3Crt::Model::ListPartsRequest::RequestPayerHasBeenSet
bool RequestPayerHasBeenSet() const
Definition: ListPartsRequest.h:346
Aws::S3Crt::Model::ListPartsRequest::WithUploadId
ListPartsRequest & WithUploadId(const Aws::String &value)
Definition: ListPartsRequest.h:329
AWSString.h
Aws::S3Crt::S3CrtRequest
Definition: S3CrtRequest.h:18
Aws::S3Crt::Model::ListPartsRequest::WithUploadId
ListPartsRequest & WithUploadId(Aws::String &&value)
Definition: ListPartsRequest.h:334
Aws::S3Crt::Model::ListPartsRequest::WithExpectedBucketOwner
ListPartsRequest & WithExpectedBucketOwner(const char *value)
Definition: ListPartsRequest.h:415
Aws::S3Crt::Model::ListPartsRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: ListPartsRequest.h:127
Aws::S3Crt::Model::ListPartsRequest::WithKey
ListPartsRequest & WithKey(const char *value)
Definition: ListPartsRequest.h:252
Aws::S3Crt::Model::ListPartsRequest::GetUploadId
const Aws::String & GetUploadId() const
Definition: ListPartsRequest.h:304
Aws::S3Crt::Model::ListPartsRequest::SetRequestPayer
void SetRequestPayer(const RequestPayer &value)
Definition: ListPartsRequest.h:349
Aws::S3Crt::Model::ListPartsRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: ListPartsRequest.h:85
Aws::S3Crt::Model::ListPartsRequest::WithBucket
ListPartsRequest & WithBucket(const char *value)
Definition: ListPartsRequest.h:211
Aws::S3Crt::Model::ListPartsRequest::AddCustomizedAccessLogTag
ListPartsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Definition: ListPartsRequest.h:452
Aws::S3Crt::Model::ListPartsRequest::WithExpectedBucketOwner
ListPartsRequest & WithExpectedBucketOwner(const Aws::String &value)
Definition: ListPartsRequest.h:401
Aws::S3Crt::Model::RequestPayer
RequestPayer
Definition: RequestPayer.h:17
Aws::S3Crt::Model::ListPartsRequest::SetKey
void SetKey(Aws::String &&value)
Definition: ListPartsRequest.h:232
Aws::S3Crt::Model::ListPartsRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(Aws::String &&value)
Definition: ListPartsRequest.h:387
Aws::S3Crt::Model::ListPartsRequest::WithRequestPayer
ListPartsRequest & WithRequestPayer(RequestPayer &&value)
Definition: ListPartsRequest.h:358
Aws
Definition: AccessManagementClient.h:15
Aws::S3Crt::Model::ListPartsRequest::SetUploadId
void SetUploadId(const char *value)
Definition: ListPartsRequest.h:324
Aws::S3Crt::Model::ListPartsRequest
Definition: ListPartsRequest.h:28
Aws::S3Crt::Model::ListPartsRequest::GetExpectedBucketOwner
const Aws::String & GetExpectedBucketOwner() const
Definition: ListPartsRequest.h:366
Aws::S3Crt::Model::ListPartsRequest::AddCustomizedAccessLogTag
ListPartsRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
Definition: ListPartsRequest.h:437
Aws::S3Crt::Model::ListPartsRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const char *value)
Definition: ListPartsRequest.h:394
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Crt::Model::ListPartsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Crt::Model::ListPartsRequest::GetKey
const Aws::String & GetKey() const
Definition: ListPartsRequest.h:217
Aws::S3Crt::Model::ListPartsRequest::AddCustomizedAccessLogTag
ListPartsRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
Definition: ListPartsRequest.h:455
Aws::S3Crt::Model::ListPartsRequest::SetUploadId
void SetUploadId(const Aws::String &value)
Definition: ListPartsRequest.h:314
Aws::S3Crt::Model::ListPartsRequest::CustomizedAccessLogTagHasBeenSet
bool CustomizedAccessLogTagHasBeenSet() const
Definition: ListPartsRequest.h:422
AWSMap.h
Aws::S3Crt::Model::ListPartsRequest::WithPartNumberMarker
ListPartsRequest & WithPartNumberMarker(int value)
Definition: ListPartsRequest.h:298
Aws::S3Crt::Model::ListPartsRequest::WithBucket
ListPartsRequest & WithBucket(Aws::String &&value)
Definition: ListPartsRequest.h:190
Aws::S3Crt::Model::ListPartsRequest::SetBucket
void SetBucket(const char *value)
Definition: ListPartsRequest.h:148
S3Crt_EXPORTS.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::S3Crt::Model::ListPartsRequest::ListPartsRequest
ListPartsRequest()
Aws::S3Crt::Model::ListPartsRequest::SetKey
void SetKey(const char *value)
Definition: ListPartsRequest.h:237