AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListObjectVersionsResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3/model/EncodingType.h>
11#include <aws/s3/model/RequestCharged.h>
12#include <aws/s3/model/ObjectVersion.h>
13#include <aws/s3/model/DeleteMarkerEntry.h>
14#include <aws/s3/model/CommonPrefix.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Xml
25{
26 class XmlDocument;
27} // namespace Xml
28} // namespace Utils
29namespace S3
30{
31namespace Model
32{
34 {
35 public:
39
40
42
49 inline bool GetIsTruncated() const{ return m_isTruncated; }
50 inline void SetIsTruncated(bool value) { m_isTruncated = value; }
51 inline ListObjectVersionsResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
53
55
58 inline const Aws::String& GetKeyMarker() const{ return m_keyMarker; }
59 inline void SetKeyMarker(const Aws::String& value) { m_keyMarker = value; }
60 inline void SetKeyMarker(Aws::String&& value) { m_keyMarker = std::move(value); }
61 inline void SetKeyMarker(const char* value) { m_keyMarker.assign(value); }
62 inline ListObjectVersionsResult& WithKeyMarker(const Aws::String& value) { SetKeyMarker(value); return *this;}
63 inline ListObjectVersionsResult& WithKeyMarker(Aws::String&& value) { SetKeyMarker(std::move(value)); return *this;}
64 inline ListObjectVersionsResult& WithKeyMarker(const char* value) { SetKeyMarker(value); return *this;}
66
68
71 inline const Aws::String& GetVersionIdMarker() const{ return m_versionIdMarker; }
72 inline void SetVersionIdMarker(const Aws::String& value) { m_versionIdMarker = value; }
73 inline void SetVersionIdMarker(Aws::String&& value) { m_versionIdMarker = std::move(value); }
74 inline void SetVersionIdMarker(const char* value) { m_versionIdMarker.assign(value); }
75 inline ListObjectVersionsResult& WithVersionIdMarker(const Aws::String& value) { SetVersionIdMarker(value); return *this;}
76 inline ListObjectVersionsResult& WithVersionIdMarker(Aws::String&& value) { SetVersionIdMarker(std::move(value)); return *this;}
77 inline ListObjectVersionsResult& WithVersionIdMarker(const char* value) { SetVersionIdMarker(value); return *this;}
79
81
87 inline const Aws::String& GetNextKeyMarker() const{ return m_nextKeyMarker; }
88 inline void SetNextKeyMarker(const Aws::String& value) { m_nextKeyMarker = value; }
89 inline void SetNextKeyMarker(Aws::String&& value) { m_nextKeyMarker = std::move(value); }
90 inline void SetNextKeyMarker(const char* value) { m_nextKeyMarker.assign(value); }
91 inline ListObjectVersionsResult& WithNextKeyMarker(const Aws::String& value) { SetNextKeyMarker(value); return *this;}
92 inline ListObjectVersionsResult& WithNextKeyMarker(Aws::String&& value) { SetNextKeyMarker(std::move(value)); return *this;}
93 inline ListObjectVersionsResult& WithNextKeyMarker(const char* value) { SetNextKeyMarker(value); return *this;}
95
97
103 inline const Aws::String& GetNextVersionIdMarker() const{ return m_nextVersionIdMarker; }
104 inline void SetNextVersionIdMarker(const Aws::String& value) { m_nextVersionIdMarker = value; }
105 inline void SetNextVersionIdMarker(Aws::String&& value) { m_nextVersionIdMarker = std::move(value); }
106 inline void SetNextVersionIdMarker(const char* value) { m_nextVersionIdMarker.assign(value); }
108 inline ListObjectVersionsResult& WithNextVersionIdMarker(Aws::String&& value) { SetNextVersionIdMarker(std::move(value)); return *this;}
109 inline ListObjectVersionsResult& WithNextVersionIdMarker(const char* value) { SetNextVersionIdMarker(value); return *this;}
111
113
116 inline const Aws::Vector<ObjectVersion>& GetVersions() const{ return m_versions; }
117 inline void SetVersions(const Aws::Vector<ObjectVersion>& value) { m_versions = value; }
118 inline void SetVersions(Aws::Vector<ObjectVersion>&& value) { m_versions = std::move(value); }
120 inline ListObjectVersionsResult& WithVersions(Aws::Vector<ObjectVersion>&& value) { SetVersions(std::move(value)); return *this;}
121 inline ListObjectVersionsResult& AddVersions(const ObjectVersion& value) { m_versions.push_back(value); return *this; }
122 inline ListObjectVersionsResult& AddVersions(ObjectVersion&& value) { m_versions.push_back(std::move(value)); return *this; }
124
126
129 inline const Aws::Vector<DeleteMarkerEntry>& GetDeleteMarkers() const{ return m_deleteMarkers; }
130 inline void SetDeleteMarkers(const Aws::Vector<DeleteMarkerEntry>& value) { m_deleteMarkers = value; }
131 inline void SetDeleteMarkers(Aws::Vector<DeleteMarkerEntry>&& value) { m_deleteMarkers = std::move(value); }
134 inline ListObjectVersionsResult& AddDeleteMarkers(const DeleteMarkerEntry& value) { m_deleteMarkers.push_back(value); return *this; }
135 inline ListObjectVersionsResult& AddDeleteMarkers(DeleteMarkerEntry&& value) { m_deleteMarkers.push_back(std::move(value)); return *this; }
137
139
142 inline const Aws::String& GetName() const{ return m_name; }
143 inline void SetName(const Aws::String& value) { m_name = value; }
144 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
145 inline void SetName(const char* value) { m_name.assign(value); }
146 inline ListObjectVersionsResult& WithName(const Aws::String& value) { SetName(value); return *this;}
147 inline ListObjectVersionsResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
148 inline ListObjectVersionsResult& WithName(const char* value) { SetName(value); return *this;}
150
152
155 inline const Aws::String& GetPrefix() const{ return m_prefix; }
156 inline void SetPrefix(const Aws::String& value) { m_prefix = value; }
157 inline void SetPrefix(Aws::String&& value) { m_prefix = std::move(value); }
158 inline void SetPrefix(const char* value) { m_prefix.assign(value); }
159 inline ListObjectVersionsResult& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
160 inline ListObjectVersionsResult& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
161 inline ListObjectVersionsResult& WithPrefix(const char* value) { SetPrefix(value); return *this;}
163
165
173 inline const Aws::String& GetDelimiter() const{ return m_delimiter; }
174 inline void SetDelimiter(const Aws::String& value) { m_delimiter = value; }
175 inline void SetDelimiter(Aws::String&& value) { m_delimiter = std::move(value); }
176 inline void SetDelimiter(const char* value) { m_delimiter.assign(value); }
177 inline ListObjectVersionsResult& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
178 inline ListObjectVersionsResult& WithDelimiter(Aws::String&& value) { SetDelimiter(std::move(value)); return *this;}
179 inline ListObjectVersionsResult& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
181
183
186 inline int GetMaxKeys() const{ return m_maxKeys; }
187 inline void SetMaxKeys(int value) { m_maxKeys = value; }
188 inline ListObjectVersionsResult& WithMaxKeys(int value) { SetMaxKeys(value); return *this;}
190
192
196 inline const Aws::Vector<CommonPrefix>& GetCommonPrefixes() const{ return m_commonPrefixes; }
197 inline void SetCommonPrefixes(const Aws::Vector<CommonPrefix>& value) { m_commonPrefixes = value; }
198 inline void SetCommonPrefixes(Aws::Vector<CommonPrefix>&& value) { m_commonPrefixes = std::move(value); }
201 inline ListObjectVersionsResult& AddCommonPrefixes(const CommonPrefix& value) { m_commonPrefixes.push_back(value); return *this; }
202 inline ListObjectVersionsResult& AddCommonPrefixes(CommonPrefix&& value) { m_commonPrefixes.push_back(std::move(value)); return *this; }
204
206
213 inline const EncodingType& GetEncodingType() const{ return m_encodingType; }
214 inline void SetEncodingType(const EncodingType& value) { m_encodingType = value; }
215 inline void SetEncodingType(EncodingType&& value) { m_encodingType = std::move(value); }
216 inline ListObjectVersionsResult& WithEncodingType(const EncodingType& value) { SetEncodingType(value); return *this;}
217 inline ListObjectVersionsResult& WithEncodingType(EncodingType&& value) { SetEncodingType(std::move(value)); return *this;}
219
221
222 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
223 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
224 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
226 inline ListObjectVersionsResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
228
230
231 inline const Aws::String& GetRequestId() const{ return m_requestId; }
232 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
233 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
234 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
235 inline ListObjectVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
236 inline ListObjectVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
237 inline ListObjectVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
239 private:
240
241 bool m_isTruncated;
242
243 Aws::String m_keyMarker;
244
245 Aws::String m_versionIdMarker;
246
247 Aws::String m_nextKeyMarker;
248
249 Aws::String m_nextVersionIdMarker;
250
252
253 Aws::Vector<DeleteMarkerEntry> m_deleteMarkers;
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 RequestCharged m_requestCharged;
268
269 Aws::String m_requestId;
270 };
271
272} // namespace Model
273} // namespace S3
274} // namespace Aws
ListObjectVersionsResult & WithDelimiter(Aws::String &&value)
ListObjectVersionsResult & WithVersions(const Aws::Vector< ObjectVersion > &value)
ListObjectVersionsResult & WithRequestId(const Aws::String &value)
ListObjectVersionsResult & WithDelimiter(const char *value)
ListObjectVersionsResult & WithName(Aws::String &&value)
ListObjectVersionsResult & WithNextVersionIdMarker(const Aws::String &value)
void SetDeleteMarkers(const Aws::Vector< DeleteMarkerEntry > &value)
ListObjectVersionsResult & AddDeleteMarkers(const DeleteMarkerEntry &value)
ListObjectVersionsResult & AddVersions(ObjectVersion &&value)
ListObjectVersionsResult & WithVersionIdMarker(const Aws::String &value)
ListObjectVersionsResult & WithIsTruncated(bool value)
ListObjectVersionsResult & WithRequestId(const char *value)
ListObjectVersionsResult & WithPrefix(Aws::String &&value)
ListObjectVersionsResult & WithRequestId(Aws::String &&value)
ListObjectVersionsResult & WithMaxKeys(int value)
ListObjectVersionsResult & WithNextVersionIdMarker(Aws::String &&value)
ListObjectVersionsResult & WithKeyMarker(const Aws::String &value)
ListObjectVersionsResult & AddVersions(const ObjectVersion &value)
ListObjectVersionsResult & WithVersionIdMarker(Aws::String &&value)
const Aws::Vector< ObjectVersion > & GetVersions() const
ListObjectVersionsResult & WithRequestCharged(const RequestCharged &value)
const Aws::Vector< DeleteMarkerEntry > & GetDeleteMarkers() const
ListObjectVersionsResult & WithDeleteMarkers(Aws::Vector< DeleteMarkerEntry > &&value)
ListObjectVersionsResult & AddCommonPrefixes(const CommonPrefix &value)
ListObjectVersionsResult & WithName(const char *value)
ListObjectVersionsResult & WithRequestCharged(RequestCharged &&value)
ListObjectVersionsResult & WithEncodingType(EncodingType &&value)
void SetCommonPrefixes(Aws::Vector< CommonPrefix > &&value)
void SetNextVersionIdMarker(const Aws::String &value)
ListObjectVersionsResult & WithDeleteMarkers(const Aws::Vector< DeleteMarkerEntry > &value)
ListObjectVersionsResult & WithVersions(Aws::Vector< ObjectVersion > &&value)
ListObjectVersionsResult & WithNextKeyMarker(Aws::String &&value)
ListObjectVersionsResult & WithCommonPrefixes(Aws::Vector< CommonPrefix > &&value)
ListObjectVersionsResult & WithPrefix(const Aws::String &value)
ListObjectVersionsResult & WithDelimiter(const Aws::String &value)
void SetRequestCharged(const RequestCharged &value)
AWS_S3_API ListObjectVersionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListObjectVersionsResult & WithNextKeyMarker(const Aws::String &value)
ListObjectVersionsResult & WithCommonPrefixes(const Aws::Vector< CommonPrefix > &value)
ListObjectVersionsResult & AddCommonPrefixes(CommonPrefix &&value)
void SetVersions(const Aws::Vector< ObjectVersion > &value)
ListObjectVersionsResult & WithPrefix(const char *value)
void SetNextKeyMarker(const Aws::String &value)
AWS_S3_API ListObjectVersionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetCommonPrefixes(const Aws::Vector< CommonPrefix > &value)
ListObjectVersionsResult & WithNextVersionIdMarker(const char *value)
void SetVersions(Aws::Vector< ObjectVersion > &&value)
void SetVersionIdMarker(const Aws::String &value)
ListObjectVersionsResult & WithVersionIdMarker(const char *value)
ListObjectVersionsResult & WithName(const Aws::String &value)
ListObjectVersionsResult & WithKeyMarker(const char *value)
void SetDeleteMarkers(Aws::Vector< DeleteMarkerEntry > &&value)
const Aws::Vector< CommonPrefix > & GetCommonPrefixes() const
ListObjectVersionsResult & WithNextKeyMarker(const char *value)
ListObjectVersionsResult & AddDeleteMarkers(DeleteMarkerEntry &&value)
void SetEncodingType(const EncodingType &value)
ListObjectVersionsResult & WithEncodingType(const EncodingType &value)
ListObjectVersionsResult & WithKeyMarker(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