AWS SDK for C++  1.8.95
AWS SDK for C++
ListAlgorithmsRequest.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 "ListAlgorithms"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
44  inline const Aws::Utils::DateTime& GetCreationTimeAfter() const{ return m_creationTimeAfter; }
45 
50  inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
51 
56  inline void SetCreationTimeAfter(const Aws::Utils::DateTime& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = value; }
57 
62  inline void SetCreationTimeAfter(Aws::Utils::DateTime&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::move(value); }
63 
68  inline ListAlgorithmsRequest& WithCreationTimeAfter(const Aws::Utils::DateTime& value) { SetCreationTimeAfter(value); return *this;}
69 
74  inline ListAlgorithmsRequest& WithCreationTimeAfter(Aws::Utils::DateTime&& value) { SetCreationTimeAfter(std::move(value)); return *this;}
75 
76 
81  inline const Aws::Utils::DateTime& GetCreationTimeBefore() const{ return m_creationTimeBefore; }
82 
87  inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
88 
93  inline void SetCreationTimeBefore(const Aws::Utils::DateTime& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = value; }
94 
99  inline void SetCreationTimeBefore(Aws::Utils::DateTime&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::move(value); }
100 
105  inline ListAlgorithmsRequest& WithCreationTimeBefore(const Aws::Utils::DateTime& value) { SetCreationTimeBefore(value); return *this;}
106 
111  inline ListAlgorithmsRequest& WithCreationTimeBefore(Aws::Utils::DateTime&& value) { SetCreationTimeBefore(std::move(value)); return *this;}
112 
113 
117  inline int GetMaxResults() const{ return m_maxResults; }
118 
122  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
123 
127  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
128 
132  inline ListAlgorithmsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
133 
134 
139  inline const Aws::String& GetNameContains() const{ return m_nameContains; }
140 
145  inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
146 
151  inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; }
152 
157  inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); }
158 
163  inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); }
164 
169  inline ListAlgorithmsRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;}
170 
175  inline ListAlgorithmsRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;}
176 
181  inline ListAlgorithmsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;}
182 
183 
189  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
190 
196  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
197 
203  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
204 
210  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
211 
217  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
218 
224  inline ListAlgorithmsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
225 
231  inline ListAlgorithmsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
232 
238  inline ListAlgorithmsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
239 
240 
245  inline const AlgorithmSortBy& GetSortBy() const{ return m_sortBy; }
246 
251  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
252 
257  inline void SetSortBy(const AlgorithmSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
258 
263  inline void SetSortBy(AlgorithmSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
264 
269  inline ListAlgorithmsRequest& WithSortBy(const AlgorithmSortBy& value) { SetSortBy(value); return *this;}
270 
275  inline ListAlgorithmsRequest& WithSortBy(AlgorithmSortBy&& value) { SetSortBy(std::move(value)); return *this;}
276 
277 
281  inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
282 
286  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
287 
291  inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
292 
296  inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
297 
301  inline ListAlgorithmsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
302 
306  inline ListAlgorithmsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
307 
308  private:
309 
310  Aws::Utils::DateTime m_creationTimeAfter;
311  bool m_creationTimeAfterHasBeenSet;
312 
313  Aws::Utils::DateTime m_creationTimeBefore;
314  bool m_creationTimeBeforeHasBeenSet;
315 
316  int m_maxResults;
317  bool m_maxResultsHasBeenSet;
318 
319  Aws::String m_nameContains;
320  bool m_nameContainsHasBeenSet;
321 
322  Aws::String m_nextToken;
323  bool m_nextTokenHasBeenSet;
324 
325  AlgorithmSortBy m_sortBy;
326  bool m_sortByHasBeenSet;
327 
328  SortOrder m_sortOrder;
329  bool m_sortOrderHasBeenSet;
330  };
331 
332 } // namespace Model
333 } // namespace SageMaker
334 } // namespace Aws
ListAlgorithmsRequest & WithNextToken(const Aws::String &value)
#define AWS_SAGEMAKER_API
ListAlgorithmsRequest & WithCreationTimeBefore(Aws::Utils::DateTime &&value)
void SetCreationTimeBefore(const Aws::Utils::DateTime &value)
void SetCreationTimeAfter(const Aws::Utils::DateTime &value)
ListAlgorithmsRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
virtual const char * GetServiceRequestName() const override
void SetCreationTimeBefore(Aws::Utils::DateTime &&value)
ListAlgorithmsRequest & WithNameContains(Aws::String &&value)
ListAlgorithmsRequest & WithSortBy(AlgorithmSortBy &&value)
ListAlgorithmsRequest & WithCreationTimeAfter(Aws::Utils::DateTime &&value)
ListAlgorithmsRequest & WithSortBy(const AlgorithmSortBy &value)
ListAlgorithmsRequest & WithCreationTimeAfter(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
ListAlgorithmsRequest & WithNextToken(const char *value)
ListAlgorithmsRequest & WithNameContains(const char *value)
ListAlgorithmsRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Utils::DateTime & GetCreationTimeBefore() const
ListAlgorithmsRequest & WithNameContains(const Aws::String &value)
ListAlgorithmsRequest & WithSortOrder(SortOrder &&value)
void SetCreationTimeAfter(Aws::Utils::DateTime &&value)
void SetSortBy(const AlgorithmSortBy &value)
ListAlgorithmsRequest & WithSortOrder(const SortOrder &value)
ListAlgorithmsRequest & WithCreationTimeBefore(const Aws::Utils::DateTime &value)