AWS SDK for C++  0.14.3
AWS SDK for C++
ListObjectsResult.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>
20 #include <aws/s3/model/Object.h>
22 
23 namespace Aws
24 {
25 template<typename RESULT_TYPE>
26 class AmazonWebServiceResult;
27 
28 namespace Utils
29 {
30 namespace Xml
31 {
32  class XmlDocument;
33 } // namespace Xml
34 } // namespace Utils
35 namespace S3
36 {
37 namespace Model
38 {
40  {
41  public:
45 
50  inline bool GetIsTruncated() const{ return m_isTruncated; }
51 
56  inline void SetIsTruncated(bool value) { m_isTruncated = value; }
57 
62  inline ListObjectsResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
63 
64 
65  inline const Aws::String& GetMarker() const{ return m_marker; }
66 
67 
68  inline void SetMarker(const Aws::String& value) { m_marker = value; }
69 
70 
71  inline void SetMarker(Aws::String&& value) { m_marker = value; }
72 
73 
74  inline void SetMarker(const char* value) { m_marker.assign(value); }
75 
76 
77  inline ListObjectsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
78 
79 
80  inline ListObjectsResult& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
81 
82 
83  inline ListObjectsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
84 
94  inline const Aws::String& GetNextMarker() const{ return m_nextMarker; }
95 
105  inline void SetNextMarker(const Aws::String& value) { m_nextMarker = value; }
106 
116  inline void SetNextMarker(Aws::String&& value) { m_nextMarker = value; }
117 
127  inline void SetNextMarker(const char* value) { m_nextMarker.assign(value); }
128 
138  inline ListObjectsResult& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
139 
149  inline ListObjectsResult& WithNextMarker(Aws::String&& value) { SetNextMarker(value); return *this;}
150 
160  inline ListObjectsResult& WithNextMarker(const char* value) { SetNextMarker(value); return *this;}
161 
162 
163  inline const Aws::Vector<Object>& GetContents() const{ return m_contents; }
164 
165 
166  inline void SetContents(const Aws::Vector<Object>& value) { m_contents = value; }
167 
168 
169  inline void SetContents(Aws::Vector<Object>&& value) { m_contents = value; }
170 
171 
172  inline ListObjectsResult& WithContents(const Aws::Vector<Object>& value) { SetContents(value); return *this;}
173 
174 
175  inline ListObjectsResult& WithContents(Aws::Vector<Object>&& value) { SetContents(value); return *this;}
176 
177 
178  inline ListObjectsResult& AddContents(const Object& value) { m_contents.push_back(value); return *this; }
179 
180 
181  inline ListObjectsResult& AddContents(Object&& value) { m_contents.push_back(value); return *this; }
182 
183 
184  inline const Aws::String& GetName() const{ return m_name; }
185 
186 
187  inline void SetName(const Aws::String& value) { m_name = value; }
188 
189 
190  inline void SetName(Aws::String&& value) { m_name = value; }
191 
192 
193  inline void SetName(const char* value) { m_name.assign(value); }
194 
195 
196  inline ListObjectsResult& WithName(const Aws::String& value) { SetName(value); return *this;}
197 
198 
199  inline ListObjectsResult& WithName(Aws::String&& value) { SetName(value); return *this;}
200 
201 
202  inline ListObjectsResult& WithName(const char* value) { SetName(value); return *this;}
203 
204 
205  inline const Aws::String& GetPrefix() const{ return m_prefix; }
206 
207 
208  inline void SetPrefix(const Aws::String& value) { m_prefix = value; }
209 
210 
211  inline void SetPrefix(Aws::String&& value) { m_prefix = value; }
212 
213 
214  inline void SetPrefix(const char* value) { m_prefix.assign(value); }
215 
216 
217  inline ListObjectsResult& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
218 
219 
220  inline ListObjectsResult& WithPrefix(Aws::String&& value) { SetPrefix(value); return *this;}
221 
222 
223  inline ListObjectsResult& WithPrefix(const char* value) { SetPrefix(value); return *this;}
224 
225 
226  inline const Aws::String& GetDelimiter() const{ return m_delimiter; }
227 
228 
229  inline void SetDelimiter(const Aws::String& value) { m_delimiter = value; }
230 
231 
232  inline void SetDelimiter(Aws::String&& value) { m_delimiter = value; }
233 
234 
235  inline void SetDelimiter(const char* value) { m_delimiter.assign(value); }
236 
237 
238  inline ListObjectsResult& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
239 
240 
241  inline ListObjectsResult& WithDelimiter(Aws::String&& value) { SetDelimiter(value); return *this;}
242 
243 
244  inline ListObjectsResult& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
245 
246 
247  inline int GetMaxKeys() const{ return m_maxKeys; }
248 
249 
250  inline void SetMaxKeys(int value) { m_maxKeys = value; }
251 
252 
253  inline ListObjectsResult& WithMaxKeys(int value) { SetMaxKeys(value); return *this;}
254 
255 
256  inline const Aws::Vector<CommonPrefix>& GetCommonPrefixes() const{ return m_commonPrefixes; }
257 
258 
259  inline void SetCommonPrefixes(const Aws::Vector<CommonPrefix>& value) { m_commonPrefixes = value; }
260 
261 
262  inline void SetCommonPrefixes(Aws::Vector<CommonPrefix>&& value) { m_commonPrefixes = value; }
263 
264 
265  inline ListObjectsResult& WithCommonPrefixes(const Aws::Vector<CommonPrefix>& value) { SetCommonPrefixes(value); return *this;}
266 
267 
268  inline ListObjectsResult& WithCommonPrefixes(Aws::Vector<CommonPrefix>&& value) { SetCommonPrefixes(value); return *this;}
269 
270 
271  inline ListObjectsResult& AddCommonPrefixes(const CommonPrefix& value) { m_commonPrefixes.push_back(value); return *this; }
272 
273 
274  inline ListObjectsResult& AddCommonPrefixes(CommonPrefix&& value) { m_commonPrefixes.push_back(value); return *this; }
275 
279  inline const EncodingType& GetEncodingType() const{ return m_encodingType; }
280 
284  inline void SetEncodingType(const EncodingType& value) { m_encodingType = value; }
285 
289  inline void SetEncodingType(EncodingType&& value) { m_encodingType = value; }
290 
294  inline ListObjectsResult& WithEncodingType(const EncodingType& value) { SetEncodingType(value); return *this;}
295 
299  inline ListObjectsResult& WithEncodingType(EncodingType&& value) { SetEncodingType(value); return *this;}
300 
301  private:
302  bool m_isTruncated;
303  Aws::String m_marker;
304  Aws::String m_nextMarker;
305  Aws::Vector<Object> m_contents;
306  Aws::String m_name;
307  Aws::String m_prefix;
308  Aws::String m_delimiter;
309  int m_maxKeys;
310  Aws::Vector<CommonPrefix> m_commonPrefixes;
311  EncodingType m_encodingType;
312  };
313 
314 } // namespace Model
315 } // namespace S3
316 } // namespace Aws
ListObjectsResult & AddCommonPrefixes(const CommonPrefix &value)
const Aws::String & GetMarker() const
ListObjectsResult & WithPrefix(const Aws::String &value)
ListObjectsResult & WithDelimiter(Aws::String &&value)
void SetCommonPrefixes(Aws::Vector< CommonPrefix > &&value)
void SetDelimiter(const Aws::String &value)
const Aws::String & GetName() const
const Aws::String & GetPrefix() const
const Aws::String & GetNextMarker() const
void SetPrefix(Aws::String &&value)
void SetPrefix(const Aws::String &value)
ListObjectsResult & WithContents(const Aws::Vector< Object > &value)
const EncodingType & GetEncodingType() const
ListObjectsResult & WithNextMarker(const Aws::String &value)
ListObjectsResult & WithCommonPrefixes(Aws::Vector< CommonPrefix > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ListObjectsResult & AddCommonPrefixes(CommonPrefix &&value)
void SetContents(const Aws::Vector< Object > &value)
void SetDelimiter(const char *value)
ListObjectsResult & WithName(Aws::String &&value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
ListObjectsResult & WithNextMarker(Aws::String &&value)
ListObjectsResult & WithMarker(Aws::String &&value)
void SetEncodingType(EncodingType &&value)
ListObjectsResult & WithMarker(const char *value)
void SetDelimiter(Aws::String &&value)
ListObjectsResult & AddContents(Object &&value)
ListObjectsResult & AddContents(const Object &value)
ListObjectsResult & WithName(const Aws::String &value)
void SetName(Aws::String &&value)
ListObjectsResult & WithCommonPrefixes(const Aws::Vector< CommonPrefix > &value)
void SetEncodingType(const EncodingType &value)
const Aws::Vector< Object > & GetContents() const
ListObjectsResult & WithContents(Aws::Vector< Object > &&value)
ListObjectsResult & WithName(const char *value)
ListObjectsResult & WithIsTruncated(bool value)
ListObjectsResult & WithEncodingType(const EncodingType &value)
void SetName(const Aws::String &value)
const Aws::String & GetDelimiter() const
void SetPrefix(const char *value)
void SetNextMarker(Aws::String &&value)
void SetCommonPrefixes(const Aws::Vector< CommonPrefix > &value)
void SetNextMarker(const char *value)
void SetMarker(const Aws::String &value)
void SetMarker(Aws::String &&value)
void SetMarker(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListObjectsResult & WithMaxKeys(int value)
ListObjectsResult & WithDelimiter(const char *value)
ListObjectsResult & WithDelimiter(const Aws::String &value)
ListObjectsResult & WithEncodingType(EncodingType &&value)
const Aws::Vector< CommonPrefix > & GetCommonPrefixes() const
ListObjectsResult & WithNextMarker(const char *value)
void SetContents(Aws::Vector< Object > &&value)
ListObjectsResult & WithMarker(const Aws::String &value)
ListObjectsResult & WithPrefix(const char *value)
void SetNextMarker(const Aws::String &value)
JSON (JavaScript Object Notation).
ListObjectsResult & WithPrefix(Aws::String &&value)