AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
SearchListingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/AggregationListItem.h>
12#include <aws/datazone/model/FilterClause.h>
13#include <aws/datazone/model/SearchInItem.h>
14#include <aws/datazone/model/SearchOutputAdditionalAttribute.h>
15#include <aws/datazone/model/SearchSort.h>
16
17#include <utility>
18
19namespace Aws {
20namespace DataZone {
21namespace Model {
22
26 public:
27 AWS_DATAZONE_API SearchListingsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "SearchListings"; }
34
35 AWS_DATAZONE_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::Vector<SearchOutputAdditionalAttribute>& GetAdditionalAttributes() const { return m_additionalAttributes; }
42 inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; }
43 template <typename AdditionalAttributesT = Aws::Vector<SearchOutputAdditionalAttribute>>
44 void SetAdditionalAttributes(AdditionalAttributesT&& value) {
45 m_additionalAttributesHasBeenSet = true;
46 m_additionalAttributes = std::forward<AdditionalAttributesT>(value);
47 }
48 template <typename AdditionalAttributesT = Aws::Vector<SearchOutputAdditionalAttribute>>
49 SearchListingsRequest& WithAdditionalAttributes(AdditionalAttributesT&& value) {
50 SetAdditionalAttributes(std::forward<AdditionalAttributesT>(value));
51 return *this;
52 }
54 m_additionalAttributesHasBeenSet = true;
55 m_additionalAttributes.push_back(value);
56 return *this;
57 }
59
61
65 inline const Aws::Vector<AggregationListItem>& GetAggregations() const { return m_aggregations; }
66 inline bool AggregationsHasBeenSet() const { return m_aggregationsHasBeenSet; }
67 template <typename AggregationsT = Aws::Vector<AggregationListItem>>
68 void SetAggregations(AggregationsT&& value) {
69 m_aggregationsHasBeenSet = true;
70 m_aggregations = std::forward<AggregationsT>(value);
71 }
72 template <typename AggregationsT = Aws::Vector<AggregationListItem>>
73 SearchListingsRequest& WithAggregations(AggregationsT&& value) {
74 SetAggregations(std::forward<AggregationsT>(value));
75 return *this;
76 }
77 template <typename AggregationsT = AggregationListItem>
78 SearchListingsRequest& AddAggregations(AggregationsT&& value) {
79 m_aggregationsHasBeenSet = true;
80 m_aggregations.emplace_back(std::forward<AggregationsT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
90 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
91 template <typename DomainIdentifierT = Aws::String>
92 void SetDomainIdentifier(DomainIdentifierT&& value) {
93 m_domainIdentifierHasBeenSet = true;
94 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
95 }
96 template <typename DomainIdentifierT = Aws::String>
97 SearchListingsRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
98 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
99 return *this;
100 }
102
104
107 inline const FilterClause& GetFilters() const { return m_filters; }
108 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
109 template <typename FiltersT = FilterClause>
110 void SetFilters(FiltersT&& value) {
111 m_filtersHasBeenSet = true;
112 m_filters = std::forward<FiltersT>(value);
113 }
114 template <typename FiltersT = FilterClause>
116 SetFilters(std::forward<FiltersT>(value));
117 return *this;
118 }
120
122
129 inline int GetMaxResults() const { return m_maxResults; }
130 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
131 inline void SetMaxResults(int value) {
132 m_maxResultsHasBeenSet = true;
133 m_maxResults = value;
134 }
136 SetMaxResults(value);
137 return *this;
138 }
140
142
150 inline const Aws::String& GetNextToken() const { return m_nextToken; }
151 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
152 template <typename NextTokenT = Aws::String>
153 void SetNextToken(NextTokenT&& value) {
154 m_nextTokenHasBeenSet = true;
155 m_nextToken = std::forward<NextTokenT>(value);
156 }
157 template <typename NextTokenT = Aws::String>
159 SetNextToken(std::forward<NextTokenT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Vector<SearchInItem>& GetSearchIn() const { return m_searchIn; }
169 inline bool SearchInHasBeenSet() const { return m_searchInHasBeenSet; }
170 template <typename SearchInT = Aws::Vector<SearchInItem>>
171 void SetSearchIn(SearchInT&& value) {
172 m_searchInHasBeenSet = true;
173 m_searchIn = std::forward<SearchInT>(value);
174 }
175 template <typename SearchInT = Aws::Vector<SearchInItem>>
177 SetSearchIn(std::forward<SearchInT>(value));
178 return *this;
179 }
180 template <typename SearchInT = SearchInItem>
181 SearchListingsRequest& AddSearchIn(SearchInT&& value) {
182 m_searchInHasBeenSet = true;
183 m_searchIn.emplace_back(std::forward<SearchInT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::String& GetSearchText() const { return m_searchText; }
193 inline bool SearchTextHasBeenSet() const { return m_searchTextHasBeenSet; }
194 template <typename SearchTextT = Aws::String>
195 void SetSearchText(SearchTextT&& value) {
196 m_searchTextHasBeenSet = true;
197 m_searchText = std::forward<SearchTextT>(value);
198 }
199 template <typename SearchTextT = Aws::String>
200 SearchListingsRequest& WithSearchText(SearchTextT&& value) {
201 SetSearchText(std::forward<SearchTextT>(value));
202 return *this;
203 }
205
207
210 inline const SearchSort& GetSort() const { return m_sort; }
211 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
212 template <typename SortT = SearchSort>
213 void SetSort(SortT&& value) {
214 m_sortHasBeenSet = true;
215 m_sort = std::forward<SortT>(value);
216 }
217 template <typename SortT = SearchSort>
219 SetSort(std::forward<SortT>(value));
220 return *this;
221 }
223 private:
225 bool m_additionalAttributesHasBeenSet = false;
226
228 bool m_aggregationsHasBeenSet = false;
229
230 Aws::String m_domainIdentifier;
231 bool m_domainIdentifierHasBeenSet = false;
232
233 FilterClause m_filters;
234 bool m_filtersHasBeenSet = false;
235
236 int m_maxResults{0};
237 bool m_maxResultsHasBeenSet = false;
238
239 Aws::String m_nextToken;
240 bool m_nextTokenHasBeenSet = false;
241
242 Aws::Vector<SearchInItem> m_searchIn;
243 bool m_searchInHasBeenSet = false;
244
245 Aws::String m_searchText;
246 bool m_searchTextHasBeenSet = false;
247
248 SearchSort m_sort;
249 bool m_sortHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace DataZone
254} // namespace Aws
SearchListingsRequest & WithNextToken(NextTokenT &&value)
SearchListingsRequest & AddAggregations(AggregationsT &&value)
const Aws::Vector< SearchOutputAdditionalAttribute > & GetAdditionalAttributes() const
SearchListingsRequest & WithFilters(FiltersT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
SearchListingsRequest & WithAdditionalAttributes(AdditionalAttributesT &&value)
SearchListingsRequest & WithMaxResults(int value)
SearchListingsRequest & AddAdditionalAttributes(SearchOutputAdditionalAttribute value)
SearchListingsRequest & AddSearchIn(SearchInT &&value)
SearchListingsRequest & WithSearchText(SearchTextT &&value)
SearchListingsRequest & WithSearchIn(SearchInT &&value)
void SetDomainIdentifier(DomainIdentifierT &&value)
const Aws::Vector< AggregationListItem > & GetAggregations() const
AWS_DATAZONE_API SearchListingsRequest()=default
const Aws::Vector< SearchInItem > & GetSearchIn() const
virtual const char * GetServiceRequestName() const override
void SetAdditionalAttributes(AdditionalAttributesT &&value)
SearchListingsRequest & WithDomainIdentifier(DomainIdentifierT &&value)
SearchListingsRequest & WithAggregations(AggregationsT &&value)
SearchListingsRequest & WithSort(SortT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector