AWS SDK for C++  1.8.95
AWS SDK for C++
SearchRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace SageMaker
18 {
19 namespace Model
20 {
21 
25  {
26  public:
27  SearchRequest();
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::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
43  inline const ResourceType& GetResource() const{ return m_resource; }
44 
48  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
49 
53  inline void SetResource(const ResourceType& value) { m_resourceHasBeenSet = true; m_resource = value; }
54 
58  inline void SetResource(ResourceType&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
59 
63  inline SearchRequest& WithResource(const ResourceType& value) { SetResource(value); return *this;}
64 
68  inline SearchRequest& WithResource(ResourceType&& value) { SetResource(std::move(value)); return *this;}
69 
70 
78  inline const SearchExpression& GetSearchExpression() const{ return m_searchExpression; }
79 
87  inline bool SearchExpressionHasBeenSet() const { return m_searchExpressionHasBeenSet; }
88 
96  inline void SetSearchExpression(const SearchExpression& value) { m_searchExpressionHasBeenSet = true; m_searchExpression = value; }
97 
105  inline void SetSearchExpression(SearchExpression&& value) { m_searchExpressionHasBeenSet = true; m_searchExpression = std::move(value); }
106 
114  inline SearchRequest& WithSearchExpression(const SearchExpression& value) { SetSearchExpression(value); return *this;}
115 
123  inline SearchRequest& WithSearchExpression(SearchExpression&& value) { SetSearchExpression(std::move(value)); return *this;}
124 
125 
130  inline const Aws::String& GetSortBy() const{ return m_sortBy; }
131 
136  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
137 
142  inline void SetSortBy(const Aws::String& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
143 
148  inline void SetSortBy(Aws::String&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
149 
154  inline void SetSortBy(const char* value) { m_sortByHasBeenSet = true; m_sortBy.assign(value); }
155 
160  inline SearchRequest& WithSortBy(const Aws::String& value) { SetSortBy(value); return *this;}
161 
166  inline SearchRequest& WithSortBy(Aws::String&& value) { SetSortBy(std::move(value)); return *this;}
167 
172  inline SearchRequest& WithSortBy(const char* value) { SetSortBy(value); return *this;}
173 
174 
180  inline const SearchSortOrder& GetSortOrder() const{ return m_sortOrder; }
181 
187  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
188 
194  inline void SetSortOrder(const SearchSortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
195 
201  inline void SetSortOrder(SearchSortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
202 
208  inline SearchRequest& WithSortOrder(const SearchSortOrder& value) { SetSortOrder(value); return *this;}
209 
215  inline SearchRequest& WithSortOrder(SearchSortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
216 
217 
224  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
225 
232  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
233 
240  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
241 
248  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
249 
256  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
257 
264  inline SearchRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
265 
272  inline SearchRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
273 
280  inline SearchRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
281 
282 
286  inline int GetMaxResults() const{ return m_maxResults; }
287 
291  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
292 
296  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
297 
301  inline SearchRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
302 
303  private:
304 
305  ResourceType m_resource;
306  bool m_resourceHasBeenSet;
307 
308  SearchExpression m_searchExpression;
309  bool m_searchExpressionHasBeenSet;
310 
311  Aws::String m_sortBy;
312  bool m_sortByHasBeenSet;
313 
314  SearchSortOrder m_sortOrder;
315  bool m_sortOrderHasBeenSet;
316 
317  Aws::String m_nextToken;
318  bool m_nextTokenHasBeenSet;
319 
320  int m_maxResults;
321  bool m_maxResultsHasBeenSet;
322  };
323 
324 } // namespace Model
325 } // namespace SageMaker
326 } // namespace Aws
SearchRequest & WithNextToken(Aws::String &&value)
#define AWS_SAGEMAKER_API
SearchRequest & WithMaxResults(int value)
const ResourceType & GetResource() const
Definition: SearchRequest.h:43
SearchRequest & WithSortBy(Aws::String &&value)
SearchRequest & WithSearchExpression(const SearchExpression &value)
void SetSortBy(Aws::String &&value)
SearchRequest & WithResource(const ResourceType &value)
Definition: SearchRequest.h:63
SearchRequest & WithSearchExpression(SearchExpression &&value)
SearchRequest & WithSortOrder(SearchSortOrder &&value)
const SearchExpression & GetSearchExpression() const
Definition: SearchRequest.h:78
SearchRequest & WithNextToken(const Aws::String &value)
const SearchSortOrder & GetSortOrder() const
void SetSearchExpression(SearchExpression &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetResource(const ResourceType &value)
Definition: SearchRequest.h:53
void SetResource(ResourceType &&value)
Definition: SearchRequest.h:58
void SetSortBy(const Aws::String &value)
SearchRequest & WithSortOrder(const SearchSortOrder &value)
void SetSearchExpression(const SearchExpression &value)
Definition: SearchRequest.h:96
void SetSortOrder(SearchSortOrder &&value)
void SetSortBy(const char *value)
const Aws::String & GetSortBy() const
SearchRequest & WithResource(ResourceType &&value)
Definition: SearchRequest.h:68
void SetNextToken(const Aws::String &value)
SearchRequest & WithSortBy(const char *value)
const Aws::String & GetNextToken() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetNextToken(const char *value)
SearchRequest & WithNextToken(const char *value)
void SetSortOrder(const SearchSortOrder &value)
void SetNextToken(Aws::String &&value)
SearchRequest & WithSortBy(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
Definition: SearchRequest.h:33