AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListObjectsV2Result.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3-crt/model/EncodingType.h>
11#include <aws/s3-crt/model/RequestCharged.h>
12#include <aws/s3-crt/model/Object.h>
13#include <aws/s3-crt/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 S3Crt
29{
30namespace Model
31{
33 {
34 public:
35 AWS_S3CRT_API ListObjectsV2Result();
38
39
41
47 inline bool GetIsTruncated() const{ return m_isTruncated; }
48 inline void SetIsTruncated(bool value) { 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 inline void SetContents(const Aws::Vector<Object>& value) { m_contents = value; }
58 inline void SetContents(Aws::Vector<Object>&& value) { m_contents = std::move(value); }
59 inline ListObjectsV2Result& WithContents(const Aws::Vector<Object>& value) { SetContents(value); return *this;}
60 inline ListObjectsV2Result& WithContents(Aws::Vector<Object>&& value) { SetContents(std::move(value)); return *this;}
61 inline ListObjectsV2Result& AddContents(const Object& value) { m_contents.push_back(value); return *this; }
62 inline ListObjectsV2Result& AddContents(Object&& value) { m_contents.push_back(std::move(value)); return *this; }
64
66
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline void SetName(const Aws::String& value) { m_name = value; }
71 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
72 inline void SetName(const char* value) { m_name.assign(value); }
73 inline ListObjectsV2Result& WithName(const Aws::String& value) { SetName(value); return *this;}
74 inline ListObjectsV2Result& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 inline ListObjectsV2Result& WithName(const char* value) { SetName(value); return *this;}
77
79
84 inline const Aws::String& GetPrefix() const{ return m_prefix; }
85 inline void SetPrefix(const Aws::String& value) { m_prefix = value; }
86 inline void SetPrefix(Aws::String&& value) { m_prefix = std::move(value); }
87 inline void SetPrefix(const char* value) { m_prefix.assign(value); }
88 inline ListObjectsV2Result& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
89 inline ListObjectsV2Result& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
90 inline ListObjectsV2Result& WithPrefix(const char* value) { SetPrefix(value); return *this;}
92
94
103 inline const Aws::String& GetDelimiter() const{ return m_delimiter; }
104 inline void SetDelimiter(const Aws::String& value) { m_delimiter = value; }
105 inline void SetDelimiter(Aws::String&& value) { m_delimiter = std::move(value); }
106 inline void SetDelimiter(const char* value) { m_delimiter.assign(value); }
107 inline ListObjectsV2Result& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
108 inline ListObjectsV2Result& WithDelimiter(Aws::String&& value) { SetDelimiter(std::move(value)); return *this;}
109 inline ListObjectsV2Result& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
111
113
118 inline int GetMaxKeys() const{ return m_maxKeys; }
119 inline void SetMaxKeys(int value) { m_maxKeys = value; }
120 inline ListObjectsV2Result& WithMaxKeys(int value) { SetMaxKeys(value); return *this;}
122
124
147 inline const Aws::Vector<CommonPrefix>& GetCommonPrefixes() const{ return m_commonPrefixes; }
148 inline void SetCommonPrefixes(const Aws::Vector<CommonPrefix>& value) { m_commonPrefixes = value; }
149 inline void SetCommonPrefixes(Aws::Vector<CommonPrefix>&& value) { m_commonPrefixes = std::move(value); }
151 inline ListObjectsV2Result& WithCommonPrefixes(Aws::Vector<CommonPrefix>&& value) { SetCommonPrefixes(std::move(value)); return *this;}
152 inline ListObjectsV2Result& AddCommonPrefixes(const CommonPrefix& value) { m_commonPrefixes.push_back(value); return *this; }
153 inline ListObjectsV2Result& AddCommonPrefixes(CommonPrefix&& value) { m_commonPrefixes.push_back(std::move(value)); return *this; }
155
157
164 inline const EncodingType& GetEncodingType() const{ return m_encodingType; }
165 inline void SetEncodingType(const EncodingType& value) { m_encodingType = value; }
166 inline void SetEncodingType(EncodingType&& value) { m_encodingType = std::move(value); }
167 inline ListObjectsV2Result& WithEncodingType(const EncodingType& value) { SetEncodingType(value); return *this;}
168 inline ListObjectsV2Result& WithEncodingType(EncodingType&& value) { SetEncodingType(std::move(value)); return *this;}
170
172
178 inline int GetKeyCount() const{ return m_keyCount; }
179 inline void SetKeyCount(int value) { m_keyCount = value; }
180 inline ListObjectsV2Result& WithKeyCount(int value) { SetKeyCount(value); return *this;}
182
184
190 inline const Aws::String& GetContinuationToken() const{ return m_continuationToken; }
191 inline void SetContinuationToken(const Aws::String& value) { m_continuationToken = value; }
192 inline void SetContinuationToken(Aws::String&& value) { m_continuationToken = std::move(value); }
193 inline void SetContinuationToken(const char* value) { m_continuationToken.assign(value); }
194 inline ListObjectsV2Result& WithContinuationToken(const Aws::String& value) { SetContinuationToken(value); return *this;}
195 inline ListObjectsV2Result& WithContinuationToken(Aws::String&& value) { SetContinuationToken(std::move(value)); return *this;}
196 inline ListObjectsV2Result& WithContinuationToken(const char* value) { SetContinuationToken(value); return *this;}
198
200
207 inline const Aws::String& GetNextContinuationToken() const{ return m_nextContinuationToken; }
208 inline void SetNextContinuationToken(const Aws::String& value) { m_nextContinuationToken = value; }
209 inline void SetNextContinuationToken(Aws::String&& value) { m_nextContinuationToken = std::move(value); }
210 inline void SetNextContinuationToken(const char* value) { m_nextContinuationToken.assign(value); }
212 inline ListObjectsV2Result& WithNextContinuationToken(Aws::String&& value) { SetNextContinuationToken(std::move(value)); return *this;}
213 inline ListObjectsV2Result& WithNextContinuationToken(const char* value) { SetNextContinuationToken(value); return *this;}
215
217
221 inline const Aws::String& GetStartAfter() const{ return m_startAfter; }
222 inline void SetStartAfter(const Aws::String& value) { m_startAfter = value; }
223 inline void SetStartAfter(Aws::String&& value) { m_startAfter = std::move(value); }
224 inline void SetStartAfter(const char* value) { m_startAfter.assign(value); }
225 inline ListObjectsV2Result& WithStartAfter(const Aws::String& value) { SetStartAfter(value); return *this;}
226 inline ListObjectsV2Result& WithStartAfter(Aws::String&& value) { SetStartAfter(std::move(value)); return *this;}
227 inline ListObjectsV2Result& WithStartAfter(const char* value) { SetStartAfter(value); return *this;}
229
231
232 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
233 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
234 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
235 inline ListObjectsV2Result& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
236 inline ListObjectsV2Result& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
238
240
241 inline const Aws::String& GetRequestId() const{ return m_requestId; }
242 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
243 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
244 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
245 inline ListObjectsV2Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
246 inline ListObjectsV2Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
247 inline ListObjectsV2Result& WithRequestId(const char* value) { SetRequestId(value); return *this;}
249 private:
250
251 bool m_isTruncated;
252
253 Aws::Vector<Object> m_contents;
254
255 Aws::String m_name;
256
257 Aws::String m_prefix;
258
259 Aws::String m_delimiter;
260
261 int m_maxKeys;
262
263 Aws::Vector<CommonPrefix> m_commonPrefixes;
264
265 EncodingType m_encodingType;
266
267 int m_keyCount;
268
269 Aws::String m_continuationToken;
270
271 Aws::String m_nextContinuationToken;
272
273 Aws::String m_startAfter;
274
275 RequestCharged m_requestCharged;
276
277 Aws::String m_requestId;
278 };
279
280} // namespace Model
281} // namespace S3Crt
282} // namespace Aws
void SetEncodingType(const EncodingType &value)
ListObjectsV2Result & WithRequestId(const Aws::String &value)
ListObjectsV2Result & WithRequestCharged(RequestCharged &&value)
ListObjectsV2Result & WithName(Aws::String &&value)
void SetRequestCharged(const RequestCharged &value)
ListObjectsV2Result & AddCommonPrefixes(const CommonPrefix &value)
const Aws::String & GetNextContinuationToken() const
ListObjectsV2Result & WithIsTruncated(bool value)
ListObjectsV2Result & WithNextContinuationToken(const Aws::String &value)
ListObjectsV2Result & WithContents(Aws::Vector< Object > &&value)
const Aws::Vector< CommonPrefix > & GetCommonPrefixes() const
ListObjectsV2Result & WithContinuationToken(Aws::String &&value)
ListObjectsV2Result & WithDelimiter(Aws::String &&value)
const Aws::String & GetStartAfter() const
void SetDelimiter(const Aws::String &value)
ListObjectsV2Result & WithStartAfter(const Aws::String &value)
ListObjectsV2Result & WithContinuationToken(const Aws::String &value)
ListObjectsV2Result & WithRequestId(Aws::String &&value)
ListObjectsV2Result & AddCommonPrefixes(CommonPrefix &&value)
ListObjectsV2Result & WithName(const char *value)
void SetContents(Aws::Vector< Object > &&value)
ListObjectsV2Result & WithEncodingType(EncodingType &&value)
void SetNextContinuationToken(Aws::String &&value)
ListObjectsV2Result & AddContents(Object &&value)
void SetContents(const Aws::Vector< Object > &value)
ListObjectsV2Result & WithName(const Aws::String &value)
void SetStartAfter(const Aws::String &value)
ListObjectsV2Result & WithDelimiter(const Aws::String &value)
ListObjectsV2Result & WithPrefix(Aws::String &&value)
ListObjectsV2Result & WithPrefix(const Aws::String &value)
const Aws::Vector< Object > & GetContents() const
ListObjectsV2Result & WithPrefix(const char *value)
void SetRequestId(const Aws::String &value)
void SetCommonPrefixes(const Aws::Vector< CommonPrefix > &value)
ListObjectsV2Result & WithContents(const Aws::Vector< Object > &value)
ListObjectsV2Result & WithNextContinuationToken(Aws::String &&value)
ListObjectsV2Result & AddContents(const Object &value)
const Aws::String & GetContinuationToken() const
ListObjectsV2Result & WithMaxKeys(int value)
void SetPrefix(const Aws::String &value)
void SetNextContinuationToken(const Aws::String &value)
ListObjectsV2Result & WithNextContinuationToken(const char *value)
AWS_S3CRT_API ListObjectsV2Result(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListObjectsV2Result & WithDelimiter(const char *value)
ListObjectsV2Result & WithRequestId(const char *value)
void SetCommonPrefixes(Aws::Vector< CommonPrefix > &&value)
void SetContinuationToken(const Aws::String &value)
ListObjectsV2Result & WithCommonPrefixes(Aws::Vector< CommonPrefix > &&value)
ListObjectsV2Result & WithStartAfter(const char *value)
ListObjectsV2Result & WithRequestCharged(const RequestCharged &value)
ListObjectsV2Result & WithStartAfter(Aws::String &&value)
ListObjectsV2Result & WithCommonPrefixes(const Aws::Vector< CommonPrefix > &value)
ListObjectsV2Result & WithKeyCount(int value)
ListObjectsV2Result & WithEncodingType(const EncodingType &value)
void SetContinuationToken(Aws::String &&value)
const EncodingType & GetEncodingType() const
ListObjectsV2Result & WithContinuationToken(const char *value)
AWS_S3CRT_API ListObjectsV2Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetRequestCharged(RequestCharged &&value)
const RequestCharged & GetRequestCharged() const
void SetName(const Aws::String &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