AWS SDK for C++  0.14.3
AWS SDK for C++
ListObjectsV2Request.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/s3/S3_EXPORTS.h>
17 #include <aws/s3/S3Request.h>
20 
21 namespace Aws
22 {
23 namespace Http
24 {
25  class URI;
26 } //namespace Http
27 namespace S3
28 {
29 namespace Model
30 {
31 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
45  inline const Aws::String& GetBucket() const{ return m_bucket; }
46 
50  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
51 
55  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
56 
60  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
61 
65  inline ListObjectsV2Request& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
66 
70  inline ListObjectsV2Request& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
71 
75  inline ListObjectsV2Request& WithBucket(const char* value) { SetBucket(value); return *this;}
76 
80  inline const Aws::String& GetDelimiter() const{ return m_delimiter; }
81 
85  inline void SetDelimiter(const Aws::String& value) { m_delimiterHasBeenSet = true; m_delimiter = value; }
86 
90  inline void SetDelimiter(Aws::String&& value) { m_delimiterHasBeenSet = true; m_delimiter = value; }
91 
95  inline void SetDelimiter(const char* value) { m_delimiterHasBeenSet = true; m_delimiter.assign(value); }
96 
100  inline ListObjectsV2Request& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
101 
105  inline ListObjectsV2Request& WithDelimiter(Aws::String&& value) { SetDelimiter(value); return *this;}
106 
110  inline ListObjectsV2Request& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
111 
115  inline const EncodingType& GetEncodingType() const{ return m_encodingType; }
116 
120  inline void SetEncodingType(const EncodingType& value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
121 
125  inline void SetEncodingType(EncodingType&& value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
126 
130  inline ListObjectsV2Request& WithEncodingType(const EncodingType& value) { SetEncodingType(value); return *this;}
131 
135  inline ListObjectsV2Request& WithEncodingType(EncodingType&& value) { SetEncodingType(value); return *this;}
136 
141  inline int GetMaxKeys() const{ return m_maxKeys; }
142 
147  inline void SetMaxKeys(int value) { m_maxKeysHasBeenSet = true; m_maxKeys = value; }
148 
153  inline ListObjectsV2Request& WithMaxKeys(int value) { SetMaxKeys(value); return *this;}
154 
158  inline const Aws::String& GetPrefix() const{ return m_prefix; }
159 
163  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
164 
168  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = value; }
169 
173  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
174 
178  inline ListObjectsV2Request& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
179 
183  inline ListObjectsV2Request& WithPrefix(Aws::String&& value) { SetPrefix(value); return *this;}
184 
188  inline ListObjectsV2Request& WithPrefix(const char* value) { SetPrefix(value); return *this;}
189 
194  inline const Aws::String& GetContinuationToken() const{ return m_continuationToken; }
195 
200  inline void SetContinuationToken(const Aws::String& value) { m_continuationTokenHasBeenSet = true; m_continuationToken = value; }
201 
206  inline void SetContinuationToken(Aws::String&& value) { m_continuationTokenHasBeenSet = true; m_continuationToken = value; }
207 
212  inline void SetContinuationToken(const char* value) { m_continuationTokenHasBeenSet = true; m_continuationToken.assign(value); }
213 
218  inline ListObjectsV2Request& WithContinuationToken(const Aws::String& value) { SetContinuationToken(value); return *this;}
219 
224  inline ListObjectsV2Request& WithContinuationToken(Aws::String&& value) { SetContinuationToken(value); return *this;}
225 
230  inline ListObjectsV2Request& WithContinuationToken(const char* value) { SetContinuationToken(value); return *this;}
231 
236  inline bool GetFetchOwner() const{ return m_fetchOwner; }
237 
242  inline void SetFetchOwner(bool value) { m_fetchOwnerHasBeenSet = true; m_fetchOwner = value; }
243 
248  inline ListObjectsV2Request& WithFetchOwner(bool value) { SetFetchOwner(value); return *this;}
249 
254  inline const Aws::String& GetStartAfter() const{ return m_startAfter; }
255 
260  inline void SetStartAfter(const Aws::String& value) { m_startAfterHasBeenSet = true; m_startAfter = value; }
261 
266  inline void SetStartAfter(Aws::String&& value) { m_startAfterHasBeenSet = true; m_startAfter = value; }
267 
272  inline void SetStartAfter(const char* value) { m_startAfterHasBeenSet = true; m_startAfter.assign(value); }
273 
278  inline ListObjectsV2Request& WithStartAfter(const Aws::String& value) { SetStartAfter(value); return *this;}
279 
284  inline ListObjectsV2Request& WithStartAfter(Aws::String&& value) { SetStartAfter(value); return *this;}
285 
290  inline ListObjectsV2Request& WithStartAfter(const char* value) { SetStartAfter(value); return *this;}
291 
292  private:
293  Aws::String m_bucket;
294  bool m_bucketHasBeenSet;
295  Aws::String m_delimiter;
296  bool m_delimiterHasBeenSet;
297  EncodingType m_encodingType;
298  bool m_encodingTypeHasBeenSet;
299  int m_maxKeys;
300  bool m_maxKeysHasBeenSet;
301  Aws::String m_prefix;
302  bool m_prefixHasBeenSet;
303  Aws::String m_continuationToken;
304  bool m_continuationTokenHasBeenSet;
305  bool m_fetchOwner;
306  bool m_fetchOwnerHasBeenSet;
307  Aws::String m_startAfter;
308  bool m_startAfterHasBeenSet;
309  };
310 
311 } // namespace Model
312 } // namespace S3
313 } // namespace Aws
void SetPrefix(const Aws::String &value)
ListObjectsV2Request & WithStartAfter(const Aws::String &value)
const Aws::String & GetBucket() const
void SetContinuationToken(const char *value)
const Aws::String & GetStartAfter() const
ListObjectsV2Request & WithContinuationToken(Aws::String &&value)
ListObjectsV2Request & WithBucket(const char *value)
ListObjectsV2Request & WithDelimiter(const Aws::String &value)
ListObjectsV2Request & WithDelimiter(const char *value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
const EncodingType & GetEncodingType() const
void SetContinuationToken(Aws::String &&value)
ListObjectsV2Request & WithBucket(Aws::String &&value)
void SetContinuationToken(const Aws::String &value)
void SetDelimiter(Aws::String &&value)
ListObjectsV2Request & WithStartAfter(const char *value)
void SetDelimiter(const Aws::String &value)
void SetBucket(const Aws::String &value)
ListObjectsV2Request & WithFetchOwner(bool value)
ListObjectsV2Request & WithContinuationToken(const Aws::String &value)
ListObjectsV2Request & WithPrefix(Aws::String &&value)
ListObjectsV2Request & WithPrefix(const char *value)
const Aws::String & GetPrefix() const
ListObjectsV2Request & WithEncodingType(const EncodingType &value)
void SetEncodingType(EncodingType &&value)
ListObjectsV2Request & WithMaxKeys(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListObjectsV2Request & WithDelimiter(Aws::String &&value)
const Aws::String & GetDelimiter() const
ListObjectsV2Request & WithEncodingType(EncodingType &&value)
ListObjectsV2Request & WithBucket(const Aws::String &value)
void SetStartAfter(const Aws::String &value)
void SetEncodingType(const EncodingType &value)
ListObjectsV2Request & WithStartAfter(Aws::String &&value)
ListObjectsV2Request & WithContinuationToken(const char *value)
ListObjectsV2Request & WithPrefix(const Aws::String &value)
JSON (JavaScript Object Notation).
const Aws::String & GetContinuationToken() const