AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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::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 SearchRequest& 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
64 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
65 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
66 template <typename DomainIdentifierT = Aws::String>
67 void SetDomainIdentifier(DomainIdentifierT&& value) {
68 m_domainIdentifierHasBeenSet = true;
69 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
70 }
71 template <typename DomainIdentifierT = Aws::String>
72 SearchRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
73 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
74 return *this;
75 }
77
79
82 inline const FilterClause& GetFilters() const { return m_filters; }
83 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
84 template <typename FiltersT = FilterClause>
85 void SetFilters(FiltersT&& value) {
86 m_filtersHasBeenSet = true;
87 m_filters = std::forward<FiltersT>(value);
88 }
89 template <typename FiltersT = FilterClause>
90 SearchRequest& WithFilters(FiltersT&& value) {
91 SetFilters(std::forward<FiltersT>(value));
92 return *this;
93 }
95
97
104 inline int GetMaxResults() const { return m_maxResults; }
105 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
106 inline void SetMaxResults(int value) {
107 m_maxResultsHasBeenSet = true;
108 m_maxResults = value;
109 }
110 inline SearchRequest& WithMaxResults(int value) {
111 SetMaxResults(value);
112 return *this;
113 }
115
117
125 inline const Aws::String& GetNextToken() const { return m_nextToken; }
126 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
127 template <typename NextTokenT = Aws::String>
128 void SetNextToken(NextTokenT&& value) {
129 m_nextTokenHasBeenSet = true;
130 m_nextToken = std::forward<NextTokenT>(value);
131 }
132 template <typename NextTokenT = Aws::String>
133 SearchRequest& WithNextToken(NextTokenT&& value) {
134 SetNextToken(std::forward<NextTokenT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetOwningProjectIdentifier() const { return m_owningProjectIdentifier; }
144 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
145 template <typename OwningProjectIdentifierT = Aws::String>
146 void SetOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
147 m_owningProjectIdentifierHasBeenSet = true;
148 m_owningProjectIdentifier = std::forward<OwningProjectIdentifierT>(value);
149 }
150 template <typename OwningProjectIdentifierT = Aws::String>
151 SearchRequest& WithOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
152 SetOwningProjectIdentifier(std::forward<OwningProjectIdentifierT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Vector<SearchInItem>& GetSearchIn() const { return m_searchIn; }
162 inline bool SearchInHasBeenSet() const { return m_searchInHasBeenSet; }
163 template <typename SearchInT = Aws::Vector<SearchInItem>>
164 void SetSearchIn(SearchInT&& value) {
165 m_searchInHasBeenSet = true;
166 m_searchIn = std::forward<SearchInT>(value);
167 }
168 template <typename SearchInT = Aws::Vector<SearchInItem>>
169 SearchRequest& WithSearchIn(SearchInT&& value) {
170 SetSearchIn(std::forward<SearchInT>(value));
171 return *this;
172 }
173 template <typename SearchInT = SearchInItem>
174 SearchRequest& AddSearchIn(SearchInT&& value) {
175 m_searchInHasBeenSet = true;
176 m_searchIn.emplace_back(std::forward<SearchInT>(value));
177 return *this;
178 }
180
182
185 inline InventorySearchScope GetSearchScope() const { return m_searchScope; }
186 inline bool SearchScopeHasBeenSet() const { return m_searchScopeHasBeenSet; }
188 m_searchScopeHasBeenSet = true;
189 m_searchScope = value;
190 }
192 SetSearchScope(value);
193 return *this;
194 }
196
198
201 inline const Aws::String& GetSearchText() const { return m_searchText; }
202 inline bool SearchTextHasBeenSet() const { return m_searchTextHasBeenSet; }
203 template <typename SearchTextT = Aws::String>
204 void SetSearchText(SearchTextT&& value) {
205 m_searchTextHasBeenSet = true;
206 m_searchText = std::forward<SearchTextT>(value);
207 }
208 template <typename SearchTextT = Aws::String>
209 SearchRequest& WithSearchText(SearchTextT&& value) {
210 SetSearchText(std::forward<SearchTextT>(value));
211 return *this;
212 }
214
216
219 inline const SearchSort& GetSort() const { return m_sort; }
220 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
221 template <typename SortT = SearchSort>
222 void SetSort(SortT&& value) {
223 m_sortHasBeenSet = true;
224 m_sort = std::forward<SortT>(value);
225 }
226 template <typename SortT = SearchSort>
227 SearchRequest& WithSort(SortT&& value) {
228 SetSort(std::forward<SortT>(value));
229 return *this;
230 }
232 private:
234 bool m_additionalAttributesHasBeenSet = false;
235
236 Aws::String m_domainIdentifier;
237 bool m_domainIdentifierHasBeenSet = false;
238
239 FilterClause m_filters;
240 bool m_filtersHasBeenSet = false;
241
242 int m_maxResults{0};
243 bool m_maxResultsHasBeenSet = false;
244
245 Aws::String m_nextToken;
246 bool m_nextTokenHasBeenSet = false;
247
248 Aws::String m_owningProjectIdentifier;
249 bool m_owningProjectIdentifierHasBeenSet = false;
250
251 Aws::Vector<SearchInItem> m_searchIn;
252 bool m_searchInHasBeenSet = false;
253
255 bool m_searchScopeHasBeenSet = false;
256
257 Aws::String m_searchText;
258 bool m_searchTextHasBeenSet = false;
259
260 SearchSort m_sort;
261 bool m_sortHasBeenSet = 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