AWS SDK for C++  1.9.158
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:
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 
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
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::SearchRequest::GetMaxResults
int GetMaxResults() const
Definition: SearchRequest.h:286
SageMaker_EXPORTS.h
Aws::SageMaker::Model::SearchRequest::WithNextToken
SearchRequest & WithNextToken(Aws::String &&value)
Definition: SearchRequest.h:272
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::SearchRequest::GetSearchExpression
const SearchExpression & GetSearchExpression() const
Definition: SearchRequest.h:78
Aws::SageMaker::Model::SearchRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SearchRequest.h:33
Aws::SageMaker::Model::SearchRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::SearchRequest::WithSearchExpression
SearchRequest & WithSearchExpression(const SearchExpression &value)
Definition: SearchRequest.h:114
Aws::SageMaker::Model::SearchRequest::SetResource
void SetResource(const ResourceType &value)
Definition: SearchRequest.h:53
Aws::SageMaker::Model::SearchRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: SearchRequest.h:291
Aws::SageMaker::Model::SearchSortOrder
SearchSortOrder
Definition: SearchSortOrder.h:17
Aws::SageMaker::Model::SearchRequest::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: SearchRequest.h:48
Aws::SageMaker::Model::SearchRequest::SetNextToken
void SetNextToken(const char *value)
Definition: SearchRequest.h:256
Aws::SageMaker::Model::SearchRequest::GetSortOrder
const SearchSortOrder & GetSortOrder() const
Definition: SearchRequest.h:180
Aws::SageMaker::Model::SearchRequest::WithSortOrder
SearchRequest & WithSortOrder(const SearchSortOrder &value)
Definition: SearchRequest.h:208
Aws::SageMaker::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::SageMaker::Model::SearchExpression
Definition: SearchExpression.h:50
Aws::SageMaker::Model::SearchRequest::WithSortOrder
SearchRequest & WithSortOrder(SearchSortOrder &&value)
Definition: SearchRequest.h:215
Aws::SageMaker::Model::SearchRequest::SetSearchExpression
void SetSearchExpression(const SearchExpression &value)
Definition: SearchRequest.h:96
Aws::SageMaker::Model::SearchRequest::SetSortBy
void SetSortBy(const Aws::String &value)
Definition: SearchRequest.h:142
Aws::SageMaker::Model::SearchRequest::SetSortBy
void SetSortBy(Aws::String &&value)
Definition: SearchRequest.h:148
Aws::SageMaker::Model::SearchRequest::SetSortOrder
void SetSortOrder(const SearchSortOrder &value)
Definition: SearchRequest.h:194
SearchSortOrder.h
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::SearchRequest::WithSortBy
SearchRequest & WithSortBy(Aws::String &&value)
Definition: SearchRequest.h:166
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::SearchRequest::WithNextToken
SearchRequest & WithNextToken(const Aws::String &value)
Definition: SearchRequest.h:264
Aws::SageMaker::Model::SearchRequest::WithResource
SearchRequest & WithResource(const ResourceType &value)
Definition: SearchRequest.h:63
Aws::SageMaker::Model::SearchRequest::WithSortBy
SearchRequest & WithSortBy(const char *value)
Definition: SearchRequest.h:172
ResourceType.h
Aws::SageMaker::Model::SearchRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: SearchRequest.h:248
Aws::SageMaker::Model::SearchRequest::WithSearchExpression
SearchRequest & WithSearchExpression(SearchExpression &&value)
Definition: SearchRequest.h:123
Aws::SageMaker::Model::SearchRequest::SetMaxResults
void SetMaxResults(int value)
Definition: SearchRequest.h:296
Aws::SageMaker::Model::SearchRequest::SetSortOrder
void SetSortOrder(SearchSortOrder &&value)
Definition: SearchRequest.h:201
Aws::SageMaker::Model::SearchRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: SearchRequest.h:232
AWSString.h
Aws::SageMaker::Model::SearchRequest::GetSortBy
const Aws::String & GetSortBy() const
Definition: SearchRequest.h:130
Aws::SageMaker::Model::SearchRequest::WithMaxResults
SearchRequest & WithMaxResults(int value)
Definition: SearchRequest.h:301
Aws::SageMaker::Model::SearchRequest::SearchRequest
SearchRequest()
Aws::SageMaker::Model::SearchRequest::GetResource
const ResourceType & GetResource() const
Definition: SearchRequest.h:43
Aws::SageMaker::Model::SearchRequest
Definition: SearchRequest.h:25
Aws::SageMaker::Model::SearchRequest::WithNextToken
SearchRequest & WithNextToken(const char *value)
Definition: SearchRequest.h:280
Aws::SageMaker::Model::SearchRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: SearchRequest.h:224
SearchExpression.h
Aws::SageMaker::Model::SearchRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: SearchRequest.h:240
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::SageMaker::Model::SearchRequest::SortOrderHasBeenSet
bool SortOrderHasBeenSet() const
Definition: SearchRequest.h:187
Aws::SageMaker::Model::SearchRequest::SearchExpressionHasBeenSet
bool SearchExpressionHasBeenSet() const
Definition: SearchRequest.h:87
Aws::SageMaker::Model::SearchRequest::WithResource
SearchRequest & WithResource(ResourceType &&value)
Definition: SearchRequest.h:68
Aws::SageMaker::Model::SearchRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: SearchRequest.h:136
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::SearchRequest::SetSortBy
void SetSortBy(const char *value)
Definition: SearchRequest.h:154
Aws::SageMaker::Model::SearchRequest::WithSortBy
SearchRequest & WithSortBy(const Aws::String &value)
Definition: SearchRequest.h:160
Aws::SageMaker::Model::SearchRequest::SetSearchExpression
void SetSearchExpression(SearchExpression &&value)
Definition: SearchRequest.h:105
Aws::SageMaker::Model::SearchRequest::SetResource
void SetResource(ResourceType &&value)
Definition: SearchRequest.h:58
Aws::SageMaker::Model::SearchRequest::SerializePayload
Aws::String SerializePayload() const override