AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NextTokenT = Aws::String>
51 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
52 template<typename NextTokenT = Aws::String>
53 ListTrainingJobsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
55
57
60 inline int GetMaxResults() const { return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
63 inline ListTrainingJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
65
67
71 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const { return m_creationTimeAfter; }
72 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
73 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
74 void SetCreationTimeAfter(CreationTimeAfterT&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::forward<CreationTimeAfterT>(value); }
75 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
76 ListTrainingJobsRequest& WithCreationTimeAfter(CreationTimeAfterT&& value) { SetCreationTimeAfter(std::forward<CreationTimeAfterT>(value)); return *this;}
78
80
84 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const { return m_creationTimeBefore; }
85 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
86 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
87 void SetCreationTimeBefore(CreationTimeBeforeT&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::forward<CreationTimeBeforeT>(value); }
88 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
89 ListTrainingJobsRequest& WithCreationTimeBefore(CreationTimeBeforeT&& value) { SetCreationTimeBefore(std::forward<CreationTimeBeforeT>(value)); return *this;}
91
93
97 inline const Aws::Utils::DateTime& GetLastModifiedTimeAfter() const { return m_lastModifiedTimeAfter; }
98 inline bool LastModifiedTimeAfterHasBeenSet() const { return m_lastModifiedTimeAfterHasBeenSet; }
99 template<typename LastModifiedTimeAfterT = Aws::Utils::DateTime>
100 void SetLastModifiedTimeAfter(LastModifiedTimeAfterT&& value) { m_lastModifiedTimeAfterHasBeenSet = true; m_lastModifiedTimeAfter = std::forward<LastModifiedTimeAfterT>(value); }
101 template<typename LastModifiedTimeAfterT = Aws::Utils::DateTime>
102 ListTrainingJobsRequest& WithLastModifiedTimeAfter(LastModifiedTimeAfterT&& value) { SetLastModifiedTimeAfter(std::forward<LastModifiedTimeAfterT>(value)); return *this;}
104
106
110 inline const Aws::Utils::DateTime& GetLastModifiedTimeBefore() const { return m_lastModifiedTimeBefore; }
111 inline bool LastModifiedTimeBeforeHasBeenSet() const { return m_lastModifiedTimeBeforeHasBeenSet; }
112 template<typename LastModifiedTimeBeforeT = Aws::Utils::DateTime>
113 void SetLastModifiedTimeBefore(LastModifiedTimeBeforeT&& value) { m_lastModifiedTimeBeforeHasBeenSet = true; m_lastModifiedTimeBefore = std::forward<LastModifiedTimeBeforeT>(value); }
114 template<typename LastModifiedTimeBeforeT = Aws::Utils::DateTime>
115 ListTrainingJobsRequest& WithLastModifiedTimeBefore(LastModifiedTimeBeforeT&& value) { SetLastModifiedTimeBefore(std::forward<LastModifiedTimeBeforeT>(value)); return *this;}
117
119
123 inline const Aws::String& GetNameContains() const { return m_nameContains; }
124 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
125 template<typename NameContainsT = Aws::String>
126 void SetNameContains(NameContainsT&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::forward<NameContainsT>(value); }
127 template<typename NameContainsT = Aws::String>
128 ListTrainingJobsRequest& WithNameContains(NameContainsT&& value) { SetNameContains(std::forward<NameContainsT>(value)); return *this;}
130
132
135 inline TrainingJobStatus GetStatusEquals() const { return m_statusEquals; }
136 inline bool StatusEqualsHasBeenSet() const { return m_statusEqualsHasBeenSet; }
137 inline void SetStatusEquals(TrainingJobStatus value) { m_statusEqualsHasBeenSet = true; m_statusEquals = value; }
140
142
145 inline SortBy GetSortBy() const { return m_sortBy; }
146 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
147 inline void SetSortBy(SortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
148 inline ListTrainingJobsRequest& WithSortBy(SortBy value) { SetSortBy(value); return *this;}
150
152
155 inline SortOrder GetSortOrder() const { return m_sortOrder; }
156 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
157 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
158 inline ListTrainingJobsRequest& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
160
162
166 inline WarmPoolResourceStatus GetWarmPoolStatusEquals() const { return m_warmPoolStatusEquals; }
167 inline bool WarmPoolStatusEqualsHasBeenSet() const { return m_warmPoolStatusEqualsHasBeenSet; }
168 inline void SetWarmPoolStatusEquals(WarmPoolResourceStatus value) { m_warmPoolStatusEqualsHasBeenSet = true; m_warmPoolStatusEquals = value; }
171
173
180 inline const Aws::String& GetTrainingPlanArnEquals() const { return m_trainingPlanArnEquals; }
181 inline bool TrainingPlanArnEqualsHasBeenSet() const { return m_trainingPlanArnEqualsHasBeenSet; }
182 template<typename TrainingPlanArnEqualsT = Aws::String>
183 void SetTrainingPlanArnEquals(TrainingPlanArnEqualsT&& value) { m_trainingPlanArnEqualsHasBeenSet = true; m_trainingPlanArnEquals = std::forward<TrainingPlanArnEqualsT>(value); }
184 template<typename TrainingPlanArnEqualsT = Aws::String>
185 ListTrainingJobsRequest& WithTrainingPlanArnEquals(TrainingPlanArnEqualsT&& value) { SetTrainingPlanArnEquals(std::forward<TrainingPlanArnEqualsT>(value)); return *this;}
187 private:
188
189 Aws::String m_nextToken;
190 bool m_nextTokenHasBeenSet = false;
191
192 int m_maxResults{0};
193 bool m_maxResultsHasBeenSet = false;
194
195 Aws::Utils::DateTime m_creationTimeAfter{};
196 bool m_creationTimeAfterHasBeenSet = false;
197
198 Aws::Utils::DateTime m_creationTimeBefore{};
199 bool m_creationTimeBeforeHasBeenSet = false;
200
201 Aws::Utils::DateTime m_lastModifiedTimeAfter{};
202 bool m_lastModifiedTimeAfterHasBeenSet = false;
203
204 Aws::Utils::DateTime m_lastModifiedTimeBefore{};
205 bool m_lastModifiedTimeBeforeHasBeenSet = false;
206
207 Aws::String m_nameContains;
208 bool m_nameContainsHasBeenSet = false;
209
211 bool m_statusEqualsHasBeenSet = false;
212
213 SortBy m_sortBy{SortBy::NOT_SET};
214 bool m_sortByHasBeenSet = false;
215
216 SortOrder m_sortOrder{SortOrder::NOT_SET};
217 bool m_sortOrderHasBeenSet = false;
218
220 bool m_warmPoolStatusEqualsHasBeenSet = false;
221
222 Aws::String m_trainingPlanArnEquals;
223 bool m_trainingPlanArnEqualsHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace SageMaker
228} // namespace Aws
const Aws::Utils::DateTime & GetLastModifiedTimeBefore() const
ListTrainingJobsRequest & WithLastModifiedTimeBefore(LastModifiedTimeBeforeT &&value)
ListTrainingJobsRequest & WithMaxResults(int value)
ListTrainingJobsRequest & WithCreationTimeAfter(CreationTimeAfterT &&value)
ListTrainingJobsRequest & WithSortBy(SortBy value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
ListTrainingJobsRequest & WithSortOrder(SortOrder value)
ListTrainingJobsRequest & WithCreationTimeBefore(CreationTimeBeforeT &&value)
void SetCreationTimeBefore(CreationTimeBeforeT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetCreationTimeAfter(CreationTimeAfterT &&value)
void SetLastModifiedTimeAfter(LastModifiedTimeAfterT &&value)
ListTrainingJobsRequest & WithLastModifiedTimeAfter(LastModifiedTimeAfterT &&value)
ListTrainingJobsRequest & WithNameContains(NameContainsT &&value)
AWS_SAGEMAKER_API ListTrainingJobsRequest()=default
const Aws::Utils::DateTime & GetLastModifiedTimeAfter() const
virtual const char * GetServiceRequestName() const override
ListTrainingJobsRequest & WithTrainingPlanArnEquals(TrainingPlanArnEqualsT &&value)
const Aws::Utils::DateTime & GetCreationTimeBefore() const
void SetWarmPoolStatusEquals(WarmPoolResourceStatus value)
ListTrainingJobsRequest & WithWarmPoolStatusEquals(WarmPoolResourceStatus value)
ListTrainingJobsRequest & WithStatusEquals(TrainingJobStatus value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListTrainingJobsRequest & WithNextToken(NextTokenT &&value)
void SetTrainingPlanArnEquals(TrainingPlanArnEqualsT &&value)
void SetLastModifiedTimeBefore(LastModifiedTimeBeforeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String