AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SearchRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/FilterClause.h>
12#include <aws/datazone/model/InventorySearchScope.h>
13#include <aws/datazone/model/SearchSort.h>
14#include <aws/datazone/model/SearchOutputAdditionalAttribute.h>
15#include <aws/datazone/model/SearchInItem.h>
16#include <utility>
17
18namespace Aws
19{
20namespace DataZone
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_DATAZONE_API SearchRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "Search"; }
37
38 AWS_DATAZONE_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::Vector<SearchOutputAdditionalAttribute>& GetAdditionalAttributes() const { return m_additionalAttributes; }
46 inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; }
47 template<typename AdditionalAttributesT = Aws::Vector<SearchOutputAdditionalAttribute>>
48 void SetAdditionalAttributes(AdditionalAttributesT&& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes = std::forward<AdditionalAttributesT>(value); }
49 template<typename AdditionalAttributesT = Aws::Vector<SearchOutputAdditionalAttribute>>
50 SearchRequest& WithAdditionalAttributes(AdditionalAttributesT&& value) { SetAdditionalAttributes(std::forward<AdditionalAttributesT>(value)); return *this;}
51 inline SearchRequest& AddAdditionalAttributes(SearchOutputAdditionalAttribute value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes.push_back(value); return *this; }
53
55
58 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
59 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
60 template<typename DomainIdentifierT = Aws::String>
61 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
62 template<typename DomainIdentifierT = Aws::String>
63 SearchRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
65
67
70 inline const FilterClause& GetFilters() const { return m_filters; }
71 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
72 template<typename FiltersT = FilterClause>
73 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
74 template<typename FiltersT = FilterClause>
75 SearchRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
77
79
86 inline int GetMaxResults() const { return m_maxResults; }
87 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
88 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
89 inline SearchRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
91
93
101 inline const Aws::String& GetNextToken() const { return m_nextToken; }
102 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 template<typename NextTokenT = Aws::String>
104 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
105 template<typename NextTokenT = Aws::String>
106 SearchRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
108
110
113 inline const Aws::String& GetOwningProjectIdentifier() const { return m_owningProjectIdentifier; }
114 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
115 template<typename OwningProjectIdentifierT = Aws::String>
116 void SetOwningProjectIdentifier(OwningProjectIdentifierT&& value) { m_owningProjectIdentifierHasBeenSet = true; m_owningProjectIdentifier = std::forward<OwningProjectIdentifierT>(value); }
117 template<typename OwningProjectIdentifierT = Aws::String>
118 SearchRequest& WithOwningProjectIdentifier(OwningProjectIdentifierT&& value) { SetOwningProjectIdentifier(std::forward<OwningProjectIdentifierT>(value)); return *this;}
120
122
125 inline const Aws::Vector<SearchInItem>& GetSearchIn() const { return m_searchIn; }
126 inline bool SearchInHasBeenSet() const { return m_searchInHasBeenSet; }
127 template<typename SearchInT = Aws::Vector<SearchInItem>>
128 void SetSearchIn(SearchInT&& value) { m_searchInHasBeenSet = true; m_searchIn = std::forward<SearchInT>(value); }
129 template<typename SearchInT = Aws::Vector<SearchInItem>>
130 SearchRequest& WithSearchIn(SearchInT&& value) { SetSearchIn(std::forward<SearchInT>(value)); return *this;}
131 template<typename SearchInT = SearchInItem>
132 SearchRequest& AddSearchIn(SearchInT&& value) { m_searchInHasBeenSet = true; m_searchIn.emplace_back(std::forward<SearchInT>(value)); return *this; }
134
136
139 inline InventorySearchScope GetSearchScope() const { return m_searchScope; }
140 inline bool SearchScopeHasBeenSet() const { return m_searchScopeHasBeenSet; }
141 inline void SetSearchScope(InventorySearchScope value) { m_searchScopeHasBeenSet = true; m_searchScope = value; }
142 inline SearchRequest& WithSearchScope(InventorySearchScope value) { SetSearchScope(value); return *this;}
144
146
149 inline const Aws::String& GetSearchText() const { return m_searchText; }
150 inline bool SearchTextHasBeenSet() const { return m_searchTextHasBeenSet; }
151 template<typename SearchTextT = Aws::String>
152 void SetSearchText(SearchTextT&& value) { m_searchTextHasBeenSet = true; m_searchText = std::forward<SearchTextT>(value); }
153 template<typename SearchTextT = Aws::String>
154 SearchRequest& WithSearchText(SearchTextT&& value) { SetSearchText(std::forward<SearchTextT>(value)); return *this;}
156
158
161 inline const SearchSort& GetSort() const { return m_sort; }
162 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
163 template<typename SortT = SearchSort>
164 void SetSort(SortT&& value) { m_sortHasBeenSet = true; m_sort = std::forward<SortT>(value); }
165 template<typename SortT = SearchSort>
166 SearchRequest& WithSort(SortT&& value) { SetSort(std::forward<SortT>(value)); return *this;}
168 private:
169
171 bool m_additionalAttributesHasBeenSet = false;
172
173 Aws::String m_domainIdentifier;
174 bool m_domainIdentifierHasBeenSet = false;
175
176 FilterClause m_filters;
177 bool m_filtersHasBeenSet = false;
178
179 int m_maxResults{0};
180 bool m_maxResultsHasBeenSet = false;
181
182 Aws::String m_nextToken;
183 bool m_nextTokenHasBeenSet = false;
184
185 Aws::String m_owningProjectIdentifier;
186 bool m_owningProjectIdentifierHasBeenSet = false;
187
188 Aws::Vector<SearchInItem> m_searchIn;
189 bool m_searchInHasBeenSet = false;
190
192 bool m_searchScopeHasBeenSet = false;
193
194 Aws::String m_searchText;
195 bool m_searchTextHasBeenSet = false;
196
197 SearchSort m_sort;
198 bool m_sortHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace DataZone
203} // 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