AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
SearchListingsResult.h
1
6#pragma once
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>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace DataZone {
26namespace Model {
28 public:
29 AWS_DATAZONE_API SearchListingsResult() = default;
32
34
37 inline const Aws::Vector<SearchResultItem>& GetItems() const { return m_items; }
38 template <typename ItemsT = Aws::Vector<SearchResultItem>>
39 void SetItems(ItemsT&& value) {
40 m_itemsHasBeenSet = true;
41 m_items = std::forward<ItemsT>(value);
42 }
43 template <typename ItemsT = Aws::Vector<SearchResultItem>>
45 SetItems(std::forward<ItemsT>(value));
46 return *this;
47 }
48 template <typename ItemsT = SearchResultItem>
49 SearchListingsResult& AddItems(ItemsT&& value) {
50 m_itemsHasBeenSet = true;
51 m_items.emplace_back(std::forward<ItemsT>(value));
52 return *this;
53 }
55
57
65 inline const Aws::String& GetNextToken() const { return m_nextToken; }
66 template <typename NextTokenT = Aws::String>
67 void SetNextToken(NextTokenT&& value) {
68 m_nextTokenHasBeenSet = true;
69 m_nextToken = std::forward<NextTokenT>(value);
70 }
71 template <typename NextTokenT = Aws::String>
72 SearchListingsResult& WithNextToken(NextTokenT&& value) {
73 SetNextToken(std::forward<NextTokenT>(value));
74 return *this;
75 }
77
79
82 inline int GetTotalMatchCount() const { return m_totalMatchCount; }
83 inline void SetTotalMatchCount(int value) {
84 m_totalMatchCountHasBeenSet = true;
85 m_totalMatchCount = value;
86 }
88 SetTotalMatchCount(value);
89 return *this;
90 }
92
94
98 inline const Aws::Vector<AggregationOutput>& GetAggregates() const { return m_aggregates; }
99 template <typename AggregatesT = Aws::Vector<AggregationOutput>>
100 void SetAggregates(AggregatesT&& value) {
101 m_aggregatesHasBeenSet = true;
102 m_aggregates = std::forward<AggregatesT>(value);
103 }
104 template <typename AggregatesT = Aws::Vector<AggregationOutput>>
105 SearchListingsResult& WithAggregates(AggregatesT&& value) {
106 SetAggregates(std::forward<AggregatesT>(value));
107 return *this;
108 }
109 template <typename AggregatesT = AggregationOutput>
110 SearchListingsResult& AddAggregates(AggregatesT&& value) {
111 m_aggregatesHasBeenSet = true;
112 m_aggregates.emplace_back(std::forward<AggregatesT>(value));
113 return *this;
114 }
116
118
119 inline const Aws::String& GetRequestId() const { return m_requestId; }
120 template <typename RequestIdT = Aws::String>
121 void SetRequestId(RequestIdT&& value) {
122 m_requestIdHasBeenSet = true;
123 m_requestId = std::forward<RequestIdT>(value);
124 }
125 template <typename RequestIdT = Aws::String>
126 SearchListingsResult& WithRequestId(RequestIdT&& value) {
127 SetRequestId(std::forward<RequestIdT>(value));
128 return *this;
129 }
131 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
132
133 private:
135
136 Aws::String m_nextToken;
137
138 int m_totalMatchCount{0};
139
141
142 Aws::String m_requestId;
143 Aws::Http::HttpResponseCode m_HttpResponseCode;
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;
149};
150
151} // namespace Model
152} // namespace DataZone
153} // namespace Aws
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)
SearchListingsResult & AddAggregates(AggregatesT &&value)
const Aws::Vector< SearchResultItem > & GetItems() const
SearchListingsResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< AggregationOutput > & GetAggregates() const
AWS_DATAZONE_API SearchListingsResult()=default
SearchListingsResult & AddItems(ItemsT &&value)
SearchListingsResult & WithRequestId(RequestIdT &&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