AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ListObjectsRequest.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 "ListObjects"; }
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 ListObjectsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
175
195 inline ListObjectsRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
196
216 inline ListObjectsRequest& 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 ListObjectsRequest& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
248
252 inline ListObjectsRequest& WithDelimiter(Aws::String&& value) { SetDelimiter(std::move(value)); return *this;}
253
257 inline ListObjectsRequest& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
258
259
260
261 inline const EncodingType& GetEncodingType() const{ return m_encodingType; }
262
263
264 inline bool EncodingTypeHasBeenSet() const { return m_encodingTypeHasBeenSet; }
265
266
267 inline void SetEncodingType(const EncodingType& value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
268
269
270 inline void SetEncodingType(EncodingType&& value) { m_encodingTypeHasBeenSet = true; m_encodingType = std::move(value); }
271
272
273 inline ListObjectsRequest& WithEncodingType(const EncodingType& value) { SetEncodingType(value); return *this;}
274
275
276 inline ListObjectsRequest& WithEncodingType(EncodingType&& value) { SetEncodingType(std::move(value)); return *this;}
277
278
283 inline const Aws::String& GetMarker() const{ return m_marker; }
284
289 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
290
295 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
296
301 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
302
307 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
308
313 inline ListObjectsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
314
319 inline ListObjectsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
320
325 inline ListObjectsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
326
327
333 inline int GetMaxKeys() const{ return m_maxKeys; }
334
340 inline bool MaxKeysHasBeenSet() const { return m_maxKeysHasBeenSet; }
341
347 inline void SetMaxKeys(int value) { m_maxKeysHasBeenSet = true; m_maxKeys = value; }
348
354 inline ListObjectsRequest& WithMaxKeys(int value) { SetMaxKeys(value); return *this;}
355
356
360 inline const Aws::String& GetPrefix() const{ return m_prefix; }
361
365 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
366
370 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
371
375 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
376
380 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
381
385 inline ListObjectsRequest& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
386
390 inline ListObjectsRequest& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
391
395 inline ListObjectsRequest& WithPrefix(const char* value) { SetPrefix(value); return *this;}
396
397
403 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
404
410 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
411
417 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
418
424 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
425
431 inline ListObjectsRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
432
438 inline ListObjectsRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
439
440
446 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
447
453 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
454
460 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
461
467 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
468
474 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
475
482
488 inline ListObjectsRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
489
495 inline ListObjectsRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
496
497
498
499 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
500
501
502 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
503
504
505 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
506
507
508 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
509
510
512
513
515
516
517 inline ListObjectsRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
518
519
520 inline ListObjectsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
521
522
523 inline ListObjectsRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
524
525
526 inline ListObjectsRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
527
528
529 inline ListObjectsRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
530
531
532 inline ListObjectsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
533
534
535 inline ListObjectsRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
536
537 private:
538
539 Aws::String m_bucket;
540 bool m_bucketHasBeenSet = false;
541
542 Aws::String m_delimiter;
543 bool m_delimiterHasBeenSet = false;
544
545 EncodingType m_encodingType;
546 bool m_encodingTypeHasBeenSet = false;
547
548 Aws::String m_marker;
549 bool m_markerHasBeenSet = false;
550
551 int m_maxKeys;
552 bool m_maxKeysHasBeenSet = false;
553
554 Aws::String m_prefix;
555 bool m_prefixHasBeenSet = false;
556
557 RequestPayer m_requestPayer;
558 bool m_requestPayerHasBeenSet = false;
559
560 Aws::String m_expectedBucketOwner;
561 bool m_expectedBucketOwnerHasBeenSet = false;
562
563 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
564 bool m_customizedAccessLogTagHasBeenSet = false;
565 };
566
567} // namespace Model
568} // namespace S3
569} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
ListObjectsRequest & WithRequestPayer(RequestPayer &&value)
ListObjectsRequest & WithMarker(const char *value)
ListObjectsRequest & WithDelimiter(Aws::String &&value)
const Aws::String & GetDelimiter() const
void SetBucket(Aws::String &&value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetExpectedBucketOwner() const
ListObjectsRequest & WithMarker(Aws::String &&value)
ListObjectsRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
void SetExpectedBucketOwner(Aws::String &&value)
ListObjectsRequest & WithPrefix(const char *value)
ListObjectsRequest & WithExpectedBucketOwner(const Aws::String &value)
AWS_S3_API Aws::String SerializePayload() const override
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
void SetEncodingType(EncodingType &&value)
ListObjectsRequest & WithEncodingType(EncodingType &&value)
ListObjectsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
void SetDelimiter(const char *value)
ListObjectsRequest & WithMarker(const Aws::String &value)
ListObjectsRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
ListObjectsRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
void SetMarker(Aws::String &&value)
ListObjectsRequest & WithExpectedBucketOwner(Aws::String &&value)
void SetExpectedBucketOwner(const char *value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListObjectsRequest & WithEncodingType(const EncodingType &value)
ListObjectsRequest & WithBucket(Aws::String &&value)
void SetExpectedBucketOwner(const Aws::String &value)
void SetMarker(const Aws::String &value)
void SetDelimiter(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetBucket(const Aws::String &value)
ListObjectsRequest & WithExpectedBucketOwner(const char *value)
ListObjectsRequest & WithDelimiter(const Aws::String &value)
void SetRequestPayer(RequestPayer &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListObjectsRequest & WithDelimiter(const char *value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
ListObjectsRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
void SetPrefix(const Aws::String &value)
ListObjectsRequest & WithPrefix(Aws::String &&value)
const RequestPayer & GetRequestPayer() const
const Aws::String & GetMarker() const
const Aws::String & GetBucket() const
const Aws::String & GetPrefix() const
void SetPrefix(Aws::String &&value)
const EncodingType & GetEncodingType() const
ListObjectsRequest & WithBucket(const Aws::String &value)
ListObjectsRequest & WithPrefix(const Aws::String &value)
ListObjectsRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
void SetDelimiter(const Aws::String &value)
void SetEncodingType(const EncodingType &value)
ListObjectsRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
ListObjectsRequest & WithBucket(const char *value)
ListObjectsRequest & WithRequestPayer(const RequestPayer &value)
void SetRequestPayer(const RequestPayer &value)
ListObjectsRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
ListObjectsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
ListObjectsRequest & WithMaxKeys(int 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