AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
38
39
41
45 inline bool GetIsTruncated() const { return m_isTruncated; }
46 inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; 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 template<typename MarkerT = Aws::String>
57 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
58 template<typename MarkerT = Aws::String>
59 ListObjectsResult& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
61
63
75 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
76 template<typename NextMarkerT = Aws::String>
77 void SetNextMarker(NextMarkerT&& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::forward<NextMarkerT>(value); }
78 template<typename NextMarkerT = Aws::String>
79 ListObjectsResult& WithNextMarker(NextMarkerT&& value) { SetNextMarker(std::forward<NextMarkerT>(value)); return *this;}
81
83
86 inline const Aws::Vector<Object>& GetContents() const { return m_contents; }
87 template<typename ContentsT = Aws::Vector<Object>>
88 void SetContents(ContentsT&& value) { m_contentsHasBeenSet = true; m_contents = std::forward<ContentsT>(value); }
89 template<typename ContentsT = Aws::Vector<Object>>
90 ListObjectsResult& WithContents(ContentsT&& value) { SetContents(std::forward<ContentsT>(value)); return *this;}
91 template<typename ContentsT = Object>
92 ListObjectsResult& AddContents(ContentsT&& value) { m_contentsHasBeenSet = true; m_contents.emplace_back(std::forward<ContentsT>(value)); return *this; }
94
96
99 inline const Aws::String& GetName() const { return m_name; }
100 template<typename NameT = Aws::String>
101 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
102 template<typename NameT = Aws::String>
103 ListObjectsResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
105
107
110 inline const Aws::String& GetPrefix() const { return m_prefix; }
111 template<typename PrefixT = Aws::String>
112 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
113 template<typename PrefixT = Aws::String>
114 ListObjectsResult& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
116
118
125 inline const Aws::String& GetDelimiter() const { return m_delimiter; }
126 template<typename DelimiterT = Aws::String>
127 void SetDelimiter(DelimiterT&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::forward<DelimiterT>(value); }
128 template<typename DelimiterT = Aws::String>
129 ListObjectsResult& WithDelimiter(DelimiterT&& value) { SetDelimiter(std::forward<DelimiterT>(value)); return *this;}
131
133
136 inline int GetMaxKeys() const { return m_maxKeys; }
137 inline void SetMaxKeys(int value) { m_maxKeysHasBeenSet = true; m_maxKeys = value; }
138 inline ListObjectsResult& WithMaxKeys(int value) { SetMaxKeys(value); return *this;}
140
142
155 inline const Aws::Vector<CommonPrefix>& GetCommonPrefixes() const { return m_commonPrefixes; }
156 template<typename CommonPrefixesT = Aws::Vector<CommonPrefix>>
157 void SetCommonPrefixes(CommonPrefixesT&& value) { m_commonPrefixesHasBeenSet = true; m_commonPrefixes = std::forward<CommonPrefixesT>(value); }
158 template<typename CommonPrefixesT = Aws::Vector<CommonPrefix>>
159 ListObjectsResult& WithCommonPrefixes(CommonPrefixesT&& value) { SetCommonPrefixes(std::forward<CommonPrefixesT>(value)); return *this;}
160 template<typename CommonPrefixesT = CommonPrefix>
161 ListObjectsResult& AddCommonPrefixes(CommonPrefixesT&& value) { m_commonPrefixesHasBeenSet = true; m_commonPrefixes.emplace_back(std::forward<CommonPrefixesT>(value)); return *this; }
163
165
181 inline EncodingType GetEncodingType() const { return m_encodingType; }
182 inline void SetEncodingType(EncodingType value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
183 inline ListObjectsResult& WithEncodingType(EncodingType value) { SetEncodingType(value); return *this;}
185
187
188 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
189 inline void SetRequestCharged(RequestCharged value) { m_requestChargedHasBeenSet = true; m_requestCharged = value; }
192
194
195 inline const Aws::String& GetRequestId() const { return m_requestId; }
196 template<typename RequestIdT = Aws::String>
197 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
198 template<typename RequestIdT = Aws::String>
199 ListObjectsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
201 private:
202
203 bool m_isTruncated{false};
204 bool m_isTruncatedHasBeenSet = false;
205
206 Aws::String m_marker;
207 bool m_markerHasBeenSet = false;
208
209 Aws::String m_nextMarker;
210 bool m_nextMarkerHasBeenSet = false;
211
212 Aws::Vector<Object> m_contents;
213 bool m_contentsHasBeenSet = false;
214
215 Aws::String m_name;
216 bool m_nameHasBeenSet = false;
217
218 Aws::String m_prefix;
219 bool m_prefixHasBeenSet = false;
220
221 Aws::String m_delimiter;
222 bool m_delimiterHasBeenSet = false;
223
224 int m_maxKeys{0};
225 bool m_maxKeysHasBeenSet = false;
226
227 Aws::Vector<CommonPrefix> m_commonPrefixes;
228 bool m_commonPrefixesHasBeenSet = false;
229
230 EncodingType m_encodingType{EncodingType::NOT_SET};
231 bool m_encodingTypeHasBeenSet = false;
232
233 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
234 bool m_requestChargedHasBeenSet = false;
235
236 Aws::String m_requestId;
237 bool m_requestIdHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace S3
242} // namespace Aws
const Aws::String & GetRequestId() const
ListObjectsResult & WithEncodingType(EncodingType value)
ListObjectsResult & AddCommonPrefixes(CommonPrefixesT &&value)
ListObjectsResult & WithMarker(MarkerT &&value)
const Aws::Vector< CommonPrefix > & GetCommonPrefixes() const
AWS_S3_API ListObjectsResult()=default
ListObjectsResult & WithName(NameT &&value)
void SetDelimiter(DelimiterT &&value)
ListObjectsResult & WithIsTruncated(bool value)
void SetCommonPrefixes(CommonPrefixesT &&value)
const Aws::String & GetDelimiter() const
const Aws::String & GetMarker() const
void SetEncodingType(EncodingType value)
const Aws::String & GetName() const
void SetContents(ContentsT &&value)
ListObjectsResult & WithDelimiter(DelimiterT &&value)
void SetRequestCharged(RequestCharged value)
ListObjectsResult & WithPrefix(PrefixT &&value)
ListObjectsResult & WithNextMarker(NextMarkerT &&value)
void SetNextMarker(NextMarkerT &&value)
const Aws::String & GetNextMarker() const
ListObjectsResult & WithMaxKeys(int value)
ListObjectsResult & WithRequestCharged(RequestCharged value)
void SetRequestId(RequestIdT &&value)
AWS_S3_API ListObjectsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListObjectsResult & AddContents(ContentsT &&value)
ListObjectsResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetPrefix() const
const Aws::Vector< Object > & GetContents() const
AWS_S3_API ListObjectsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListObjectsResult & WithCommonPrefixes(CommonPrefixesT &&value)
ListObjectsResult & WithContents(ContentsT &&value)
RequestCharged GetRequestCharged() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument