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>
18template<
typename RESULT_TYPE>
19class AmazonWebServiceResult;
46 inline void SetIsTruncated(
bool value) { m_isTruncatedHasBeenSet =
true; m_isTruncated = value; }
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>
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>
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>>
91 template<
typename ContentsT = Object>
92 ListObjectsResult&
AddContents(ContentsT&& value) { m_contentsHasBeenSet =
true; m_contents.emplace_back(std::forward<ContentsT>(value));
return *
this; }
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>
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>
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>
137 inline void SetMaxKeys(
int value) { m_maxKeysHasBeenSet =
true; m_maxKeys = value; }
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>>
160 template<
typename CommonPrefixesT = CommonPrefix>
161 ListObjectsResult&
AddCommonPrefixes(CommonPrefixesT&& value) { m_commonPrefixesHasBeenSet =
true; m_commonPrefixes.emplace_back(std::forward<CommonPrefixesT>(value));
return *
this; }
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>
203 bool m_isTruncated{
false};
204 bool m_isTruncatedHasBeenSet =
false;
207 bool m_markerHasBeenSet =
false;
210 bool m_nextMarkerHasBeenSet =
false;
213 bool m_contentsHasBeenSet =
false;
216 bool m_nameHasBeenSet =
false;
219 bool m_prefixHasBeenSet =
false;
222 bool m_delimiterHasBeenSet =
false;
225 bool m_maxKeysHasBeenSet =
false;
228 bool m_commonPrefixesHasBeenSet =
false;
231 bool m_encodingTypeHasBeenSet =
false;
234 bool m_requestChargedHasBeenSet =
false;
237 bool m_requestIdHasBeenSet =
false;
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)
EncodingType GetEncodingType() const
void SetCommonPrefixes(CommonPrefixesT &&value)
const Aws::String & GetDelimiter() const
void SetName(NameT &&value)
void SetMarker(MarkerT &&value)
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)
void SetIsTruncated(bool value)
ListObjectsResult & AddContents(ContentsT &&value)
ListObjectsResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetPrefix() const
void SetMaxKeys(int value)
const Aws::Vector< Object > & GetContents() const
AWS_S3_API ListObjectsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
bool GetIsTruncated() const
ListObjectsResult & WithCommonPrefixes(CommonPrefixesT &&value)
void SetPrefix(PrefixT &&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