AWS SDK for C++  1.8.95
AWS SDK for C++
ListTrainingJobsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace SageMaker
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListTrainingJobs"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
46  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
47 
53  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
54 
60  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
61 
67  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
68 
74  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
75 
81  inline ListTrainingJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
82 
88  inline ListTrainingJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
89 
95  inline ListTrainingJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
96 
97 
101  inline int GetMaxResults() const{ return m_maxResults; }
102 
106  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 
111  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
112 
116  inline ListTrainingJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
117 
118 
123  inline const Aws::Utils::DateTime& GetCreationTimeAfter() const{ return m_creationTimeAfter; }
124 
129  inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
130 
135  inline void SetCreationTimeAfter(const Aws::Utils::DateTime& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = value; }
136 
141  inline void SetCreationTimeAfter(Aws::Utils::DateTime&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::move(value); }
142 
147  inline ListTrainingJobsRequest& WithCreationTimeAfter(const Aws::Utils::DateTime& value) { SetCreationTimeAfter(value); return *this;}
148 
153  inline ListTrainingJobsRequest& WithCreationTimeAfter(Aws::Utils::DateTime&& value) { SetCreationTimeAfter(std::move(value)); return *this;}
154 
155 
160  inline const Aws::Utils::DateTime& GetCreationTimeBefore() const{ return m_creationTimeBefore; }
161 
166  inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
167 
172  inline void SetCreationTimeBefore(const Aws::Utils::DateTime& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = value; }
173 
178  inline void SetCreationTimeBefore(Aws::Utils::DateTime&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::move(value); }
179 
184  inline ListTrainingJobsRequest& WithCreationTimeBefore(const Aws::Utils::DateTime& value) { SetCreationTimeBefore(value); return *this;}
185 
190  inline ListTrainingJobsRequest& WithCreationTimeBefore(Aws::Utils::DateTime&& value) { SetCreationTimeBefore(std::move(value)); return *this;}
191 
192 
197  inline const Aws::Utils::DateTime& GetLastModifiedTimeAfter() const{ return m_lastModifiedTimeAfter; }
198 
203  inline bool LastModifiedTimeAfterHasBeenSet() const { return m_lastModifiedTimeAfterHasBeenSet; }
204 
209  inline void SetLastModifiedTimeAfter(const Aws::Utils::DateTime& value) { m_lastModifiedTimeAfterHasBeenSet = true; m_lastModifiedTimeAfter = value; }
210 
215  inline void SetLastModifiedTimeAfter(Aws::Utils::DateTime&& value) { m_lastModifiedTimeAfterHasBeenSet = true; m_lastModifiedTimeAfter = std::move(value); }
216 
221  inline ListTrainingJobsRequest& WithLastModifiedTimeAfter(const Aws::Utils::DateTime& value) { SetLastModifiedTimeAfter(value); return *this;}
222 
227  inline ListTrainingJobsRequest& WithLastModifiedTimeAfter(Aws::Utils::DateTime&& value) { SetLastModifiedTimeAfter(std::move(value)); return *this;}
228 
229 
234  inline const Aws::Utils::DateTime& GetLastModifiedTimeBefore() const{ return m_lastModifiedTimeBefore; }
235 
240  inline bool LastModifiedTimeBeforeHasBeenSet() const { return m_lastModifiedTimeBeforeHasBeenSet; }
241 
246  inline void SetLastModifiedTimeBefore(const Aws::Utils::DateTime& value) { m_lastModifiedTimeBeforeHasBeenSet = true; m_lastModifiedTimeBefore = value; }
247 
252  inline void SetLastModifiedTimeBefore(Aws::Utils::DateTime&& value) { m_lastModifiedTimeBeforeHasBeenSet = true; m_lastModifiedTimeBefore = std::move(value); }
253 
258  inline ListTrainingJobsRequest& WithLastModifiedTimeBefore(const Aws::Utils::DateTime& value) { SetLastModifiedTimeBefore(value); return *this;}
259 
264  inline ListTrainingJobsRequest& WithLastModifiedTimeBefore(Aws::Utils::DateTime&& value) { SetLastModifiedTimeBefore(std::move(value)); return *this;}
265 
266 
271  inline const Aws::String& GetNameContains() const{ return m_nameContains; }
272 
277  inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
278 
283  inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; }
284 
289  inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); }
290 
295  inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); }
296 
301  inline ListTrainingJobsRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;}
302 
307  inline ListTrainingJobsRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;}
308 
313  inline ListTrainingJobsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;}
314 
315 
319  inline const TrainingJobStatus& GetStatusEquals() const{ return m_statusEquals; }
320 
324  inline bool StatusEqualsHasBeenSet() const { return m_statusEqualsHasBeenSet; }
325 
329  inline void SetStatusEquals(const TrainingJobStatus& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = value; }
330 
334  inline void SetStatusEquals(TrainingJobStatus&& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = std::move(value); }
335 
339  inline ListTrainingJobsRequest& WithStatusEquals(const TrainingJobStatus& value) { SetStatusEquals(value); return *this;}
340 
344  inline ListTrainingJobsRequest& WithStatusEquals(TrainingJobStatus&& value) { SetStatusEquals(std::move(value)); return *this;}
345 
346 
350  inline const SortBy& GetSortBy() const{ return m_sortBy; }
351 
355  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
356 
360  inline void SetSortBy(const SortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
361 
365  inline void SetSortBy(SortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
366 
370  inline ListTrainingJobsRequest& WithSortBy(const SortBy& value) { SetSortBy(value); return *this;}
371 
375  inline ListTrainingJobsRequest& WithSortBy(SortBy&& value) { SetSortBy(std::move(value)); return *this;}
376 
377 
381  inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
382 
386  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
387 
391  inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
392 
396  inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
397 
401  inline ListTrainingJobsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
402 
406  inline ListTrainingJobsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
407 
408  private:
409 
410  Aws::String m_nextToken;
411  bool m_nextTokenHasBeenSet;
412 
413  int m_maxResults;
414  bool m_maxResultsHasBeenSet;
415 
416  Aws::Utils::DateTime m_creationTimeAfter;
417  bool m_creationTimeAfterHasBeenSet;
418 
419  Aws::Utils::DateTime m_creationTimeBefore;
420  bool m_creationTimeBeforeHasBeenSet;
421 
422  Aws::Utils::DateTime m_lastModifiedTimeAfter;
423  bool m_lastModifiedTimeAfterHasBeenSet;
424 
425  Aws::Utils::DateTime m_lastModifiedTimeBefore;
426  bool m_lastModifiedTimeBeforeHasBeenSet;
427 
428  Aws::String m_nameContains;
429  bool m_nameContainsHasBeenSet;
430 
431  TrainingJobStatus m_statusEquals;
432  bool m_statusEqualsHasBeenSet;
433 
434  SortBy m_sortBy;
435  bool m_sortByHasBeenSet;
436 
437  SortOrder m_sortOrder;
438  bool m_sortOrderHasBeenSet;
439  };
440 
441 } // namespace Model
442 } // namespace SageMaker
443 } // namespace Aws
ListTrainingJobsRequest & WithNameContains(Aws::String &&value)
ListTrainingJobsRequest & WithSortBy(const SortBy &value)
#define AWS_SAGEMAKER_API
ListTrainingJobsRequest & WithCreationTimeBefore(const Aws::Utils::DateTime &value)
ListTrainingJobsRequest & WithLastModifiedTimeAfter(Aws::Utils::DateTime &&value)
ListTrainingJobsRequest & WithCreationTimeBefore(Aws::Utils::DateTime &&value)
ListTrainingJobsRequest & WithNextToken(const Aws::String &value)
ListTrainingJobsRequest & WithLastModifiedTimeBefore(const Aws::Utils::DateTime &value)
ListTrainingJobsRequest & WithSortOrder(const SortOrder &value)
ListTrainingJobsRequest & WithCreationTimeAfter(const Aws::Utils::DateTime &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
const Aws::Utils::DateTime & GetCreationTimeBefore() const
void SetCreationTimeBefore(const Aws::Utils::DateTime &value)
void SetStatusEquals(const TrainingJobStatus &value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
ListTrainingJobsRequest & WithSortBy(SortBy &&value)
ListTrainingJobsRequest & WithStatusEquals(const TrainingJobStatus &value)
ListTrainingJobsRequest & WithNameContains(const char *value)
ListTrainingJobsRequest & WithCreationTimeAfter(Aws::Utils::DateTime &&value)
void SetLastModifiedTimeBefore(const Aws::Utils::DateTime &value)
void SetLastModifiedTimeAfter(Aws::Utils::DateTime &&value)
void SetCreationTimeBefore(Aws::Utils::DateTime &&value)
virtual const char * GetServiceRequestName() const override
ListTrainingJobsRequest & WithNextToken(const char *value)
void SetLastModifiedTimeBefore(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCreationTimeAfter(Aws::Utils::DateTime &&value)
ListTrainingJobsRequest & WithLastModifiedTimeAfter(const Aws::Utils::DateTime &value)
ListTrainingJobsRequest & WithSortOrder(SortOrder &&value)
ListTrainingJobsRequest & WithLastModifiedTimeBefore(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastModifiedTimeBefore() const
const Aws::Utils::DateTime & GetLastModifiedTimeAfter() const
ListTrainingJobsRequest & WithMaxResults(int value)
ListTrainingJobsRequest & WithNextToken(Aws::String &&value)
void SetLastModifiedTimeAfter(const Aws::Utils::DateTime &value)
ListTrainingJobsRequest & WithNameContains(const Aws::String &value)
ListTrainingJobsRequest & WithStatusEquals(TrainingJobStatus &&value)
void SetCreationTimeAfter(const Aws::Utils::DateTime &value)