AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListTrainingJobsRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/sagemaker/model/TrainingJobStatus.h>
12#include <aws/sagemaker/model/SortBy.h>
13#include <aws/sagemaker/model/SortOrder.h>
14#include <aws/sagemaker/model/WarmPoolResourceStatus.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API ListTrainingJobsRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListTrainingJobs"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
48 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
49 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
50 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
51 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
52 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
53 inline ListTrainingJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
54 inline ListTrainingJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
55 inline ListTrainingJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
57
59
62 inline int GetMaxResults() const{ return m_maxResults; }
63 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
64 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
65 inline ListTrainingJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
67
69
73 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const{ return m_creationTimeAfter; }
74 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
75 inline void SetCreationTimeAfter(const Aws::Utils::DateTime& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = value; }
76 inline void SetCreationTimeAfter(Aws::Utils::DateTime&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::move(value); }
80
82
86 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const{ return m_creationTimeBefore; }
87 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
88 inline void SetCreationTimeBefore(const Aws::Utils::DateTime& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = value; }
89 inline void SetCreationTimeBefore(Aws::Utils::DateTime&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::move(value); }
93
95
99 inline const Aws::Utils::DateTime& GetLastModifiedTimeAfter() const{ return m_lastModifiedTimeAfter; }
100 inline bool LastModifiedTimeAfterHasBeenSet() const { return m_lastModifiedTimeAfterHasBeenSet; }
101 inline void SetLastModifiedTimeAfter(const Aws::Utils::DateTime& value) { m_lastModifiedTimeAfterHasBeenSet = true; m_lastModifiedTimeAfter = value; }
102 inline void SetLastModifiedTimeAfter(Aws::Utils::DateTime&& value) { m_lastModifiedTimeAfterHasBeenSet = true; m_lastModifiedTimeAfter = std::move(value); }
106
108
112 inline const Aws::Utils::DateTime& GetLastModifiedTimeBefore() const{ return m_lastModifiedTimeBefore; }
113 inline bool LastModifiedTimeBeforeHasBeenSet() const { return m_lastModifiedTimeBeforeHasBeenSet; }
114 inline void SetLastModifiedTimeBefore(const Aws::Utils::DateTime& value) { m_lastModifiedTimeBeforeHasBeenSet = true; m_lastModifiedTimeBefore = value; }
115 inline void SetLastModifiedTimeBefore(Aws::Utils::DateTime&& value) { m_lastModifiedTimeBeforeHasBeenSet = true; m_lastModifiedTimeBefore = std::move(value); }
119
121
125 inline const Aws::String& GetNameContains() const{ return m_nameContains; }
126 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
127 inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; }
128 inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); }
129 inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); }
130 inline ListTrainingJobsRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;}
131 inline ListTrainingJobsRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;}
132 inline ListTrainingJobsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;}
134
136
139 inline const TrainingJobStatus& GetStatusEquals() const{ return m_statusEquals; }
140 inline bool StatusEqualsHasBeenSet() const { return m_statusEqualsHasBeenSet; }
141 inline void SetStatusEquals(const TrainingJobStatus& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = value; }
142 inline void SetStatusEquals(TrainingJobStatus&& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = std::move(value); }
143 inline ListTrainingJobsRequest& WithStatusEquals(const TrainingJobStatus& value) { SetStatusEquals(value); return *this;}
144 inline ListTrainingJobsRequest& WithStatusEquals(TrainingJobStatus&& value) { SetStatusEquals(std::move(value)); return *this;}
146
148
151 inline const SortBy& GetSortBy() const{ return m_sortBy; }
152 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
153 inline void SetSortBy(const SortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
154 inline void SetSortBy(SortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
155 inline ListTrainingJobsRequest& WithSortBy(const SortBy& value) { SetSortBy(value); return *this;}
156 inline ListTrainingJobsRequest& WithSortBy(SortBy&& value) { SetSortBy(std::move(value)); return *this;}
158
160
163 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
164 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
165 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
166 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
167 inline ListTrainingJobsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
168 inline ListTrainingJobsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
170
172
176 inline const WarmPoolResourceStatus& GetWarmPoolStatusEquals() const{ return m_warmPoolStatusEquals; }
177 inline bool WarmPoolStatusEqualsHasBeenSet() const { return m_warmPoolStatusEqualsHasBeenSet; }
178 inline void SetWarmPoolStatusEquals(const WarmPoolResourceStatus& value) { m_warmPoolStatusEqualsHasBeenSet = true; m_warmPoolStatusEquals = value; }
179 inline void SetWarmPoolStatusEquals(WarmPoolResourceStatus&& value) { m_warmPoolStatusEqualsHasBeenSet = true; m_warmPoolStatusEquals = std::move(value); }
183 private:
184
185 Aws::String m_nextToken;
186 bool m_nextTokenHasBeenSet = false;
187
188 int m_maxResults;
189 bool m_maxResultsHasBeenSet = false;
190
191 Aws::Utils::DateTime m_creationTimeAfter;
192 bool m_creationTimeAfterHasBeenSet = false;
193
194 Aws::Utils::DateTime m_creationTimeBefore;
195 bool m_creationTimeBeforeHasBeenSet = false;
196
197 Aws::Utils::DateTime m_lastModifiedTimeAfter;
198 bool m_lastModifiedTimeAfterHasBeenSet = false;
199
200 Aws::Utils::DateTime m_lastModifiedTimeBefore;
201 bool m_lastModifiedTimeBeforeHasBeenSet = false;
202
203 Aws::String m_nameContains;
204 bool m_nameContainsHasBeenSet = false;
205
206 TrainingJobStatus m_statusEquals;
207 bool m_statusEqualsHasBeenSet = false;
208
209 SortBy m_sortBy;
210 bool m_sortByHasBeenSet = false;
211
212 SortOrder m_sortOrder;
213 bool m_sortOrderHasBeenSet = false;
214
215 WarmPoolResourceStatus m_warmPoolStatusEquals;
216 bool m_warmPoolStatusEqualsHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace SageMaker
221} // namespace Aws
const Aws::Utils::DateTime & GetLastModifiedTimeBefore() const
void SetCreationTimeBefore(Aws::Utils::DateTime &&value)
void SetLastModifiedTimeAfter(const Aws::Utils::DateTime &value)
ListTrainingJobsRequest & WithMaxResults(int value)
ListTrainingJobsRequest & WithSortOrder(const SortOrder &value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
ListTrainingJobsRequest & WithLastModifiedTimeBefore(Aws::Utils::DateTime &&value)
void SetLastModifiedTimeBefore(Aws::Utils::DateTime &&value)
ListTrainingJobsRequest & WithNameContains(const char *value)
ListTrainingJobsRequest & WithSortOrder(SortOrder &&value)
ListTrainingJobsRequest & WithNameContains(const Aws::String &value)
void SetCreationTimeBefore(const Aws::Utils::DateTime &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetStatusEquals(const TrainingJobStatus &value)
ListTrainingJobsRequest & WithStatusEquals(TrainingJobStatus &&value)
ListTrainingJobsRequest & WithNextToken(Aws::String &&value)
ListTrainingJobsRequest & WithSortBy(SortBy &&value)
ListTrainingJobsRequest & WithLastModifiedTimeAfter(Aws::Utils::DateTime &&value)
ListTrainingJobsRequest & WithCreationTimeAfter(const Aws::Utils::DateTime &value)
ListTrainingJobsRequest & WithWarmPoolStatusEquals(WarmPoolResourceStatus &&value)
const Aws::Utils::DateTime & GetLastModifiedTimeAfter() const
virtual const char * GetServiceRequestName() const override
ListTrainingJobsRequest & WithCreationTimeBefore(const Aws::Utils::DateTime &value)
ListTrainingJobsRequest & WithNextToken(const char *value)
const Aws::Utils::DateTime & GetCreationTimeBefore() const
void SetWarmPoolStatusEquals(WarmPoolResourceStatus &&value)
void SetLastModifiedTimeBefore(const Aws::Utils::DateTime &value)
ListTrainingJobsRequest & WithCreationTimeAfter(Aws::Utils::DateTime &&value)
ListTrainingJobsRequest & WithStatusEquals(const TrainingJobStatus &value)
ListTrainingJobsRequest & WithSortBy(const SortBy &value)
ListTrainingJobsRequest & WithLastModifiedTimeAfter(const Aws::Utils::DateTime &value)
ListTrainingJobsRequest & WithCreationTimeBefore(Aws::Utils::DateTime &&value)
void SetLastModifiedTimeAfter(Aws::Utils::DateTime &&value)
void SetWarmPoolStatusEquals(const WarmPoolResourceStatus &value)
void SetCreationTimeAfter(const Aws::Utils::DateTime &value)
const WarmPoolResourceStatus & GetWarmPoolStatusEquals() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListTrainingJobsRequest & WithNameContains(Aws::String &&value)
ListTrainingJobsRequest & WithNextToken(const Aws::String &value)
ListTrainingJobsRequest & WithLastModifiedTimeBefore(const Aws::Utils::DateTime &value)
ListTrainingJobsRequest & WithWarmPoolStatusEquals(const WarmPoolResourceStatus &value)
void SetCreationTimeAfter(Aws::Utils::DateTime &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String