AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SearchRequest.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/FilterClause.h>
12#include <aws/datazone/model/InventorySearchScope.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 SearchRequest() = 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 "Search"; }
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 SearchRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
50 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetOwningProjectIdentifier() const { return m_owningProjectIdentifier; }
60 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
61 template <typename OwningProjectIdentifierT = Aws::String>
62 void SetOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
63 m_owningProjectIdentifierHasBeenSet = true;
64 m_owningProjectIdentifier = std::forward<OwningProjectIdentifierT>(value);
65 }
66 template <typename OwningProjectIdentifierT = Aws::String>
67 SearchRequest& WithOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
68 SetOwningProjectIdentifier(std::forward<OwningProjectIdentifierT>(value));
69 return *this;
70 }
72
74
81 inline int GetMaxResults() const { return m_maxResults; }
82 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
83 inline void SetMaxResults(int value) {
84 m_maxResultsHasBeenSet = true;
85 m_maxResults = value;
86 }
87 inline SearchRequest& WithMaxResults(int value) {
88 SetMaxResults(value);
89 return *this;
90 }
92
94
102 inline const Aws::String& GetNextToken() const { return m_nextToken; }
103 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
104 template <typename NextTokenT = Aws::String>
105 void SetNextToken(NextTokenT&& value) {
106 m_nextTokenHasBeenSet = true;
107 m_nextToken = std::forward<NextTokenT>(value);
108 }
109 template <typename NextTokenT = Aws::String>
110 SearchRequest& WithNextToken(NextTokenT&& value) {
111 SetNextToken(std::forward<NextTokenT>(value));
112 return *this;
113 }
115
117
120 inline InventorySearchScope GetSearchScope() const { return m_searchScope; }
121 inline bool SearchScopeHasBeenSet() const { return m_searchScopeHasBeenSet; }
123 m_searchScopeHasBeenSet = true;
124 m_searchScope = value;
125 }
127 SetSearchScope(value);
128 return *this;
129 }
131
133
136 inline const Aws::String& GetSearchText() const { return m_searchText; }
137 inline bool SearchTextHasBeenSet() const { return m_searchTextHasBeenSet; }
138 template <typename SearchTextT = Aws::String>
139 void SetSearchText(SearchTextT&& value) {
140 m_searchTextHasBeenSet = true;
141 m_searchText = std::forward<SearchTextT>(value);
142 }
143 template <typename SearchTextT = Aws::String>
144 SearchRequest& WithSearchText(SearchTextT&& value) {
145 SetSearchText(std::forward<SearchTextT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Vector<SearchInItem>& GetSearchIn() const { return m_searchIn; }
155 inline bool SearchInHasBeenSet() const { return m_searchInHasBeenSet; }
156 template <typename SearchInT = Aws::Vector<SearchInItem>>
157 void SetSearchIn(SearchInT&& value) {
158 m_searchInHasBeenSet = true;
159 m_searchIn = std::forward<SearchInT>(value);
160 }
161 template <typename SearchInT = Aws::Vector<SearchInItem>>
162 SearchRequest& WithSearchIn(SearchInT&& value) {
163 SetSearchIn(std::forward<SearchInT>(value));
164 return *this;
165 }
166 template <typename SearchInT = SearchInItem>
167 SearchRequest& AddSearchIn(SearchInT&& value) {
168 m_searchInHasBeenSet = true;
169 m_searchIn.emplace_back(std::forward<SearchInT>(value));
170 return *this;
171 }
173
175
178 inline const FilterClause& GetFilters() const { return m_filters; }
179 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
180 template <typename FiltersT = FilterClause>
181 void SetFilters(FiltersT&& value) {
182 m_filtersHasBeenSet = true;
183 m_filters = std::forward<FiltersT>(value);
184 }
185 template <typename FiltersT = FilterClause>
186 SearchRequest& WithFilters(FiltersT&& value) {
187 SetFilters(std::forward<FiltersT>(value));
188 return *this;
189 }
191
193
196 inline const SearchSort& GetSort() const { return m_sort; }
197 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
198 template <typename SortT = SearchSort>
199 void SetSort(SortT&& value) {
200 m_sortHasBeenSet = true;
201 m_sort = std::forward<SortT>(value);
202 }
203 template <typename SortT = SearchSort>
204 SearchRequest& WithSort(SortT&& value) {
205 SetSort(std::forward<SortT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Vector<SearchOutputAdditionalAttribute>& GetAdditionalAttributes() const { return m_additionalAttributes; }
215 inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; }
216 template <typename AdditionalAttributesT = Aws::Vector<SearchOutputAdditionalAttribute>>
217 void SetAdditionalAttributes(AdditionalAttributesT&& value) {
218 m_additionalAttributesHasBeenSet = true;
219 m_additionalAttributes = std::forward<AdditionalAttributesT>(value);
220 }
221 template <typename AdditionalAttributesT = Aws::Vector<SearchOutputAdditionalAttribute>>
222 SearchRequest& WithAdditionalAttributes(AdditionalAttributesT&& value) {
223 SetAdditionalAttributes(std::forward<AdditionalAttributesT>(value));
224 return *this;
225 }
227 m_additionalAttributesHasBeenSet = true;
228 m_additionalAttributes.push_back(value);
229 return *this;
230 }
232 private:
233 Aws::String m_domainIdentifier;
234
235 Aws::String m_owningProjectIdentifier;
236
237 int m_maxResults{0};
238
239 Aws::String m_nextToken;
240
242
243 Aws::String m_searchText;
244
245 Aws::Vector<SearchInItem> m_searchIn;
246
247 FilterClause m_filters;
248
249 SearchSort m_sort;
250
252 bool m_domainIdentifierHasBeenSet = false;
253 bool m_owningProjectIdentifierHasBeenSet = false;
254 bool m_maxResultsHasBeenSet = false;
255 bool m_nextTokenHasBeenSet = false;
256 bool m_searchScopeHasBeenSet = false;
257 bool m_searchTextHasBeenSet = false;
258 bool m_searchInHasBeenSet = false;
259 bool m_filtersHasBeenSet = false;
260 bool m_sortHasBeenSet = false;
261 bool m_additionalAttributesHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace DataZone
266} // namespace Aws
const Aws::Vector< SearchInItem > & GetSearchIn() const
const Aws::String & GetOwningProjectIdentifier() const
InventorySearchScope GetSearchScope() const
virtual const char * GetServiceRequestName() const override
AWS_DATAZONE_API Aws::String SerializePayload() const override
SearchRequest & WithSort(SortT &&value)
SearchRequest & WithSearchText(SearchTextT &&value)
void SetFilters(FiltersT &&value)
void SetDomainIdentifier(DomainIdentifierT &&value)
const Aws::String & GetDomainIdentifier() const
SearchRequest & WithAdditionalAttributes(AdditionalAttributesT &&value)
SearchRequest & WithDomainIdentifier(DomainIdentifierT &&value)
const Aws::String & GetSearchText() const
void SetSearchIn(SearchInT &&value)
SearchRequest & WithFilters(FiltersT &&value)
SearchRequest & WithSearchIn(SearchInT &&value)
void SetAdditionalAttributes(AdditionalAttributesT &&value)
SearchRequest & WithSearchScope(InventorySearchScope value)
const FilterClause & GetFilters() const
void SetSearchText(SearchTextT &&value)
void SetOwningProjectIdentifier(OwningProjectIdentifierT &&value)
void SetSearchScope(InventorySearchScope value)
SearchRequest & AddAdditionalAttributes(SearchOutputAdditionalAttribute value)
const Aws::String & GetNextToken() const
SearchRequest & WithOwningProjectIdentifier(OwningProjectIdentifierT &&value)
SearchRequest & AddSearchIn(SearchInT &&value)
const SearchSort & GetSort() const
void SetNextToken(NextTokenT &&value)
const Aws::Vector< SearchOutputAdditionalAttribute > & GetAdditionalAttributes() const
AWS_DATAZONE_API SearchRequest()=default
SearchRequest & WithNextToken(NextTokenT &&value)
SearchRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector