AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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::String& GetDomainIdentifier() const { return m_domainIdentifier; }
42 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
43 template <typename DomainIdentifierT = Aws::String>
44 void SetDomainIdentifier(DomainIdentifierT&& value) {
45 m_domainIdentifierHasBeenSet = true;
46 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
47 }
48 template <typename DomainIdentifierT = Aws::String>
49 SearchListingsRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
50 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSearchText() const { return m_searchText; }
60 inline bool SearchTextHasBeenSet() const { return m_searchTextHasBeenSet; }
61 template <typename SearchTextT = Aws::String>
62 void SetSearchText(SearchTextT&& value) {
63 m_searchTextHasBeenSet = true;
64 m_searchText = std::forward<SearchTextT>(value);
65 }
66 template <typename SearchTextT = Aws::String>
67 SearchListingsRequest& WithSearchText(SearchTextT&& value) {
68 SetSearchText(std::forward<SearchTextT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<SearchInItem>& GetSearchIn() const { return m_searchIn; }
78 inline bool SearchInHasBeenSet() const { return m_searchInHasBeenSet; }
79 template <typename SearchInT = Aws::Vector<SearchInItem>>
80 void SetSearchIn(SearchInT&& value) {
81 m_searchInHasBeenSet = true;
82 m_searchIn = std::forward<SearchInT>(value);
83 }
84 template <typename SearchInT = Aws::Vector<SearchInItem>>
85 SearchListingsRequest& WithSearchIn(SearchInT&& value) {
86 SetSearchIn(std::forward<SearchInT>(value));
87 return *this;
88 }
89 template <typename SearchInT = SearchInItem>
90 SearchListingsRequest& AddSearchIn(SearchInT&& value) {
91 m_searchInHasBeenSet = true;
92 m_searchIn.emplace_back(std::forward<SearchInT>(value));
93 return *this;
94 }
96
98
105 inline int GetMaxResults() const { return m_maxResults; }
106 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 inline void SetMaxResults(int value) {
108 m_maxResultsHasBeenSet = true;
109 m_maxResults = value;
110 }
112 SetMaxResults(value);
113 return *this;
114 }
116
118
126 inline const Aws::String& GetNextToken() const { return m_nextToken; }
127 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
128 template <typename NextTokenT = Aws::String>
129 void SetNextToken(NextTokenT&& value) {
130 m_nextTokenHasBeenSet = true;
131 m_nextToken = std::forward<NextTokenT>(value);
132 }
133 template <typename NextTokenT = Aws::String>
135 SetNextToken(std::forward<NextTokenT>(value));
136 return *this;
137 }
139
141
144 inline const FilterClause& GetFilters() const { return m_filters; }
145 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
146 template <typename FiltersT = FilterClause>
147 void SetFilters(FiltersT&& value) {
148 m_filtersHasBeenSet = true;
149 m_filters = std::forward<FiltersT>(value);
150 }
151 template <typename FiltersT = FilterClause>
153 SetFilters(std::forward<FiltersT>(value));
154 return *this;
155 }
157
159
163 inline const Aws::Vector<AggregationListItem>& GetAggregations() const { return m_aggregations; }
164 inline bool AggregationsHasBeenSet() const { return m_aggregationsHasBeenSet; }
165 template <typename AggregationsT = Aws::Vector<AggregationListItem>>
166 void SetAggregations(AggregationsT&& value) {
167 m_aggregationsHasBeenSet = true;
168 m_aggregations = std::forward<AggregationsT>(value);
169 }
170 template <typename AggregationsT = Aws::Vector<AggregationListItem>>
171 SearchListingsRequest& WithAggregations(AggregationsT&& value) {
172 SetAggregations(std::forward<AggregationsT>(value));
173 return *this;
174 }
175 template <typename AggregationsT = AggregationListItem>
176 SearchListingsRequest& AddAggregations(AggregationsT&& value) {
177 m_aggregationsHasBeenSet = true;
178 m_aggregations.emplace_back(std::forward<AggregationsT>(value));
179 return *this;
180 }
182
184
187 inline const SearchSort& GetSort() const { return m_sort; }
188 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
189 template <typename SortT = SearchSort>
190 void SetSort(SortT&& value) {
191 m_sortHasBeenSet = true;
192 m_sort = std::forward<SortT>(value);
193 }
194 template <typename SortT = SearchSort>
196 SetSort(std::forward<SortT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::Vector<SearchOutputAdditionalAttribute>& GetAdditionalAttributes() const { return m_additionalAttributes; }
206 inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; }
207 template <typename AdditionalAttributesT = Aws::Vector<SearchOutputAdditionalAttribute>>
208 void SetAdditionalAttributes(AdditionalAttributesT&& value) {
209 m_additionalAttributesHasBeenSet = true;
210 m_additionalAttributes = std::forward<AdditionalAttributesT>(value);
211 }
212 template <typename AdditionalAttributesT = Aws::Vector<SearchOutputAdditionalAttribute>>
213 SearchListingsRequest& WithAdditionalAttributes(AdditionalAttributesT&& value) {
214 SetAdditionalAttributes(std::forward<AdditionalAttributesT>(value));
215 return *this;
216 }
218 m_additionalAttributesHasBeenSet = true;
219 m_additionalAttributes.push_back(value);
220 return *this;
221 }
223 private:
224 Aws::String m_domainIdentifier;
225
226 Aws::String m_searchText;
227
228 Aws::Vector<SearchInItem> m_searchIn;
229
230 int m_maxResults{0};
231
232 Aws::String m_nextToken;
233
234 FilterClause m_filters;
235
237
238 SearchSort m_sort;
239
241 bool m_domainIdentifierHasBeenSet = false;
242 bool m_searchTextHasBeenSet = false;
243 bool m_searchInHasBeenSet = false;
244 bool m_maxResultsHasBeenSet = false;
245 bool m_nextTokenHasBeenSet = false;
246 bool m_filtersHasBeenSet = false;
247 bool m_aggregationsHasBeenSet = false;
248 bool m_sortHasBeenSet = false;
249 bool m_additionalAttributesHasBeenSet = 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