AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SearchTablesRequest.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/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/PropertyPredicate.h>
12#include <aws/glue/model/ResourceShareType.h>
13#include <aws/glue/model/SortCriterion.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Glue {
19namespace Model {
20
24 public:
25 AWS_GLUE_API SearchTablesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SearchTables"; }
32
33 AWS_GLUE_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
42 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
43 template <typename CatalogIdT = Aws::String>
44 void SetCatalogId(CatalogIdT&& value) {
45 m_catalogIdHasBeenSet = true;
46 m_catalogId = std::forward<CatalogIdT>(value);
47 }
48 template <typename CatalogIdT = Aws::String>
49 SearchTablesRequest& WithCatalogId(CatalogIdT&& value) {
50 SetCatalogId(std::forward<CatalogIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
61 template <typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) {
63 m_nextTokenHasBeenSet = true;
64 m_nextToken = std::forward<NextTokenT>(value);
65 }
66 template <typename NextTokenT = Aws::String>
67 SearchTablesRequest& WithNextToken(NextTokenT&& value) {
68 SetNextToken(std::forward<NextTokenT>(value));
69 return *this;
70 }
72
74
88 inline const Aws::Vector<PropertyPredicate>& GetFilters() const { return m_filters; }
89 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
90 template <typename FiltersT = Aws::Vector<PropertyPredicate>>
91 void SetFilters(FiltersT&& value) {
92 m_filtersHasBeenSet = true;
93 m_filters = std::forward<FiltersT>(value);
94 }
95 template <typename FiltersT = Aws::Vector<PropertyPredicate>>
96 SearchTablesRequest& WithFilters(FiltersT&& value) {
97 SetFilters(std::forward<FiltersT>(value));
98 return *this;
99 }
100 template <typename FiltersT = PropertyPredicate>
101 SearchTablesRequest& AddFilters(FiltersT&& value) {
102 m_filtersHasBeenSet = true;
103 m_filters.emplace_back(std::forward<FiltersT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetSearchText() const { return m_searchText; }
114 inline bool SearchTextHasBeenSet() const { return m_searchTextHasBeenSet; }
115 template <typename SearchTextT = Aws::String>
116 void SetSearchText(SearchTextT&& value) {
117 m_searchTextHasBeenSet = true;
118 m_searchText = std::forward<SearchTextT>(value);
119 }
120 template <typename SearchTextT = Aws::String>
121 SearchTablesRequest& WithSearchText(SearchTextT&& value) {
122 SetSearchText(std::forward<SearchTextT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Vector<SortCriterion>& GetSortCriteria() const { return m_sortCriteria; }
133 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
134 template <typename SortCriteriaT = Aws::Vector<SortCriterion>>
135 void SetSortCriteria(SortCriteriaT&& value) {
136 m_sortCriteriaHasBeenSet = true;
137 m_sortCriteria = std::forward<SortCriteriaT>(value);
138 }
139 template <typename SortCriteriaT = Aws::Vector<SortCriterion>>
140 SearchTablesRequest& WithSortCriteria(SortCriteriaT&& value) {
141 SetSortCriteria(std::forward<SortCriteriaT>(value));
142 return *this;
143 }
144 template <typename SortCriteriaT = SortCriterion>
145 SearchTablesRequest& AddSortCriteria(SortCriteriaT&& value) {
146 m_sortCriteriaHasBeenSet = true;
147 m_sortCriteria.emplace_back(std::forward<SortCriteriaT>(value));
148 return *this;
149 }
151
153
156 inline int GetMaxResults() const { return m_maxResults; }
157 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
158 inline void SetMaxResults(int value) {
159 m_maxResultsHasBeenSet = true;
160 m_maxResults = value;
161 }
163 SetMaxResults(value);
164 return *this;
165 }
167
169
177 inline ResourceShareType GetResourceShareType() const { return m_resourceShareType; }
178 inline bool ResourceShareTypeHasBeenSet() const { return m_resourceShareTypeHasBeenSet; }
180 m_resourceShareTypeHasBeenSet = true;
181 m_resourceShareType = value;
182 }
185 return *this;
186 }
188
190
194 inline bool GetIncludeStatusDetails() const { return m_includeStatusDetails; }
195 inline bool IncludeStatusDetailsHasBeenSet() const { return m_includeStatusDetailsHasBeenSet; }
196 inline void SetIncludeStatusDetails(bool value) {
197 m_includeStatusDetailsHasBeenSet = true;
198 m_includeStatusDetails = value;
199 }
202 return *this;
203 }
205 private:
206 Aws::String m_catalogId;
207
208 Aws::String m_nextToken;
209
211
212 Aws::String m_searchText;
213
214 Aws::Vector<SortCriterion> m_sortCriteria;
215
216 int m_maxResults{0};
217
219
220 bool m_includeStatusDetails{false};
221 bool m_catalogIdHasBeenSet = false;
222 bool m_nextTokenHasBeenSet = false;
223 bool m_filtersHasBeenSet = false;
224 bool m_searchTextHasBeenSet = false;
225 bool m_sortCriteriaHasBeenSet = false;
226 bool m_maxResultsHasBeenSet = false;
227 bool m_resourceShareTypeHasBeenSet = false;
228 bool m_includeStatusDetailsHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace Glue
233} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< PropertyPredicate > & GetFilters() const
SearchTablesRequest & WithMaxResults(int value)
SearchTablesRequest & WithSearchText(SearchTextT &&value)
const Aws::String & GetCatalogId() const
void SetSortCriteria(SortCriteriaT &&value)
AWS_GLUE_API SearchTablesRequest()=default
SearchTablesRequest & WithSortCriteria(SortCriteriaT &&value)
SearchTablesRequest & WithFilters(FiltersT &&value)
SearchTablesRequest & AddFilters(FiltersT &&value)
const Aws::Vector< SortCriterion > & GetSortCriteria() const
const Aws::String & GetSearchText() const
SearchTablesRequest & WithNextToken(NextTokenT &&value)
SearchTablesRequest & WithCatalogId(CatalogIdT &&value)
const Aws::String & GetNextToken() const
SearchTablesRequest & WithIncludeStatusDetails(bool value)
ResourceShareType GetResourceShareType() const
AWS_GLUE_API Aws::String SerializePayload() const override
SearchTablesRequest & WithResourceShareType(ResourceShareType value)
SearchTablesRequest & AddSortCriteria(SortCriteriaT &&value)
void SetResourceShareType(ResourceShareType value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector