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/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/sagemaker/model/ResourceType.h>
10#include <aws/sagemaker/model/SearchExpression.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/sagemaker/model/SearchSortOrder.h>
13#include <aws/sagemaker/model/CrossAccountFilterOption.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/sagemaker/model/VisibilityConditions.h>
16#include <utility>
17
18namespace Aws
19{
20namespace SageMaker
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SAGEMAKER_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_SAGEMAKER_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const ResourceType& GetResource() const{ return m_resource; }
48 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
49 inline void SetResource(const ResourceType& value) { m_resourceHasBeenSet = true; m_resource = value; }
50 inline void SetResource(ResourceType&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
51 inline SearchRequest& WithResource(const ResourceType& value) { SetResource(value); return *this;}
52 inline SearchRequest& WithResource(ResourceType&& value) { SetResource(std::move(value)); return *this;}
54
56
63 inline const SearchExpression& GetSearchExpression() const{ return m_searchExpression; }
64 inline bool SearchExpressionHasBeenSet() const { return m_searchExpressionHasBeenSet; }
65 inline void SetSearchExpression(const SearchExpression& value) { m_searchExpressionHasBeenSet = true; m_searchExpression = value; }
66 inline void SetSearchExpression(SearchExpression&& value) { m_searchExpressionHasBeenSet = true; m_searchExpression = std::move(value); }
67 inline SearchRequest& WithSearchExpression(const SearchExpression& value) { SetSearchExpression(value); return *this;}
68 inline SearchRequest& WithSearchExpression(SearchExpression&& value) { SetSearchExpression(std::move(value)); return *this;}
70
72
76 inline const Aws::String& GetSortBy() const{ return m_sortBy; }
77 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
78 inline void SetSortBy(const Aws::String& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
79 inline void SetSortBy(Aws::String&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
80 inline void SetSortBy(const char* value) { m_sortByHasBeenSet = true; m_sortBy.assign(value); }
81 inline SearchRequest& WithSortBy(const Aws::String& value) { SetSortBy(value); return *this;}
82 inline SearchRequest& WithSortBy(Aws::String&& value) { SetSortBy(std::move(value)); return *this;}
83 inline SearchRequest& WithSortBy(const char* value) { SetSortBy(value); return *this;}
85
87
92 inline const SearchSortOrder& GetSortOrder() const{ return m_sortOrder; }
93 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
94 inline void SetSortOrder(const SearchSortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
95 inline void SetSortOrder(SearchSortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
96 inline SearchRequest& WithSortOrder(const SearchSortOrder& value) { SetSortOrder(value); return *this;}
97 inline SearchRequest& WithSortOrder(SearchSortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
99
101
107 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
108 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
109 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
110 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
111 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
112 inline SearchRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
113 inline SearchRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 inline SearchRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
116
118
121 inline int GetMaxResults() const{ return m_maxResults; }
122 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
123 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
124 inline SearchRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
126
128
139 inline const CrossAccountFilterOption& GetCrossAccountFilterOption() const{ return m_crossAccountFilterOption; }
140 inline bool CrossAccountFilterOptionHasBeenSet() const { return m_crossAccountFilterOptionHasBeenSet; }
141 inline void SetCrossAccountFilterOption(const CrossAccountFilterOption& value) { m_crossAccountFilterOptionHasBeenSet = true; m_crossAccountFilterOption = value; }
142 inline void SetCrossAccountFilterOption(CrossAccountFilterOption&& value) { m_crossAccountFilterOptionHasBeenSet = true; m_crossAccountFilterOption = std::move(value); }
146
148
152 inline const Aws::Vector<VisibilityConditions>& GetVisibilityConditions() const{ return m_visibilityConditions; }
153 inline bool VisibilityConditionsHasBeenSet() const { return m_visibilityConditionsHasBeenSet; }
154 inline void SetVisibilityConditions(const Aws::Vector<VisibilityConditions>& value) { m_visibilityConditionsHasBeenSet = true; m_visibilityConditions = value; }
155 inline void SetVisibilityConditions(Aws::Vector<VisibilityConditions>&& value) { m_visibilityConditionsHasBeenSet = true; m_visibilityConditions = std::move(value); }
158 inline SearchRequest& AddVisibilityConditions(const VisibilityConditions& value) { m_visibilityConditionsHasBeenSet = true; m_visibilityConditions.push_back(value); return *this; }
159 inline SearchRequest& AddVisibilityConditions(VisibilityConditions&& value) { m_visibilityConditionsHasBeenSet = true; m_visibilityConditions.push_back(std::move(value)); return *this; }
161 private:
162
163 ResourceType m_resource;
164 bool m_resourceHasBeenSet = false;
165
166 SearchExpression m_searchExpression;
167 bool m_searchExpressionHasBeenSet = false;
168
169 Aws::String m_sortBy;
170 bool m_sortByHasBeenSet = false;
171
172 SearchSortOrder m_sortOrder;
173 bool m_sortOrderHasBeenSet = false;
174
175 Aws::String m_nextToken;
176 bool m_nextTokenHasBeenSet = false;
177
178 int m_maxResults;
179 bool m_maxResultsHasBeenSet = false;
180
181 CrossAccountFilterOption m_crossAccountFilterOption;
182 bool m_crossAccountFilterOptionHasBeenSet = false;
183
184 Aws::Vector<VisibilityConditions> m_visibilityConditions;
185 bool m_visibilityConditionsHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace SageMaker
190} // namespace Aws
SearchRequest & WithSortOrder(SearchSortOrder &&value)
void SetSortOrder(const SearchSortOrder &value)
void SetVisibilityConditions(const Aws::Vector< VisibilityConditions > &value)
SearchRequest & WithNextToken(Aws::String &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SearchRequest & WithCrossAccountFilterOption(const CrossAccountFilterOption &value)
SearchRequest & WithMaxResults(int value)
SearchRequest & WithVisibilityConditions(const Aws::Vector< VisibilityConditions > &value)
const Aws::Vector< VisibilityConditions > & GetVisibilityConditions() const
SearchRequest & AddVisibilityConditions(const VisibilityConditions &value)
virtual const char * GetServiceRequestName() const override
SearchRequest & WithCrossAccountFilterOption(CrossAccountFilterOption &&value)
void SetSortBy(Aws::String &&value)
SearchRequest & WithResource(const ResourceType &value)
SearchRequest & WithNextToken(const Aws::String &value)
SearchRequest & WithNextToken(const char *value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetCrossAccountFilterOption(const CrossAccountFilterOption &value)
const SearchSortOrder & GetSortOrder() const
void SetNextToken(Aws::String &&value)
void SetResource(const ResourceType &value)
void SetVisibilityConditions(Aws::Vector< VisibilityConditions > &&value)
void SetSearchExpression(const SearchExpression &value)
void SetSortBy(const char *value)
SearchRequest & WithSortOrder(const SearchSortOrder &value)
SearchRequest & WithVisibilityConditions(Aws::Vector< VisibilityConditions > &&value)
const ResourceType & GetResource() const
void SetSortBy(const Aws::String &value)
SearchRequest & WithSearchExpression(SearchExpression &&value)
void SetSortOrder(SearchSortOrder &&value)
void SetCrossAccountFilterOption(CrossAccountFilterOption &&value)
const SearchExpression & GetSearchExpression() const
const CrossAccountFilterOption & GetCrossAccountFilterOption() const
const Aws::String & GetNextToken() const
void SetResource(ResourceType &&value)
const Aws::String & GetSortBy() const
void SetSearchExpression(SearchExpression &&value)
SearchRequest & WithSortBy(const Aws::String &value)
SearchRequest & WithSortBy(const char *value)
SearchRequest & WithResource(ResourceType &&value)
SearchRequest & WithSearchExpression(const SearchExpression &value)
SearchRequest & WithSortBy(Aws::String &&value)
void SetNextToken(const char *value)
void SetNextToken(const Aws::String &value)
SearchRequest & AddVisibilityConditions(VisibilityConditions &&value)
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