AWS SDK for C++  0.12.9
AWS SDK for C++
ListObjectsRequest.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 
42 
43  inline const Aws::String& GetBucket() const{ return m_bucket; }
44 
45 
46  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
47 
48 
49  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
50 
51 
52  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
53 
54 
55  inline ListObjectsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
56 
57 
58  inline ListObjectsRequest& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
59 
60 
61  inline ListObjectsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
62 
66  inline const Aws::String& GetDelimiter() const{ return m_delimiter; }
67 
71  inline void SetDelimiter(const Aws::String& value) { m_delimiterHasBeenSet = true; m_delimiter = value; }
72 
76  inline void SetDelimiter(Aws::String&& value) { m_delimiterHasBeenSet = true; m_delimiter = value; }
77 
81  inline void SetDelimiter(const char* value) { m_delimiterHasBeenSet = true; m_delimiter.assign(value); }
82 
86  inline ListObjectsRequest& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
87 
91  inline ListObjectsRequest& WithDelimiter(Aws::String&& value) { SetDelimiter(value); return *this;}
92 
96  inline ListObjectsRequest& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
97 
98 
99  inline const EncodingType& GetEncodingType() const{ return m_encodingType; }
100 
101 
102  inline void SetEncodingType(const EncodingType& value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
103 
104 
105  inline void SetEncodingType(EncodingType&& value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
106 
107 
108  inline ListObjectsRequest& WithEncodingType(const EncodingType& value) { SetEncodingType(value); return *this;}
109 
110 
111  inline ListObjectsRequest& WithEncodingType(EncodingType&& value) { SetEncodingType(value); return *this;}
112 
116  inline const Aws::String& GetMarker() const{ return m_marker; }
117 
121  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
122 
126  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
127 
131  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
132 
136  inline ListObjectsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
137 
141  inline ListObjectsRequest& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
142 
146  inline ListObjectsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
147 
152  inline long GetMaxKeys() const{ return m_maxKeys; }
153 
158  inline void SetMaxKeys(long value) { m_maxKeysHasBeenSet = true; m_maxKeys = value; }
159 
164  inline ListObjectsRequest& WithMaxKeys(long value) { SetMaxKeys(value); return *this;}
165 
169  inline const Aws::String& GetPrefix() const{ return m_prefix; }
170 
174  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
175 
179  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = value; }
180 
184  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
185 
189  inline ListObjectsRequest& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
190 
194  inline ListObjectsRequest& WithPrefix(Aws::String&& value) { SetPrefix(value); return *this;}
195 
199  inline ListObjectsRequest& WithPrefix(const char* value) { SetPrefix(value); return *this;}
200 
201  private:
202  Aws::String m_bucket;
203  bool m_bucketHasBeenSet;
204  Aws::String m_delimiter;
205  bool m_delimiterHasBeenSet;
206  EncodingType m_encodingType;
207  bool m_encodingTypeHasBeenSet;
208  Aws::String m_marker;
209  bool m_markerHasBeenSet;
210  long m_maxKeys;
211  bool m_maxKeysHasBeenSet;
212  Aws::String m_prefix;
213  bool m_prefixHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace S3
218 } // namespace Aws
void SetDelimiter(const char *value)
ListObjectsRequest & WithPrefix(Aws::String &&value)
const Aws::String & GetDelimiter() const
const Aws::String & GetPrefix() const
void SetPrefix(Aws::String &&value)
const Aws::String & GetMarker() const
const EncodingType & GetEncodingType() const
ListObjectsRequest & WithMarker(const Aws::String &value)
ListObjectsRequest & WithMarker(const char *value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
void SetMarker(const Aws::String &value)
ListObjectsRequest & WithDelimiter(const Aws::String &value)
ListObjectsRequest & WithDelimiter(Aws::String &&value)
void SetEncodingType(EncodingType &&value)
ListObjectsRequest & WithBucket(const char *value)
void SetBucket(const Aws::String &value)
void SetBucket(Aws::String &&value)
ListObjectsRequest & WithMaxKeys(long value)
void SetDelimiter(Aws::String &&value)
ListObjectsRequest & WithBucket(Aws::String &&value)
ListObjectsRequest & WithDelimiter(const char *value)
ListObjectsRequest & WithMarker(Aws::String &&value)
ListObjectsRequest & WithEncodingType(const EncodingType &value)
ListObjectsRequest & WithEncodingType(EncodingType &&value)
ListObjectsRequest & WithPrefix(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListObjectsRequest & WithPrefix(const char *value)
const Aws::String & GetBucket() const
ListObjectsRequest & WithBucket(const Aws::String &value)
void SetMarker(Aws::String &&value)
void SetDelimiter(const Aws::String &value)
JSON (JavaScript Object Notation).
void SetPrefix(const Aws::String &value)
void SetEncodingType(const EncodingType &value)