AWS SDK for C++

AWS SDK for C++ Version 1.11.834

Loading...
Searching...
No Matches
ListJobsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/JobCategory.h>
12#include <aws/sagemaker/model/JobStatus.h>
13#include <aws/sagemaker/model/SortBy.h>
14#include <aws/sagemaker/model/SortOrder.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SageMaker {
20namespace Model {
21
25 public:
26 AWS_SAGEMAKER_API ListJobsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListJobs"; }
33
34 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
39
42 inline JobCategory GetJobCategory() const { return m_jobCategory; }
43 inline bool JobCategoryHasBeenSet() const { return m_jobCategoryHasBeenSet; }
44 inline void SetJobCategory(JobCategory value) {
45 m_jobCategoryHasBeenSet = true;
46 m_jobCategory = value;
47 }
49 SetJobCategory(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
61 template <typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) {
63 m_nextTokenHasBeenSet = true;
64 m_nextToken = std::forward<NextTokenT>(value);
65 }
66 template <typename NextTokenT = Aws::String>
67 ListJobsRequest& WithNextToken(NextTokenT&& value) {
68 SetNextToken(std::forward<NextTokenT>(value));
69 return *this;
70 }
72
74
78 inline int GetMaxResults() const { return m_maxResults; }
79 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
80 inline void SetMaxResults(int value) {
81 m_maxResultsHasBeenSet = true;
82 m_maxResults = value;
83 }
84 inline ListJobsRequest& WithMaxResults(int value) {
85 SetMaxResults(value);
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const { return m_creationTimeAfter; }
95 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
96 template <typename CreationTimeAfterT = Aws::Utils::DateTime>
97 void SetCreationTimeAfter(CreationTimeAfterT&& value) {
98 m_creationTimeAfterHasBeenSet = true;
99 m_creationTimeAfter = std::forward<CreationTimeAfterT>(value);
100 }
101 template <typename CreationTimeAfterT = Aws::Utils::DateTime>
102 ListJobsRequest& WithCreationTimeAfter(CreationTimeAfterT&& value) {
103 SetCreationTimeAfter(std::forward<CreationTimeAfterT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const { return m_creationTimeBefore; }
113 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
114 template <typename CreationTimeBeforeT = Aws::Utils::DateTime>
115 void SetCreationTimeBefore(CreationTimeBeforeT&& value) {
116 m_creationTimeBeforeHasBeenSet = true;
117 m_creationTimeBefore = std::forward<CreationTimeBeforeT>(value);
118 }
119 template <typename CreationTimeBeforeT = Aws::Utils::DateTime>
120 ListJobsRequest& WithCreationTimeBefore(CreationTimeBeforeT&& value) {
121 SetCreationTimeBefore(std::forward<CreationTimeBeforeT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetLastModifiedTimeAfter() const { return m_lastModifiedTimeAfter; }
131 inline bool LastModifiedTimeAfterHasBeenSet() const { return m_lastModifiedTimeAfterHasBeenSet; }
132 template <typename LastModifiedTimeAfterT = Aws::Utils::DateTime>
133 void SetLastModifiedTimeAfter(LastModifiedTimeAfterT&& value) {
134 m_lastModifiedTimeAfterHasBeenSet = true;
135 m_lastModifiedTimeAfter = std::forward<LastModifiedTimeAfterT>(value);
136 }
137 template <typename LastModifiedTimeAfterT = Aws::Utils::DateTime>
138 ListJobsRequest& WithLastModifiedTimeAfter(LastModifiedTimeAfterT&& value) {
139 SetLastModifiedTimeAfter(std::forward<LastModifiedTimeAfterT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetLastModifiedTimeBefore() const { return m_lastModifiedTimeBefore; }
149 inline bool LastModifiedTimeBeforeHasBeenSet() const { return m_lastModifiedTimeBeforeHasBeenSet; }
150 template <typename LastModifiedTimeBeforeT = Aws::Utils::DateTime>
151 void SetLastModifiedTimeBefore(LastModifiedTimeBeforeT&& value) {
152 m_lastModifiedTimeBeforeHasBeenSet = true;
153 m_lastModifiedTimeBefore = std::forward<LastModifiedTimeBeforeT>(value);
154 }
155 template <typename LastModifiedTimeBeforeT = Aws::Utils::DateTime>
156 ListJobsRequest& WithLastModifiedTimeBefore(LastModifiedTimeBeforeT&& value) {
157 SetLastModifiedTimeBefore(std::forward<LastModifiedTimeBeforeT>(value));
158 return *this;
159 }
161
163
167 inline const Aws::String& GetNameContains() const { return m_nameContains; }
168 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
169 template <typename NameContainsT = Aws::String>
170 void SetNameContains(NameContainsT&& value) {
171 m_nameContainsHasBeenSet = true;
172 m_nameContains = std::forward<NameContainsT>(value);
173 }
174 template <typename NameContainsT = Aws::String>
175 ListJobsRequest& WithNameContains(NameContainsT&& value) {
176 SetNameContains(std::forward<NameContainsT>(value));
177 return *this;
178 }
180
182
185 inline SortBy GetSortBy() const { return m_sortBy; }
186 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
187 inline void SetSortBy(SortBy value) {
188 m_sortByHasBeenSet = true;
189 m_sortBy = value;
190 }
192 SetSortBy(value);
193 return *this;
194 }
196
198
202 inline SortOrder GetSortOrder() const { return m_sortOrder; }
203 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
204 inline void SetSortOrder(SortOrder value) {
205 m_sortOrderHasBeenSet = true;
206 m_sortOrder = value;
207 }
209 SetSortOrder(value);
210 return *this;
211 }
213
215
218 inline JobStatus GetStatusEquals() const { return m_statusEquals; }
219 inline bool StatusEqualsHasBeenSet() const { return m_statusEqualsHasBeenSet; }
220 inline void SetStatusEquals(JobStatus value) {
221 m_statusEqualsHasBeenSet = true;
222 m_statusEquals = value;
223 }
225 SetStatusEquals(value);
226 return *this;
227 }
229 private:
230 JobCategory m_jobCategory{JobCategory::NOT_SET};
231
232 Aws::String m_nextToken;
233
234 int m_maxResults{0};
235
236 Aws::Utils::DateTime m_creationTimeAfter{};
237
238 Aws::Utils::DateTime m_creationTimeBefore{};
239
240 Aws::Utils::DateTime m_lastModifiedTimeAfter{};
241
242 Aws::Utils::DateTime m_lastModifiedTimeBefore{};
243
244 Aws::String m_nameContains;
245
246 SortBy m_sortBy{SortBy::NOT_SET};
247
248 SortOrder m_sortOrder{SortOrder::NOT_SET};
249
250 JobStatus m_statusEquals{JobStatus::NOT_SET};
251 bool m_jobCategoryHasBeenSet = false;
252 bool m_nextTokenHasBeenSet = false;
253 bool m_maxResultsHasBeenSet = false;
254 bool m_creationTimeAfterHasBeenSet = false;
255 bool m_creationTimeBeforeHasBeenSet = false;
256 bool m_lastModifiedTimeAfterHasBeenSet = false;
257 bool m_lastModifiedTimeBeforeHasBeenSet = false;
258 bool m_nameContainsHasBeenSet = false;
259 bool m_sortByHasBeenSet = false;
260 bool m_sortOrderHasBeenSet = false;
261 bool m_statusEqualsHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace SageMaker
266} // namespace Aws
const Aws::Utils::DateTime & GetLastModifiedTimeBefore() const
ListJobsRequest & WithLastModifiedTimeBefore(LastModifiedTimeBeforeT &&value)
ListJobsRequest & WithJobCategory(JobCategory value)
void SetCreationTimeBefore(CreationTimeBeforeT &&value)
void SetCreationTimeAfter(CreationTimeAfterT &&value)
const Aws::String & GetNextToken() const
ListJobsRequest & WithSortOrder(SortOrder value)
ListJobsRequest & WithLastModifiedTimeAfter(LastModifiedTimeAfterT &&value)
void SetLastModifiedTimeBefore(LastModifiedTimeBeforeT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetCreationTimeAfter() const
void SetLastModifiedTimeAfter(LastModifiedTimeAfterT &&value)
ListJobsRequest & WithNextToken(NextTokenT &&value)
ListJobsRequest & WithMaxResults(int value)
void SetNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Utils::DateTime & GetCreationTimeBefore() const
ListJobsRequest & WithCreationTimeAfter(CreationTimeAfterT &&value)
const Aws::String & GetNameContains() const
ListJobsRequest & WithSortBy(SortBy value)
ListJobsRequest & WithStatusEquals(JobStatus value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API ListJobsRequest()=default
const Aws::Utils::DateTime & GetLastModifiedTimeAfter() const
ListJobsRequest & WithCreationTimeBefore(CreationTimeBeforeT &&value)
void SetNameContains(NameContainsT &&value)
ListJobsRequest & WithNameContains(NameContainsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String