7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/AggregationOutput.h>
12#include <aws/datazone/model/SearchResultItem.h>
17template <
typename RESULT_TYPE>
18class AmazonWebServiceResult;
38 template <
typename ItemsT = Aws::Vector<SearchResultItem>>
40 m_itemsHasBeenSet =
true;
41 m_items = std::forward<ItemsT>(value);
43 template <
typename ItemsT = Aws::Vector<SearchResultItem>>
45 SetItems(std::forward<ItemsT>(value));
48 template <
typename ItemsT = SearchResultItem>
50 m_itemsHasBeenSet =
true;
51 m_items.emplace_back(std::forward<ItemsT>(value));
66 template <
typename NextTokenT = Aws::String>
68 m_nextTokenHasBeenSet =
true;
69 m_nextToken = std::forward<NextTokenT>(value);
71 template <
typename NextTokenT = Aws::String>
84 m_totalMatchCountHasBeenSet =
true;
85 m_totalMatchCount = value;
99 template <
typename AggregatesT = Aws::Vector<AggregationOutput>>
101 m_aggregatesHasBeenSet =
true;
102 m_aggregates = std::forward<AggregatesT>(value);
104 template <
typename AggregatesT = Aws::Vector<AggregationOutput>>
109 template <
typename AggregatesT = AggregationOutput>
111 m_aggregatesHasBeenSet =
true;
112 m_aggregates.emplace_back(std::forward<AggregatesT>(value));
120 template <
typename RequestIdT = Aws::String>
122 m_requestIdHasBeenSet =
true;
123 m_requestId = std::forward<RequestIdT>(value);
125 template <
typename RequestIdT = Aws::String>
138 int m_totalMatchCount{0};
144 bool m_itemsHasBeenSet =
false;
145 bool m_nextTokenHasBeenSet =
false;
146 bool m_totalMatchCountHasBeenSet =
false;
147 bool m_aggregatesHasBeenSet =
false;
148 bool m_requestIdHasBeenSet =
false;
const Aws::String & GetRequestId() const
SearchListingsResult & WithAggregates(AggregatesT &&value)
SearchListingsResult & WithItems(ItemsT &&value)
SearchListingsResult & WithTotalMatchCount(int value)
AWS_DATAZONE_API SearchListingsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetNextToken(NextTokenT &&value)
SearchListingsResult & AddAggregates(AggregatesT &&value)
const Aws::Vector< SearchResultItem > & GetItems() const
int GetTotalMatchCount() const
SearchListingsResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< AggregationOutput > & GetAggregates() const
AWS_DATAZONE_API SearchListingsResult()=default
void SetAggregates(AggregatesT &&value)
void SetRequestId(RequestIdT &&value)
SearchListingsResult & AddItems(ItemsT &&value)
void SetItems(ItemsT &&value)
const Aws::String & GetNextToken() const
SearchListingsResult & WithRequestId(RequestIdT &&value)
void SetTotalMatchCount(int value)
AWS_DATAZONE_API SearchListingsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue