AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ListPartsRequest.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace S3
21{
22namespace 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
39
41
43
48
68 inline const Aws::String& GetBucket() const{ return m_bucket; }
69
89 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
90
110 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
111
131 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
132
152 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
153
173 inline ListPartsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
174
194 inline ListPartsRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
195
215 inline ListPartsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
216
217
221 inline const Aws::String& GetKey() const{ return m_key; }
222
226 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
227
231 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
232
236 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
237
241 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
242
246 inline ListPartsRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
247
251 inline ListPartsRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
252
256 inline ListPartsRequest& WithKey(const char* value) { SetKey(value); return *this;}
257
258
262 inline int GetMaxParts() const{ return m_maxParts; }
263
267 inline bool MaxPartsHasBeenSet() const { return m_maxPartsHasBeenSet; }
268
272 inline void SetMaxParts(int value) { m_maxPartsHasBeenSet = true; m_maxParts = value; }
273
277 inline ListPartsRequest& WithMaxParts(int value) { SetMaxParts(value); return *this;}
278
279
284 inline int GetPartNumberMarker() const{ return m_partNumberMarker; }
285
290 inline bool PartNumberMarkerHasBeenSet() const { return m_partNumberMarkerHasBeenSet; }
291
296 inline void SetPartNumberMarker(int value) { m_partNumberMarkerHasBeenSet = true; m_partNumberMarker = value; }
297
302 inline ListPartsRequest& WithPartNumberMarker(int value) { SetPartNumberMarker(value); return *this;}
303
304
308 inline const Aws::String& GetUploadId() const{ return m_uploadId; }
309
313 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
314
318 inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
319
323 inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
324
328 inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
329
333 inline ListPartsRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
334
338 inline ListPartsRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
339
343 inline ListPartsRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
344
345
346
347 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
348
349
350 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
351
352
353 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
354
355
356 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
357
358
359 inline ListPartsRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
360
361
362 inline ListPartsRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
363
364
370 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
371
377 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
378
384 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
385
391 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
392
398 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
399
405 inline ListPartsRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
406
412 inline ListPartsRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
413
419 inline ListPartsRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
420
421
429 inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
430
438 inline bool SSECustomerAlgorithmHasBeenSet() const { return m_sSECustomerAlgorithmHasBeenSet; }
439
447 inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = value; }
448
456 inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::move(value); }
457
465 inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm.assign(value); }
466
475
483 inline ListPartsRequest& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(std::move(value)); return *this;}
484
492 inline ListPartsRequest& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
493
494
502 inline const Aws::String& GetSSECustomerKey() const{ return m_sSECustomerKey; }
503
511 inline bool SSECustomerKeyHasBeenSet() const { return m_sSECustomerKeyHasBeenSet; }
512
520 inline void SetSSECustomerKey(const Aws::String& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = value; }
521
529 inline void SetSSECustomerKey(Aws::String&& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = std::move(value); }
530
538 inline void SetSSECustomerKey(const char* value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey.assign(value); }
539
547 inline ListPartsRequest& WithSSECustomerKey(const Aws::String& value) { SetSSECustomerKey(value); return *this;}
548
556 inline ListPartsRequest& WithSSECustomerKey(Aws::String&& value) { SetSSECustomerKey(std::move(value)); return *this;}
557
565 inline ListPartsRequest& WithSSECustomerKey(const char* value) { SetSSECustomerKey(value); return *this;}
566
567
575 inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
576
584 inline bool SSECustomerKeyMD5HasBeenSet() const { return m_sSECustomerKeyMD5HasBeenSet; }
585
593 inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = value; }
594
602 inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::move(value); }
603
611 inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5.assign(value); }
612
620 inline ListPartsRequest& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
621
629 inline ListPartsRequest& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(std::move(value)); return *this;}
630
638 inline ListPartsRequest& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
639
640
641
642 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
643
644
645 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
646
647
648 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
649
650
651 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
652
653
655
656
658
659
660 inline ListPartsRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
661
662
663 inline ListPartsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
664
665
666 inline ListPartsRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
667
668
669 inline ListPartsRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
670
671
672 inline ListPartsRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
673
674
675 inline ListPartsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
676
677
678 inline ListPartsRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
679
680 private:
681
682 Aws::String m_bucket;
683 bool m_bucketHasBeenSet = false;
684
685 Aws::String m_key;
686 bool m_keyHasBeenSet = false;
687
688 int m_maxParts;
689 bool m_maxPartsHasBeenSet = false;
690
691 int m_partNumberMarker;
692 bool m_partNumberMarkerHasBeenSet = false;
693
694 Aws::String m_uploadId;
695 bool m_uploadIdHasBeenSet = false;
696
697 RequestPayer m_requestPayer;
698 bool m_requestPayerHasBeenSet = false;
699
700 Aws::String m_expectedBucketOwner;
701 bool m_expectedBucketOwnerHasBeenSet = false;
702
703 Aws::String m_sSECustomerAlgorithm;
704 bool m_sSECustomerAlgorithmHasBeenSet = false;
705
706 Aws::String m_sSECustomerKey;
707 bool m_sSECustomerKeyHasBeenSet = false;
708
709 Aws::String m_sSECustomerKeyMD5;
710 bool m_sSECustomerKeyMD5HasBeenSet = false;
711
712 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
713 bool m_customizedAccessLogTagHasBeenSet = false;
714 };
715
716} // namespace Model
717} // namespace S3
718} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
ListPartsRequest & WithSSECustomerKey(const char *value)
const Aws::String & GetSSECustomerKey() const
void SetUploadId(Aws::String &&value)
void SetRequestPayer(RequestPayer &&value)
ListPartsRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
ListPartsRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
ListPartsRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
ListPartsRequest & WithSSECustomerKeyMD5(const Aws::String &value)
void SetSSECustomerAlgorithm(Aws::String &&value)
ListPartsRequest & WithBucket(const Aws::String &value)
ListPartsRequest & WithUploadId(const Aws::String &value)
const Aws::String & GetBucket() const
ListPartsRequest & WithBucket(Aws::String &&value)
const RequestPayer & GetRequestPayer() const
ListPartsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
ListPartsRequest & WithRequestPayer(RequestPayer &&value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
ListPartsRequest & WithSSECustomerAlgorithm(const char *value)
const Aws::String & GetUploadId() const
const Aws::String & GetExpectedBucketOwner() const
void SetSSECustomerKeyMD5(Aws::String &&value)
ListPartsRequest & WithSSECustomerKey(Aws::String &&value)
ListPartsRequest & WithKey(Aws::String &&value)
ListPartsRequest & WithRequestPayer(const RequestPayer &value)
void SetSSECustomerAlgorithm(const char *value)
void SetBucket(const Aws::String &value)
void SetRequestPayer(const RequestPayer &value)
ListPartsRequest & WithSSECustomerAlgorithm(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetSSECustomerKeyMD5(const char *value)
void SetBucket(const char *value)
void SetSSECustomerKey(Aws::String &&value)
ListPartsRequest & WithSSECustomerKeyMD5(const char *value)
ListPartsRequest & WithExpectedBucketOwner(Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
ListPartsRequest & WithSSECustomerAlgorithm(Aws::String &&value)
void SetKey(const Aws::String &value)
void SetBucket(Aws::String &&value)
void SetUploadId(const char *value)
ListPartsRequest & WithBucket(const char *value)
ListPartsRequest & WithKey(const Aws::String &value)
void SetExpectedBucketOwner(const char *value)
void SetSSECustomerKeyMD5(const Aws::String &value)
ListPartsRequest & WithUploadId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AWS_S3_API Aws::String SerializePayload() const override
void SetKey(const char *value)
void SetExpectedBucketOwner(const Aws::String &value)
ListPartsRequest & WithUploadId(const char *value)
ListPartsRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetKey() const
void SetExpectedBucketOwner(Aws::String &&value)
ListPartsRequest & WithExpectedBucketOwner(const Aws::String &value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListPartsRequest & WithSSECustomerKeyMD5(Aws::String &&value)
ListPartsRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
void SetSSECustomerKey(const char *value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListPartsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
ListPartsRequest & WithExpectedBucketOwner(const char *value)
void SetSSECustomerAlgorithm(const Aws::String &value)
void SetSSECustomerKey(const Aws::String &value)
ListPartsRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
void SetKey(Aws::String &&value)
ListPartsRequest & WithMaxParts(int value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
void SetUploadId(const Aws::String &value)
const Aws::String & GetSSECustomerAlgorithm() const
const Aws::String & GetSSECustomerKeyMD5() const
ListPartsRequest & WithPartNumberMarker(int value)
ListPartsRequest & WithKey(const char *value)
ListPartsRequest & WithSSECustomerKey(const Aws::String &value)
ListPartsRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &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_string< char, std::char_traits< char >, Aws::Allocator< char > > String