AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListOptimizationJobsRequest.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/OptimizationJobStatus.h>
12#include <aws/sagemaker/model/ListOptimizationJobsSortBy.h>
13#include <aws/sagemaker/model/SortOrder.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SageMaker
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SAGEMAKER_API ListOptimizationJobsRequest();
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 "ListOptimizationJobs"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
40
42
47 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
48 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
49 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
50 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
51 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
52 inline ListOptimizationJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
53 inline ListOptimizationJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
54 inline ListOptimizationJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
56
58
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 ListOptimizationJobsRequest& 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
126 inline const Aws::String& GetOptimizationContains() const{ return m_optimizationContains; }
127 inline bool OptimizationContainsHasBeenSet() const { return m_optimizationContainsHasBeenSet; }
128 inline void SetOptimizationContains(const Aws::String& value) { m_optimizationContainsHasBeenSet = true; m_optimizationContains = value; }
129 inline void SetOptimizationContains(Aws::String&& value) { m_optimizationContainsHasBeenSet = true; m_optimizationContains = std::move(value); }
130 inline void SetOptimizationContains(const char* value) { m_optimizationContainsHasBeenSet = true; m_optimizationContains.assign(value); }
133 inline ListOptimizationJobsRequest& WithOptimizationContains(const char* value) { SetOptimizationContains(value); return *this;}
135
137
141 inline const Aws::String& GetNameContains() const{ return m_nameContains; }
142 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
143 inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; }
144 inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); }
145 inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); }
146 inline ListOptimizationJobsRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;}
147 inline ListOptimizationJobsRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;}
148 inline ListOptimizationJobsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;}
150
152
156 inline const OptimizationJobStatus& GetStatusEquals() const{ return m_statusEquals; }
157 inline bool StatusEqualsHasBeenSet() const { return m_statusEqualsHasBeenSet; }
158 inline void SetStatusEquals(const OptimizationJobStatus& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = value; }
159 inline void SetStatusEquals(OptimizationJobStatus&& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = std::move(value); }
161 inline ListOptimizationJobsRequest& WithStatusEquals(OptimizationJobStatus&& value) { SetStatusEquals(std::move(value)); return *this;}
163
165
169 inline const ListOptimizationJobsSortBy& GetSortBy() const{ return m_sortBy; }
170 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
171 inline void SetSortBy(const ListOptimizationJobsSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
172 inline void SetSortBy(ListOptimizationJobsSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
173 inline ListOptimizationJobsRequest& WithSortBy(const ListOptimizationJobsSortBy& value) { SetSortBy(value); return *this;}
174 inline ListOptimizationJobsRequest& WithSortBy(ListOptimizationJobsSortBy&& value) { SetSortBy(std::move(value)); return *this;}
176
178
181 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
182 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
183 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
184 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
185 inline ListOptimizationJobsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
186 inline ListOptimizationJobsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
188 private:
189
190 Aws::String m_nextToken;
191 bool m_nextTokenHasBeenSet = false;
192
193 int m_maxResults;
194 bool m_maxResultsHasBeenSet = false;
195
196 Aws::Utils::DateTime m_creationTimeAfter;
197 bool m_creationTimeAfterHasBeenSet = false;
198
199 Aws::Utils::DateTime m_creationTimeBefore;
200 bool m_creationTimeBeforeHasBeenSet = false;
201
202 Aws::Utils::DateTime m_lastModifiedTimeAfter;
203 bool m_lastModifiedTimeAfterHasBeenSet = false;
204
205 Aws::Utils::DateTime m_lastModifiedTimeBefore;
206 bool m_lastModifiedTimeBeforeHasBeenSet = false;
207
208 Aws::String m_optimizationContains;
209 bool m_optimizationContainsHasBeenSet = false;
210
211 Aws::String m_nameContains;
212 bool m_nameContainsHasBeenSet = false;
213
214 OptimizationJobStatus m_statusEquals;
215 bool m_statusEqualsHasBeenSet = false;
216
218 bool m_sortByHasBeenSet = false;
219
220 SortOrder m_sortOrder;
221 bool m_sortOrderHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace SageMaker
226} // namespace Aws
void SetStatusEquals(const OptimizationJobStatus &value)
ListOptimizationJobsRequest & WithStatusEquals(OptimizationJobStatus &&value)
ListOptimizationJobsRequest & WithNameContains(const char *value)
void SetLastModifiedTimeAfter(const Aws::Utils::DateTime &value)
ListOptimizationJobsRequest & WithStatusEquals(const OptimizationJobStatus &value)
ListOptimizationJobsRequest & WithSortBy(const ListOptimizationJobsSortBy &value)
const ListOptimizationJobsSortBy & GetSortBy() const
ListOptimizationJobsRequest & WithNameContains(const Aws::String &value)
ListOptimizationJobsRequest & WithNameContains(Aws::String &&value)
ListOptimizationJobsRequest & WithLastModifiedTimeAfter(const Aws::Utils::DateTime &value)
ListOptimizationJobsRequest & WithOptimizationContains(Aws::String &&value)
ListOptimizationJobsRequest & WithSortBy(ListOptimizationJobsSortBy &&value)
void SetCreationTimeBefore(const Aws::Utils::DateTime &value)
ListOptimizationJobsRequest & WithCreationTimeAfter(const Aws::Utils::DateTime &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
ListOptimizationJobsRequest & WithOptimizationContains(const Aws::String &value)
ListOptimizationJobsRequest & WithNextToken(Aws::String &&value)
ListOptimizationJobsRequest & WithLastModifiedTimeBefore(const Aws::Utils::DateTime &value)
ListOptimizationJobsRequest & WithCreationTimeBefore(const Aws::Utils::DateTime &value)
ListOptimizationJobsRequest & WithOptimizationContains(const char *value)
ListOptimizationJobsRequest & WithNextToken(const char *value)
ListOptimizationJobsRequest & WithLastModifiedTimeBefore(Aws::Utils::DateTime &&value)
virtual const char * GetServiceRequestName() const override
ListOptimizationJobsRequest & WithSortOrder(const SortOrder &value)
ListOptimizationJobsRequest & WithCreationTimeAfter(Aws::Utils::DateTime &&value)
ListOptimizationJobsRequest & WithLastModifiedTimeAfter(Aws::Utils::DateTime &&value)
ListOptimizationJobsRequest & WithMaxResults(int value)
void SetLastModifiedTimeBefore(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastModifiedTimeAfter() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetCreationTimeAfter(const Aws::Utils::DateTime &value)
ListOptimizationJobsRequest & WithSortOrder(SortOrder &&value)
void SetSortBy(const ListOptimizationJobsSortBy &value)
ListOptimizationJobsRequest & WithCreationTimeBefore(Aws::Utils::DateTime &&value)
ListOptimizationJobsRequest & WithNextToken(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String