AWS SDK for C++  1.8.95
AWS SDK for C++
ListModelsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace SageMaker
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "ListModels"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
43  inline const ModelSortKey& GetSortBy() const{ return m_sortBy; }
44 
48  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
49 
53  inline void SetSortBy(const ModelSortKey& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
54 
58  inline void SetSortBy(ModelSortKey&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
59 
63  inline ListModelsRequest& WithSortBy(const ModelSortKey& value) { SetSortBy(value); return *this;}
64 
68  inline ListModelsRequest& WithSortBy(ModelSortKey&& value) { SetSortBy(std::move(value)); return *this;}
69 
70 
74  inline const OrderKey& GetSortOrder() const{ return m_sortOrder; }
75 
79  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
80 
84  inline void SetSortOrder(const OrderKey& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
85 
89  inline void SetSortOrder(OrderKey&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
90 
94  inline ListModelsRequest& WithSortOrder(const OrderKey& value) { SetSortOrder(value); return *this;}
95 
99  inline ListModelsRequest& WithSortOrder(OrderKey&& value) { SetSortOrder(std::move(value)); return *this;}
100 
101 
107  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
108 
114  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
115 
121  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
122 
128  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
129 
135  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
136 
142  inline ListModelsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
143 
149  inline ListModelsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
150 
156  inline ListModelsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
157 
158 
162  inline int GetMaxResults() const{ return m_maxResults; }
163 
167  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
168 
172  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
173 
177  inline ListModelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
178 
179 
184  inline const Aws::String& GetNameContains() const{ return m_nameContains; }
185 
190  inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
191 
196  inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; }
197 
202  inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); }
203 
208  inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); }
209 
214  inline ListModelsRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;}
215 
220  inline ListModelsRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;}
221 
226  inline ListModelsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;}
227 
228 
233  inline const Aws::Utils::DateTime& GetCreationTimeBefore() const{ return m_creationTimeBefore; }
234 
239  inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
240 
245  inline void SetCreationTimeBefore(const Aws::Utils::DateTime& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = value; }
246 
251  inline void SetCreationTimeBefore(Aws::Utils::DateTime&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::move(value); }
252 
257  inline ListModelsRequest& WithCreationTimeBefore(const Aws::Utils::DateTime& value) { SetCreationTimeBefore(value); return *this;}
258 
263  inline ListModelsRequest& WithCreationTimeBefore(Aws::Utils::DateTime&& value) { SetCreationTimeBefore(std::move(value)); return *this;}
264 
265 
270  inline const Aws::Utils::DateTime& GetCreationTimeAfter() const{ return m_creationTimeAfter; }
271 
276  inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
277 
282  inline void SetCreationTimeAfter(const Aws::Utils::DateTime& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = value; }
283 
288  inline void SetCreationTimeAfter(Aws::Utils::DateTime&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::move(value); }
289 
294  inline ListModelsRequest& WithCreationTimeAfter(const Aws::Utils::DateTime& value) { SetCreationTimeAfter(value); return *this;}
295 
300  inline ListModelsRequest& WithCreationTimeAfter(Aws::Utils::DateTime&& value) { SetCreationTimeAfter(std::move(value)); return *this;}
301 
302  private:
303 
304  ModelSortKey m_sortBy;
305  bool m_sortByHasBeenSet;
306 
307  OrderKey m_sortOrder;
308  bool m_sortOrderHasBeenSet;
309 
310  Aws::String m_nextToken;
311  bool m_nextTokenHasBeenSet;
312 
313  int m_maxResults;
314  bool m_maxResultsHasBeenSet;
315 
316  Aws::String m_nameContains;
317  bool m_nameContainsHasBeenSet;
318 
319  Aws::Utils::DateTime m_creationTimeBefore;
320  bool m_creationTimeBeforeHasBeenSet;
321 
322  Aws::Utils::DateTime m_creationTimeAfter;
323  bool m_creationTimeAfterHasBeenSet;
324  };
325 
326 } // namespace Model
327 } // namespace SageMaker
328 } // namespace Aws
#define AWS_SAGEMAKER_API
ListModelsRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ListModelsRequest & WithCreationTimeAfter(Aws::Utils::DateTime &&value)
ListModelsRequest & WithSortOrder(OrderKey &&value)
void SetSortBy(const ModelSortKey &value)
ListModelsRequest & WithNameContains(const char *value)
const Aws::String & GetNextToken() const
void SetCreationTimeBefore(Aws::Utils::DateTime &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ListModelsRequest & WithSortBy(const ModelSortKey &value)
ListModelsRequest & WithNameContains(Aws::String &&value)
const ModelSortKey & GetSortBy() const
void SetNameContains(const Aws::String &value)
ListModelsRequest & WithNextToken(const Aws::String &value)
void SetCreationTimeAfter(const Aws::Utils::DateTime &value)
void SetNextToken(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
ListModelsRequest & WithSortBy(ModelSortKey &&value)
ListModelsRequest & WithCreationTimeBefore(const Aws::Utils::DateTime &value)
void SetCreationTimeAfter(Aws::Utils::DateTime &&value)
ListModelsRequest & WithSortOrder(const OrderKey &value)
ListModelsRequest & WithMaxResults(int value)
const Aws::String & GetNameContains() const
const Aws::Utils::DateTime & GetCreationTimeBefore() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSortOrder(const OrderKey &value)
ListModelsRequest & WithCreationTimeAfter(const Aws::Utils::DateTime &value)
ListModelsRequest & WithCreationTimeBefore(Aws::Utils::DateTime &&value)
ListModelsRequest & WithNameContains(const Aws::String &value)
void SetCreationTimeBefore(const Aws::Utils::DateTime &value)
ListModelsRequest & WithNextToken(const char *value)