AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAdditionalAttributes(const Aws::Vector<SearchOutputAdditionalAttribute>& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes = value; }
48 inline void SetAdditionalAttributes(Aws::Vector<SearchOutputAdditionalAttribute>&& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes = std::move(value); }
51 inline SearchRequest& AddAdditionalAttributes(const SearchOutputAdditionalAttribute& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes.push_back(value); return *this; }
52 inline SearchRequest& AddAdditionalAttributes(SearchOutputAdditionalAttribute&& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes.push_back(std::move(value)); return *this; }
54
56
59 inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; }
60 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
61 inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; }
62 inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); }
63 inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); }
64 inline SearchRequest& WithDomainIdentifier(const Aws::String& value) { SetDomainIdentifier(value); return *this;}
65 inline SearchRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;}
66 inline SearchRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;}
68
70
73 inline const FilterClause& GetFilters() const{ return m_filters; }
74 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
75 inline void SetFilters(const FilterClause& value) { m_filtersHasBeenSet = true; m_filters = value; }
76 inline void SetFilters(FilterClause&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
77 inline SearchRequest& WithFilters(const FilterClause& value) { SetFilters(value); return *this;}
78 inline SearchRequest& WithFilters(FilterClause&& value) { SetFilters(std::move(value)); return *this;}
80
82
89 inline int GetMaxResults() const{ return m_maxResults; }
90 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
91 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
92 inline SearchRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
94
96
104 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
105 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
106 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
107 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
108 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
109 inline SearchRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
110 inline SearchRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
111 inline SearchRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
113
115
118 inline const Aws::String& GetOwningProjectIdentifier() const{ return m_owningProjectIdentifier; }
119 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
120 inline void SetOwningProjectIdentifier(const Aws::String& value) { m_owningProjectIdentifierHasBeenSet = true; m_owningProjectIdentifier = value; }
121 inline void SetOwningProjectIdentifier(Aws::String&& value) { m_owningProjectIdentifierHasBeenSet = true; m_owningProjectIdentifier = std::move(value); }
122 inline void SetOwningProjectIdentifier(const char* value) { m_owningProjectIdentifierHasBeenSet = true; m_owningProjectIdentifier.assign(value); }
124 inline SearchRequest& WithOwningProjectIdentifier(Aws::String&& value) { SetOwningProjectIdentifier(std::move(value)); return *this;}
125 inline SearchRequest& WithOwningProjectIdentifier(const char* value) { SetOwningProjectIdentifier(value); return *this;}
127
129
132 inline const Aws::Vector<SearchInItem>& GetSearchIn() const{ return m_searchIn; }
133 inline bool SearchInHasBeenSet() const { return m_searchInHasBeenSet; }
134 inline void SetSearchIn(const Aws::Vector<SearchInItem>& value) { m_searchInHasBeenSet = true; m_searchIn = value; }
135 inline void SetSearchIn(Aws::Vector<SearchInItem>&& value) { m_searchInHasBeenSet = true; m_searchIn = std::move(value); }
136 inline SearchRequest& WithSearchIn(const Aws::Vector<SearchInItem>& value) { SetSearchIn(value); return *this;}
137 inline SearchRequest& WithSearchIn(Aws::Vector<SearchInItem>&& value) { SetSearchIn(std::move(value)); return *this;}
138 inline SearchRequest& AddSearchIn(const SearchInItem& value) { m_searchInHasBeenSet = true; m_searchIn.push_back(value); return *this; }
139 inline SearchRequest& AddSearchIn(SearchInItem&& value) { m_searchInHasBeenSet = true; m_searchIn.push_back(std::move(value)); return *this; }
141
143
146 inline const InventorySearchScope& GetSearchScope() const{ return m_searchScope; }
147 inline bool SearchScopeHasBeenSet() const { return m_searchScopeHasBeenSet; }
148 inline void SetSearchScope(const InventorySearchScope& value) { m_searchScopeHasBeenSet = true; m_searchScope = value; }
149 inline void SetSearchScope(InventorySearchScope&& value) { m_searchScopeHasBeenSet = true; m_searchScope = std::move(value); }
150 inline SearchRequest& WithSearchScope(const InventorySearchScope& value) { SetSearchScope(value); return *this;}
151 inline SearchRequest& WithSearchScope(InventorySearchScope&& value) { SetSearchScope(std::move(value)); return *this;}
153
155
158 inline const Aws::String& GetSearchText() const{ return m_searchText; }
159 inline bool SearchTextHasBeenSet() const { return m_searchTextHasBeenSet; }
160 inline void SetSearchText(const Aws::String& value) { m_searchTextHasBeenSet = true; m_searchText = value; }
161 inline void SetSearchText(Aws::String&& value) { m_searchTextHasBeenSet = true; m_searchText = std::move(value); }
162 inline void SetSearchText(const char* value) { m_searchTextHasBeenSet = true; m_searchText.assign(value); }
163 inline SearchRequest& WithSearchText(const Aws::String& value) { SetSearchText(value); return *this;}
164 inline SearchRequest& WithSearchText(Aws::String&& value) { SetSearchText(std::move(value)); return *this;}
165 inline SearchRequest& WithSearchText(const char* value) { SetSearchText(value); return *this;}
167
169
172 inline const SearchSort& GetSort() const{ return m_sort; }
173 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
174 inline void SetSort(const SearchSort& value) { m_sortHasBeenSet = true; m_sort = value; }
175 inline void SetSort(SearchSort&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
176 inline SearchRequest& WithSort(const SearchSort& value) { SetSort(value); return *this;}
177 inline SearchRequest& WithSort(SearchSort&& value) { SetSort(std::move(value)); return *this;}
179 private:
180
182 bool m_additionalAttributesHasBeenSet = false;
183
184 Aws::String m_domainIdentifier;
185 bool m_domainIdentifierHasBeenSet = false;
186
187 FilterClause m_filters;
188 bool m_filtersHasBeenSet = false;
189
190 int m_maxResults;
191 bool m_maxResultsHasBeenSet = false;
192
193 Aws::String m_nextToken;
194 bool m_nextTokenHasBeenSet = false;
195
196 Aws::String m_owningProjectIdentifier;
197 bool m_owningProjectIdentifierHasBeenSet = false;
198
199 Aws::Vector<SearchInItem> m_searchIn;
200 bool m_searchInHasBeenSet = false;
201
202 InventorySearchScope m_searchScope;
203 bool m_searchScopeHasBeenSet = false;
204
205 Aws::String m_searchText;
206 bool m_searchTextHasBeenSet = false;
207
208 SearchSort m_sort;
209 bool m_sortHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace DataZone
214} // namespace Aws
void SetSort(const SearchSort &value)
void SetDomainIdentifier(const char *value)
const Aws::Vector< SearchInItem > & GetSearchIn() const
void SetSearchText(const char *value)
void SetSort(SearchSort &&value)
SearchRequest & WithNextToken(const Aws::String &value)
const Aws::String & GetOwningProjectIdentifier() const
SearchRequest & WithFilters(FilterClause &&value)
SearchRequest & WithDomainIdentifier(const char *value)
SearchRequest & WithOwningProjectIdentifier(const char *value)
void SetFilters(const FilterClause &value)
const InventorySearchScope & GetSearchScope() const
SearchRequest & WithSearchText(const Aws::String &value)
SearchRequest & AddAdditionalAttributes(SearchOutputAdditionalAttribute &&value)
void SetOwningProjectIdentifier(const Aws::String &value)
SearchRequest & WithSearchIn(Aws::Vector< SearchInItem > &&value)
SearchRequest & WithSearchIn(const Aws::Vector< SearchInItem > &value)
virtual const char * GetServiceRequestName() const override
SearchRequest & WithSort(const SearchSort &value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
SearchRequest & WithSearchScope(const InventorySearchScope &value)
void SetSearchIn(const Aws::Vector< SearchInItem > &value)
const Aws::String & GetDomainIdentifier() const
void SetDomainIdentifier(const Aws::String &value)
SearchRequest & WithSort(SearchSort &&value)
void SetNextToken(Aws::String &&value)
void SetSearchIn(Aws::Vector< SearchInItem > &&value)
const Aws::String & GetSearchText() const
SearchRequest & WithSearchText(const char *value)
SearchRequest & WithSearchScope(InventorySearchScope &&value)
SearchRequest & WithSearchText(Aws::String &&value)
void SetSearchText(Aws::String &&value)
SearchRequest & AddSearchIn(SearchInItem &&value)
void SetSearchText(const Aws::String &value)
const FilterClause & GetFilters() const
SearchRequest & WithFilters(const FilterClause &value)
void SetAdditionalAttributes(Aws::Vector< SearchOutputAdditionalAttribute > &&value)
SearchRequest & WithOwningProjectIdentifier(Aws::String &&value)
SearchRequest & WithNextToken(const char *value)
SearchRequest & WithDomainIdentifier(Aws::String &&value)
void SetSearchScope(const InventorySearchScope &value)
void SetOwningProjectIdentifier(Aws::String &&value)
SearchRequest & AddAdditionalAttributes(const SearchOutputAdditionalAttribute &value)
SearchRequest & AddSearchIn(const SearchInItem &value)
const Aws::String & GetNextToken() const
SearchRequest & WithAdditionalAttributes(Aws::Vector< SearchOutputAdditionalAttribute > &&value)
void SetFilters(FilterClause &&value)
const SearchSort & GetSort() const
SearchRequest & WithAdditionalAttributes(const Aws::Vector< SearchOutputAdditionalAttribute > &value)
const Aws::Vector< SearchOutputAdditionalAttribute > & GetAdditionalAttributes() const
void SetNextToken(const Aws::String &value)
SearchRequest & WithNextToken(Aws::String &&value)
void SetNextToken(const char *value)
SearchRequest & WithOwningProjectIdentifier(const Aws::String &value)
void SetSearchScope(InventorySearchScope &&value)
void SetDomainIdentifier(Aws::String &&value)
void SetAdditionalAttributes(const Aws::Vector< SearchOutputAdditionalAttribute > &value)
SearchRequest & WithMaxResults(int value)
void SetOwningProjectIdentifier(const char *value)
SearchRequest & WithDomainIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector