AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListObjectsV2Result.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/EncodingType.h>
11#include <aws/s3/model/RequestCharged.h>
12#include <aws/s3/model/Object.h>
13#include <aws/s3/model/CommonPrefix.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Xml
24{
25 class XmlDocument;
26} // namespace Xml
27} // namespace Utils
28namespace S3
29{
30namespace Model
31{
33 {
34 public:
35 AWS_S3_API ListObjectsV2Result() = default;
38
39
41
47 inline bool GetIsTruncated() const { return m_isTruncated; }
48 inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; m_isTruncated = value; }
49 inline ListObjectsV2Result& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
51
53
56 inline const Aws::Vector<Object>& GetContents() const { return m_contents; }
57 template<typename ContentsT = Aws::Vector<Object>>
58 void SetContents(ContentsT&& value) { m_contentsHasBeenSet = true; m_contents = std::forward<ContentsT>(value); }
59 template<typename ContentsT = Aws::Vector<Object>>
60 ListObjectsV2Result& WithContents(ContentsT&& value) { SetContents(std::forward<ContentsT>(value)); return *this;}
61 template<typename ContentsT = Object>
62 ListObjectsV2Result& AddContents(ContentsT&& value) { m_contentsHasBeenSet = true; m_contents.emplace_back(std::forward<ContentsT>(value)); return *this; }
64
66
69 inline const Aws::String& GetName() const { return m_name; }
70 template<typename NameT = Aws::String>
71 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
72 template<typename NameT = Aws::String>
73 ListObjectsV2Result& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
75
77
82 inline const Aws::String& GetPrefix() const { return m_prefix; }
83 template<typename PrefixT = Aws::String>
84 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
85 template<typename PrefixT = Aws::String>
86 ListObjectsV2Result& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
88
90
99 inline const Aws::String& GetDelimiter() const { return m_delimiter; }
100 template<typename DelimiterT = Aws::String>
101 void SetDelimiter(DelimiterT&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::forward<DelimiterT>(value); }
102 template<typename DelimiterT = Aws::String>
103 ListObjectsV2Result& WithDelimiter(DelimiterT&& value) { SetDelimiter(std::forward<DelimiterT>(value)); return *this;}
105
107
112 inline int GetMaxKeys() const { return m_maxKeys; }
113 inline void SetMaxKeys(int value) { m_maxKeysHasBeenSet = true; m_maxKeys = value; }
114 inline ListObjectsV2Result& WithMaxKeys(int value) { SetMaxKeys(value); return *this;}
116
118
141 inline const Aws::Vector<CommonPrefix>& GetCommonPrefixes() const { return m_commonPrefixes; }
142 template<typename CommonPrefixesT = Aws::Vector<CommonPrefix>>
143 void SetCommonPrefixes(CommonPrefixesT&& value) { m_commonPrefixesHasBeenSet = true; m_commonPrefixes = std::forward<CommonPrefixesT>(value); }
144 template<typename CommonPrefixesT = Aws::Vector<CommonPrefix>>
145 ListObjectsV2Result& WithCommonPrefixes(CommonPrefixesT&& value) { SetCommonPrefixes(std::forward<CommonPrefixesT>(value)); return *this;}
146 template<typename CommonPrefixesT = CommonPrefix>
147 ListObjectsV2Result& AddCommonPrefixes(CommonPrefixesT&& value) { m_commonPrefixesHasBeenSet = true; m_commonPrefixes.emplace_back(std::forward<CommonPrefixesT>(value)); return *this; }
149
151
158 inline EncodingType GetEncodingType() const { return m_encodingType; }
159 inline void SetEncodingType(EncodingType value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
160 inline ListObjectsV2Result& WithEncodingType(EncodingType value) { SetEncodingType(value); return *this;}
162
164
170 inline int GetKeyCount() const { return m_keyCount; }
171 inline void SetKeyCount(int value) { m_keyCountHasBeenSet = true; m_keyCount = value; }
172 inline ListObjectsV2Result& WithKeyCount(int value) { SetKeyCount(value); return *this;}
174
176
181 inline const Aws::String& GetContinuationToken() const { return m_continuationToken; }
182 template<typename ContinuationTokenT = Aws::String>
183 void SetContinuationToken(ContinuationTokenT&& value) { m_continuationTokenHasBeenSet = true; m_continuationToken = std::forward<ContinuationTokenT>(value); }
184 template<typename ContinuationTokenT = Aws::String>
185 ListObjectsV2Result& WithContinuationToken(ContinuationTokenT&& value) { SetContinuationToken(std::forward<ContinuationTokenT>(value)); return *this;}
187
189
196 inline const Aws::String& GetNextContinuationToken() const { return m_nextContinuationToken; }
197 template<typename NextContinuationTokenT = Aws::String>
198 void SetNextContinuationToken(NextContinuationTokenT&& value) { m_nextContinuationTokenHasBeenSet = true; m_nextContinuationToken = std::forward<NextContinuationTokenT>(value); }
199 template<typename NextContinuationTokenT = Aws::String>
200 ListObjectsV2Result& WithNextContinuationToken(NextContinuationTokenT&& value) { SetNextContinuationToken(std::forward<NextContinuationTokenT>(value)); return *this;}
202
204
208 inline const Aws::String& GetStartAfter() const { return m_startAfter; }
209 template<typename StartAfterT = Aws::String>
210 void SetStartAfter(StartAfterT&& value) { m_startAfterHasBeenSet = true; m_startAfter = std::forward<StartAfterT>(value); }
211 template<typename StartAfterT = Aws::String>
212 ListObjectsV2Result& WithStartAfter(StartAfterT&& value) { SetStartAfter(std::forward<StartAfterT>(value)); return *this;}
214
216
217 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
218 inline void SetRequestCharged(RequestCharged value) { m_requestChargedHasBeenSet = true; m_requestCharged = value; }
221
223
224 inline const Aws::String& GetRequestId() const { return m_requestId; }
225 template<typename RequestIdT = Aws::String>
226 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
227 template<typename RequestIdT = Aws::String>
228 ListObjectsV2Result& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
230 private:
231
232 bool m_isTruncated{false};
233 bool m_isTruncatedHasBeenSet = false;
234
235 Aws::Vector<Object> m_contents;
236 bool m_contentsHasBeenSet = false;
237
238 Aws::String m_name;
239 bool m_nameHasBeenSet = false;
240
241 Aws::String m_prefix;
242 bool m_prefixHasBeenSet = false;
243
244 Aws::String m_delimiter;
245 bool m_delimiterHasBeenSet = false;
246
247 int m_maxKeys{0};
248 bool m_maxKeysHasBeenSet = false;
249
250 Aws::Vector<CommonPrefix> m_commonPrefixes;
251 bool m_commonPrefixesHasBeenSet = false;
252
253 EncodingType m_encodingType{EncodingType::NOT_SET};
254 bool m_encodingTypeHasBeenSet = false;
255
256 int m_keyCount{0};
257 bool m_keyCountHasBeenSet = false;
258
259 Aws::String m_continuationToken;
260 bool m_continuationTokenHasBeenSet = false;
261
262 Aws::String m_nextContinuationToken;
263 bool m_nextContinuationTokenHasBeenSet = false;
264
265 Aws::String m_startAfter;
266 bool m_startAfterHasBeenSet = false;
267
268 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
269 bool m_requestChargedHasBeenSet = false;
270
271 Aws::String m_requestId;
272 bool m_requestIdHasBeenSet = false;
273 };
274
275} // namespace Model
276} // namespace S3
277} // namespace Aws
const Aws::String & GetPrefix() const
const Aws::String & GetName() const
ListObjectsV2Result & WithCommonPrefixes(CommonPrefixesT &&value)
ListObjectsV2Result & WithRequestId(RequestIdT &&value)
const Aws::Vector< Object > & GetContents() const
const Aws::String & GetStartAfter() const
void SetContinuationToken(ContinuationTokenT &&value)
AWS_S3_API ListObjectsV2Result(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListObjectsV2Result & WithDelimiter(DelimiterT &&value)
const Aws::Vector< CommonPrefix > & GetCommonPrefixes() const
AWS_S3_API ListObjectsV2Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListObjectsV2Result & WithStartAfter(StartAfterT &&value)
ListObjectsV2Result & WithNextContinuationToken(NextContinuationTokenT &&value)
ListObjectsV2Result & WithEncodingType(EncodingType value)
const Aws::String & GetNextContinuationToken() const
ListObjectsV2Result & AddCommonPrefixes(CommonPrefixesT &&value)
ListObjectsV2Result & AddContents(ContentsT &&value)
void SetCommonPrefixes(CommonPrefixesT &&value)
ListObjectsV2Result & WithContents(ContentsT &&value)
ListObjectsV2Result & WithMaxKeys(int value)
const Aws::String & GetRequestId() const
AWS_S3_API ListObjectsV2Result()=default
void SetStartAfter(StartAfterT &&value)
ListObjectsV2Result & WithKeyCount(int value)
ListObjectsV2Result & WithName(NameT &&value)
void SetNextContinuationToken(NextContinuationTokenT &&value)
ListObjectsV2Result & WithIsTruncated(bool value)
const Aws::String & GetDelimiter() const
const Aws::String & GetContinuationToken() const
ListObjectsV2Result & WithRequestCharged(RequestCharged value)
void SetRequestCharged(RequestCharged value)
ListObjectsV2Result & WithContinuationToken(ContinuationTokenT &&value)
ListObjectsV2Result & WithPrefix(PrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument