AWS SDK for C++  1.8.95
AWS SDK for C++
ListExperimentsRequest.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 "ListExperiments"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
43  inline const Aws::Utils::DateTime& GetCreatedAfter() const{ return m_createdAfter; }
44 
48  inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
49 
53  inline void SetCreatedAfter(const Aws::Utils::DateTime& value) { m_createdAfterHasBeenSet = true; m_createdAfter = value; }
54 
58  inline void SetCreatedAfter(Aws::Utils::DateTime&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::move(value); }
59 
63  inline ListExperimentsRequest& WithCreatedAfter(const Aws::Utils::DateTime& value) { SetCreatedAfter(value); return *this;}
64 
68  inline ListExperimentsRequest& WithCreatedAfter(Aws::Utils::DateTime&& value) { SetCreatedAfter(std::move(value)); return *this;}
69 
70 
74  inline const Aws::Utils::DateTime& GetCreatedBefore() const{ return m_createdBefore; }
75 
79  inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; }
80 
84  inline void SetCreatedBefore(const Aws::Utils::DateTime& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = value; }
85 
89  inline void SetCreatedBefore(Aws::Utils::DateTime&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::move(value); }
90 
94  inline ListExperimentsRequest& WithCreatedBefore(const Aws::Utils::DateTime& value) { SetCreatedBefore(value); return *this;}
95 
99  inline ListExperimentsRequest& WithCreatedBefore(Aws::Utils::DateTime&& value) { SetCreatedBefore(std::move(value)); return *this;}
100 
101 
106  inline const SortExperimentsBy& GetSortBy() const{ return m_sortBy; }
107 
112  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
113 
118  inline void SetSortBy(const SortExperimentsBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
119 
124  inline void SetSortBy(SortExperimentsBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
125 
130  inline ListExperimentsRequest& WithSortBy(const SortExperimentsBy& value) { SetSortBy(value); return *this;}
131 
136  inline ListExperimentsRequest& WithSortBy(SortExperimentsBy&& value) { SetSortBy(std::move(value)); return *this;}
137 
138 
142  inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
143 
147  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
148 
152  inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
153 
157  inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
158 
162  inline ListExperimentsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
163 
167  inline ListExperimentsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
168 
169 
175  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
176 
182  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
183 
189  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
190 
196  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
197 
203  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
204 
210  inline ListExperimentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
211 
217  inline ListExperimentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
218 
224  inline ListExperimentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
225 
226 
231  inline int GetMaxResults() const{ return m_maxResults; }
232 
237  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
238 
243  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
244 
249  inline ListExperimentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
250 
251  private:
252 
253  Aws::Utils::DateTime m_createdAfter;
254  bool m_createdAfterHasBeenSet;
255 
256  Aws::Utils::DateTime m_createdBefore;
257  bool m_createdBeforeHasBeenSet;
258 
259  SortExperimentsBy m_sortBy;
260  bool m_sortByHasBeenSet;
261 
262  SortOrder m_sortOrder;
263  bool m_sortOrderHasBeenSet;
264 
265  Aws::String m_nextToken;
266  bool m_nextTokenHasBeenSet;
267 
268  int m_maxResults;
269  bool m_maxResultsHasBeenSet;
270  };
271 
272 } // namespace Model
273 } // namespace SageMaker
274 } // namespace Aws
ListExperimentsRequest & WithSortOrder(SortOrder &&value)
ListExperimentsRequest & WithMaxResults(int value)
ListExperimentsRequest & WithCreatedAfter(Aws::Utils::DateTime &&value)
#define AWS_SAGEMAKER_API
ListExperimentsRequest & WithNextToken(Aws::String &&value)
ListExperimentsRequest & WithSortBy(const SortExperimentsBy &value)
ListExperimentsRequest & WithSortBy(SortExperimentsBy &&value)
void SetCreatedAfter(const Aws::Utils::DateTime &value)
ListExperimentsRequest & WithSortOrder(const SortOrder &value)
void SetCreatedBefore(Aws::Utils::DateTime &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetSortBy(const SortExperimentsBy &value)
virtual const char * GetServiceRequestName() const override
ListExperimentsRequest & WithCreatedBefore(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreatedAfter() const
ListExperimentsRequest & WithNextToken(const char *value)
ListExperimentsRequest & WithCreatedBefore(const Aws::Utils::DateTime &value)
ListExperimentsRequest & WithCreatedAfter(const Aws::Utils::DateTime &value)
void SetCreatedAfter(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Utils::DateTime & GetCreatedBefore() const
ListExperimentsRequest & WithNextToken(const Aws::String &value)
void SetCreatedBefore(const Aws::Utils::DateTime &value)