AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ListObjectsV2Request.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>
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:
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 "ListObjectsV2"; }
38
40
42
44
49
69 inline const Aws::String& GetBucket() const{ return m_bucket; }
70
90 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
91
111 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
112
132 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
133
153 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
154
174 inline ListObjectsV2Request& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
175
195 inline ListObjectsV2Request& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
196
216 inline ListObjectsV2Request& WithBucket(const char* value) { SetBucket(value); return *this;}
217
218
222 inline const Aws::String& GetDelimiter() const{ return m_delimiter; }
223
227 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
228
232 inline void SetDelimiter(const Aws::String& value) { m_delimiterHasBeenSet = true; m_delimiter = value; }
233
237 inline void SetDelimiter(Aws::String&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::move(value); }
238
242 inline void SetDelimiter(const char* value) { m_delimiterHasBeenSet = true; m_delimiter.assign(value); }
243
247 inline ListObjectsV2Request& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
248
252 inline ListObjectsV2Request& WithDelimiter(Aws::String&& value) { SetDelimiter(std::move(value)); return *this;}
253
257 inline ListObjectsV2Request& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
258
259
263 inline const EncodingType& GetEncodingType() const{ return m_encodingType; }
264
268 inline bool EncodingTypeHasBeenSet() const { return m_encodingTypeHasBeenSet; }
269
273 inline void SetEncodingType(const EncodingType& value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
274
278 inline void SetEncodingType(EncodingType&& value) { m_encodingTypeHasBeenSet = true; m_encodingType = std::move(value); }
279
283 inline ListObjectsV2Request& WithEncodingType(const EncodingType& value) { SetEncodingType(value); return *this;}
284
288 inline ListObjectsV2Request& WithEncodingType(EncodingType&& value) { SetEncodingType(std::move(value)); return *this;}
289
290
296 inline int GetMaxKeys() const{ return m_maxKeys; }
297
303 inline bool MaxKeysHasBeenSet() const { return m_maxKeysHasBeenSet; }
304
310 inline void SetMaxKeys(int value) { m_maxKeysHasBeenSet = true; m_maxKeys = value; }
311
317 inline ListObjectsV2Request& WithMaxKeys(int value) { SetMaxKeys(value); return *this;}
318
319
323 inline const Aws::String& GetPrefix() const{ return m_prefix; }
324
328 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
329
333 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
334
338 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
339
343 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
344
348 inline ListObjectsV2Request& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
349
353 inline ListObjectsV2Request& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
354
358 inline ListObjectsV2Request& WithPrefix(const char* value) { SetPrefix(value); return *this;}
359
360
366 inline const Aws::String& GetContinuationToken() const{ return m_continuationToken; }
367
373 inline bool ContinuationTokenHasBeenSet() const { return m_continuationTokenHasBeenSet; }
374
380 inline void SetContinuationToken(const Aws::String& value) { m_continuationTokenHasBeenSet = true; m_continuationToken = value; }
381
387 inline void SetContinuationToken(Aws::String&& value) { m_continuationTokenHasBeenSet = true; m_continuationToken = std::move(value); }
388
394 inline void SetContinuationToken(const char* value) { m_continuationTokenHasBeenSet = true; m_continuationToken.assign(value); }
395
401 inline ListObjectsV2Request& WithContinuationToken(const Aws::String& value) { SetContinuationToken(value); return *this;}
402
408 inline ListObjectsV2Request& WithContinuationToken(Aws::String&& value) { SetContinuationToken(std::move(value)); return *this;}
409
415 inline ListObjectsV2Request& WithContinuationToken(const char* value) { SetContinuationToken(value); return *this;}
416
417
423 inline bool GetFetchOwner() const{ return m_fetchOwner; }
424
430 inline bool FetchOwnerHasBeenSet() const { return m_fetchOwnerHasBeenSet; }
431
437 inline void SetFetchOwner(bool value) { m_fetchOwnerHasBeenSet = true; m_fetchOwner = value; }
438
444 inline ListObjectsV2Request& WithFetchOwner(bool value) { SetFetchOwner(value); return *this;}
445
446
452 inline const Aws::String& GetStartAfter() const{ return m_startAfter; }
453
459 inline bool StartAfterHasBeenSet() const { return m_startAfterHasBeenSet; }
460
466 inline void SetStartAfter(const Aws::String& value) { m_startAfterHasBeenSet = true; m_startAfter = value; }
467
473 inline void SetStartAfter(Aws::String&& value) { m_startAfterHasBeenSet = true; m_startAfter = std::move(value); }
474
480 inline void SetStartAfter(const char* value) { m_startAfterHasBeenSet = true; m_startAfter.assign(value); }
481
487 inline ListObjectsV2Request& WithStartAfter(const Aws::String& value) { SetStartAfter(value); return *this;}
488
494 inline ListObjectsV2Request& WithStartAfter(Aws::String&& value) { SetStartAfter(std::move(value)); return *this;}
495
501 inline ListObjectsV2Request& WithStartAfter(const char* value) { SetStartAfter(value); return *this;}
502
503
509 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
510
516 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
517
523 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
524
530 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
531
537 inline ListObjectsV2Request& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
538
544 inline ListObjectsV2Request& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
545
546
552 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
553
559 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
560
566 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
567
573 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
574
580 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
581
588
594 inline ListObjectsV2Request& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
595
601 inline ListObjectsV2Request& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
602
603
604
605 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
606
607
608 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
609
610
611 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
612
613
614 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
615
616
618
619
621
622
623 inline ListObjectsV2Request& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
624
625
626 inline ListObjectsV2Request& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
627
628
629 inline ListObjectsV2Request& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
630
631
632 inline ListObjectsV2Request& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
633
634
635 inline ListObjectsV2Request& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
636
637
638 inline ListObjectsV2Request& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
639
640
641 inline ListObjectsV2Request& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
642
643 private:
644
645 Aws::String m_bucket;
646 bool m_bucketHasBeenSet = false;
647
648 Aws::String m_delimiter;
649 bool m_delimiterHasBeenSet = false;
650
651 EncodingType m_encodingType;
652 bool m_encodingTypeHasBeenSet = false;
653
654 int m_maxKeys;
655 bool m_maxKeysHasBeenSet = false;
656
657 Aws::String m_prefix;
658 bool m_prefixHasBeenSet = false;
659
660 Aws::String m_continuationToken;
661 bool m_continuationTokenHasBeenSet = false;
662
663 bool m_fetchOwner;
664 bool m_fetchOwnerHasBeenSet = false;
665
666 Aws::String m_startAfter;
667 bool m_startAfterHasBeenSet = false;
668
669 RequestPayer m_requestPayer;
670 bool m_requestPayerHasBeenSet = false;
671
672 Aws::String m_expectedBucketOwner;
673 bool m_expectedBucketOwnerHasBeenSet = false;
674
675 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
676 bool m_customizedAccessLogTagHasBeenSet = false;
677 };
678
679} // namespace Model
680} // namespace S3
681} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
ListObjectsV2Request & WithContinuationToken(const char *value)
ListObjectsV2Request & WithStartAfter(const char *value)
void SetStartAfter(const Aws::String &value)
void SetContinuationToken(const Aws::String &value)
void SetEncodingType(EncodingType &&value)
ListObjectsV2Request & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
const Aws::String & GetExpectedBucketOwner() const
void SetRequestPayer(RequestPayer &&value)
ListObjectsV2Request & WithBucket(const char *value)
const Aws::String & GetContinuationToken() const
void SetRequestPayer(const RequestPayer &value)
ListObjectsV2Request & WithDelimiter(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
ListObjectsV2Request & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
ListObjectsV2Request & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
ListObjectsV2Request & WithPrefix(const char *value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetPrefix(const Aws::String &value)
ListObjectsV2Request & WithDelimiter(const char *value)
void SetContinuationToken(Aws::String &&value)
ListObjectsV2Request & WithFetchOwner(bool value)
ListObjectsV2Request & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
const Aws::String & GetDelimiter() const
ListObjectsV2Request & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListObjectsV2Request & WithPrefix(Aws::String &&value)
ListObjectsV2Request & WithStartAfter(Aws::String &&value)
ListObjectsV2Request & WithRequestPayer(const RequestPayer &value)
ListObjectsV2Request & WithDelimiter(const Aws::String &value)
ListObjectsV2Request & WithExpectedBucketOwner(const Aws::String &value)
const Aws::String & GetPrefix() const
ListObjectsV2Request & WithEncodingType(EncodingType &&value)
void SetDelimiter(const Aws::String &value)
ListObjectsV2Request & WithRequestPayer(RequestPayer &&value)
ListObjectsV2Request & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
ListObjectsV2Request & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
ListObjectsV2Request & WithPrefix(const Aws::String &value)
void SetBucket(const Aws::String &value)
ListObjectsV2Request & AddCustomizedAccessLogTag(const char *key, const char *value)
void SetContinuationToken(const char *value)
ListObjectsV2Request & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
void SetExpectedBucketOwner(const Aws::String &value)
const EncodingType & GetEncodingType() const
ListObjectsV2Request & WithBucket(Aws::String &&value)
AWS_S3_API Aws::String SerializePayload() const override
ListObjectsV2Request & WithExpectedBucketOwner(const char *value)
ListObjectsV2Request & WithEncodingType(const EncodingType &value)
ListObjectsV2Request & WithMaxKeys(int value)
virtual const char * GetServiceRequestName() const override
void SetExpectedBucketOwner(const char *value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
ListObjectsV2Request & WithStartAfter(const Aws::String &value)
ListObjectsV2Request & WithContinuationToken(Aws::String &&value)
void SetEncodingType(const EncodingType &value)
const Aws::String & GetStartAfter() const
const RequestPayer & GetRequestPayer() const
void SetExpectedBucketOwner(Aws::String &&value)
const Aws::String & GetBucket() const
ListObjectsV2Request & WithExpectedBucketOwner(Aws::String &&value)
ListObjectsV2Request & WithContinuationToken(const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
ListObjectsV2Request & WithBucket(const 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