AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListObjectsResult.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/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 ListObjectsResult();
38
39
41
45 inline bool GetIsTruncated() const{ return m_isTruncated; }
46 inline void SetIsTruncated(bool value) { m_isTruncated = value; }
47 inline ListObjectsResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
49
51
55 inline const Aws::String& GetMarker() const{ return m_marker; }
56 inline void SetMarker(const Aws::String& value) { m_marker = value; }
57 inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
58 inline void SetMarker(const char* value) { m_marker.assign(value); }
59 inline ListObjectsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
60 inline ListObjectsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
61 inline ListObjectsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
63
65
77 inline const Aws::String& GetNextMarker() const{ return m_nextMarker; }
78 inline void SetNextMarker(const Aws::String& value) { m_nextMarker = value; }
79 inline void SetNextMarker(Aws::String&& value) { m_nextMarker = std::move(value); }
80 inline void SetNextMarker(const char* value) { m_nextMarker.assign(value); }
81 inline ListObjectsResult& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
82 inline ListObjectsResult& WithNextMarker(Aws::String&& value) { SetNextMarker(std::move(value)); return *this;}
83 inline ListObjectsResult& WithNextMarker(const char* value) { SetNextMarker(value); return *this;}
85
87
90 inline const Aws::Vector<Object>& GetContents() const{ return m_contents; }
91 inline void SetContents(const Aws::Vector<Object>& value) { m_contents = value; }
92 inline void SetContents(Aws::Vector<Object>&& value) { m_contents = std::move(value); }
93 inline ListObjectsResult& WithContents(const Aws::Vector<Object>& value) { SetContents(value); return *this;}
94 inline ListObjectsResult& WithContents(Aws::Vector<Object>&& value) { SetContents(std::move(value)); return *this;}
95 inline ListObjectsResult& AddContents(const Object& value) { m_contents.push_back(value); return *this; }
96 inline ListObjectsResult& AddContents(Object&& value) { m_contents.push_back(std::move(value)); return *this; }
98
100
103 inline const Aws::String& GetName() const{ return m_name; }
104 inline void SetName(const Aws::String& value) { m_name = value; }
105 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
106 inline void SetName(const char* value) { m_name.assign(value); }
107 inline ListObjectsResult& WithName(const Aws::String& value) { SetName(value); return *this;}
108 inline ListObjectsResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
109 inline ListObjectsResult& WithName(const char* value) { SetName(value); return *this;}
111
113
116 inline const Aws::String& GetPrefix() const{ return m_prefix; }
117 inline void SetPrefix(const Aws::String& value) { m_prefix = value; }
118 inline void SetPrefix(Aws::String&& value) { m_prefix = std::move(value); }
119 inline void SetPrefix(const char* value) { m_prefix.assign(value); }
120 inline ListObjectsResult& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
121 inline ListObjectsResult& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
122 inline ListObjectsResult& WithPrefix(const char* value) { SetPrefix(value); return *this;}
124
126
133 inline const Aws::String& GetDelimiter() const{ return m_delimiter; }
134 inline void SetDelimiter(const Aws::String& value) { m_delimiter = value; }
135 inline void SetDelimiter(Aws::String&& value) { m_delimiter = std::move(value); }
136 inline void SetDelimiter(const char* value) { m_delimiter.assign(value); }
137 inline ListObjectsResult& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
138 inline ListObjectsResult& WithDelimiter(Aws::String&& value) { SetDelimiter(std::move(value)); return *this;}
139 inline ListObjectsResult& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
141
143
146 inline int GetMaxKeys() const{ return m_maxKeys; }
147 inline void SetMaxKeys(int value) { m_maxKeys = value; }
148 inline ListObjectsResult& WithMaxKeys(int value) { SetMaxKeys(value); return *this;}
150
152
165 inline const Aws::Vector<CommonPrefix>& GetCommonPrefixes() const{ return m_commonPrefixes; }
166 inline void SetCommonPrefixes(const Aws::Vector<CommonPrefix>& value) { m_commonPrefixes = value; }
167 inline void SetCommonPrefixes(Aws::Vector<CommonPrefix>&& value) { m_commonPrefixes = std::move(value); }
169 inline ListObjectsResult& WithCommonPrefixes(Aws::Vector<CommonPrefix>&& value) { SetCommonPrefixes(std::move(value)); return *this;}
170 inline ListObjectsResult& AddCommonPrefixes(const CommonPrefix& value) { m_commonPrefixes.push_back(value); return *this; }
171 inline ListObjectsResult& AddCommonPrefixes(CommonPrefix&& value) { m_commonPrefixes.push_back(std::move(value)); return *this; }
173
175
191 inline const EncodingType& GetEncodingType() const{ return m_encodingType; }
192 inline void SetEncodingType(const EncodingType& value) { m_encodingType = value; }
193 inline void SetEncodingType(EncodingType&& value) { m_encodingType = std::move(value); }
194 inline ListObjectsResult& WithEncodingType(const EncodingType& value) { SetEncodingType(value); return *this;}
195 inline ListObjectsResult& WithEncodingType(EncodingType&& value) { SetEncodingType(std::move(value)); return *this;}
197
199
200 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
201 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
202 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
203 inline ListObjectsResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
204 inline ListObjectsResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
206
208
209 inline const Aws::String& GetRequestId() const{ return m_requestId; }
210 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
211 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
212 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
213 inline ListObjectsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
214 inline ListObjectsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
215 inline ListObjectsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
217 private:
218
219 bool m_isTruncated;
220
221 Aws::String m_marker;
222
223 Aws::String m_nextMarker;
224
225 Aws::Vector<Object> m_contents;
226
227 Aws::String m_name;
228
229 Aws::String m_prefix;
230
231 Aws::String m_delimiter;
232
233 int m_maxKeys;
234
235 Aws::Vector<CommonPrefix> m_commonPrefixes;
236
237 EncodingType m_encodingType;
238
239 RequestCharged m_requestCharged;
240
241 Aws::String m_requestId;
242 };
243
244} // namespace Model
245} // namespace S3
246} // namespace Aws
void SetPrefix(const Aws::String &value)
ListObjectsResult & WithNextMarker(Aws::String &&value)
ListObjectsResult & AddCommonPrefixes(const CommonPrefix &value)
ListObjectsResult & AddContents(const Object &value)
const Aws::String & GetRequestId() const
ListObjectsResult & WithMarker(const char *value)
ListObjectsResult & WithMarker(Aws::String &&value)
ListObjectsResult & WithName(const char *value)
const Aws::Vector< CommonPrefix > & GetCommonPrefixes() const
void SetRequestId(const Aws::String &value)
void SetMarker(Aws::String &&value)
const EncodingType & GetEncodingType() const
void SetNextMarker(const Aws::String &value)
ListObjectsResult & WithDelimiter(const Aws::String &value)
ListObjectsResult & WithMarker(const Aws::String &value)
void SetMarker(const char *value)
ListObjectsResult & WithCommonPrefixes(const Aws::Vector< CommonPrefix > &value)
void SetCommonPrefixes(Aws::Vector< CommonPrefix > &&value)
ListObjectsResult & WithDelimiter(Aws::String &&value)
ListObjectsResult & WithEncodingType(const EncodingType &value)
void SetName(const Aws::String &value)
void SetPrefix(Aws::String &&value)
void SetEncodingType(EncodingType &&value)
ListObjectsResult & WithIsTruncated(bool value)
void SetMarker(const Aws::String &value)
ListObjectsResult & WithRequestId(const char *value)
ListObjectsResult & WithEncodingType(EncodingType &&value)
const Aws::String & GetDelimiter() const
ListObjectsResult & WithPrefix(const char *value)
void SetRequestId(const char *value)
void SetDelimiter(const char *value)
ListObjectsResult & WithContents(Aws::Vector< Object > &&value)
const Aws::String & GetMarker() const
void SetRequestCharged(const RequestCharged &value)
const Aws::String & GetName() const
void SetNextMarker(Aws::String &&value)
void SetContents(Aws::Vector< Object > &&value)
ListObjectsResult & WithDelimiter(const char *value)
void SetRequestId(Aws::String &&value)
ListObjectsResult & WithRequestId(const Aws::String &value)
void SetName(Aws::String &&value)
void SetRequestCharged(RequestCharged &&value)
ListObjectsResult & WithPrefix(Aws::String &&value)
const Aws::String & GetNextMarker() const
void SetNextMarker(const char *value)
ListObjectsResult & WithMaxKeys(int value)
void SetCommonPrefixes(const Aws::Vector< CommonPrefix > &value)
ListObjectsResult & AddContents(Object &&value)
void SetEncodingType(const EncodingType &value)
ListObjectsResult & WithRequestCharged(const RequestCharged &value)
ListObjectsResult & WithPrefix(const Aws::String &value)
ListObjectsResult & AddCommonPrefixes(CommonPrefix &&value)
AWS_S3_API ListObjectsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListObjectsResult & WithRequestId(Aws::String &&value)
ListObjectsResult & WithRequestCharged(RequestCharged &&value)
ListObjectsResult & WithName(const Aws::String &value)
const Aws::String & GetPrefix() const
ListObjectsResult & WithName(Aws::String &&value)
const Aws::Vector< Object > & GetContents() const
ListObjectsResult & WithNextMarker(const char *value)
void SetDelimiter(Aws::String &&value)
void SetDelimiter(const Aws::String &value)
AWS_S3_API ListObjectsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListObjectsResult & WithContents(const Aws::Vector< Object > &value)
const RequestCharged & GetRequestCharged() const
ListObjectsResult & WithCommonPrefixes(Aws::Vector< CommonPrefix > &&value)
void SetContents(const Aws::Vector< Object > &value)
ListObjectsResult & WithNextMarker(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