AWS SDK for C++  1.9.158
AWS SDK for C++
ListContextsRequest.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 "ListContexts"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetSourceUri() const{ return m_sourceUri; }
44 
48  inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; }
49 
53  inline void SetSourceUri(const Aws::String& value) { m_sourceUriHasBeenSet = true; m_sourceUri = value; }
54 
58  inline void SetSourceUri(Aws::String&& value) { m_sourceUriHasBeenSet = true; m_sourceUri = std::move(value); }
59 
63  inline void SetSourceUri(const char* value) { m_sourceUriHasBeenSet = true; m_sourceUri.assign(value); }
64 
68  inline ListContextsRequest& WithSourceUri(const Aws::String& value) { SetSourceUri(value); return *this;}
69 
73  inline ListContextsRequest& WithSourceUri(Aws::String&& value) { SetSourceUri(std::move(value)); return *this;}
74 
78  inline ListContextsRequest& WithSourceUri(const char* value) { SetSourceUri(value); return *this;}
79 
80 
84  inline const Aws::String& GetContextType() const{ return m_contextType; }
85 
89  inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
90 
94  inline void SetContextType(const Aws::String& value) { m_contextTypeHasBeenSet = true; m_contextType = value; }
95 
99  inline void SetContextType(Aws::String&& value) { m_contextTypeHasBeenSet = true; m_contextType = std::move(value); }
100 
104  inline void SetContextType(const char* value) { m_contextTypeHasBeenSet = true; m_contextType.assign(value); }
105 
109  inline ListContextsRequest& WithContextType(const Aws::String& value) { SetContextType(value); return *this;}
110 
114  inline ListContextsRequest& WithContextType(Aws::String&& value) { SetContextType(std::move(value)); return *this;}
115 
119  inline ListContextsRequest& WithContextType(const char* value) { SetContextType(value); return *this;}
120 
121 
126  inline const Aws::Utils::DateTime& GetCreatedAfter() const{ return m_createdAfter; }
127 
132  inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
133 
138  inline void SetCreatedAfter(const Aws::Utils::DateTime& value) { m_createdAfterHasBeenSet = true; m_createdAfter = value; }
139 
144  inline void SetCreatedAfter(Aws::Utils::DateTime&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::move(value); }
145 
150  inline ListContextsRequest& WithCreatedAfter(const Aws::Utils::DateTime& value) { SetCreatedAfter(value); return *this;}
151 
156  inline ListContextsRequest& WithCreatedAfter(Aws::Utils::DateTime&& value) { SetCreatedAfter(std::move(value)); return *this;}
157 
158 
163  inline const Aws::Utils::DateTime& GetCreatedBefore() const{ return m_createdBefore; }
164 
169  inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; }
170 
175  inline void SetCreatedBefore(const Aws::Utils::DateTime& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = value; }
176 
181  inline void SetCreatedBefore(Aws::Utils::DateTime&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::move(value); }
182 
187  inline ListContextsRequest& WithCreatedBefore(const Aws::Utils::DateTime& value) { SetCreatedBefore(value); return *this;}
188 
193  inline ListContextsRequest& WithCreatedBefore(Aws::Utils::DateTime&& value) { SetCreatedBefore(std::move(value)); return *this;}
194 
195 
200  inline const SortContextsBy& GetSortBy() const{ return m_sortBy; }
201 
206  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
207 
212  inline void SetSortBy(const SortContextsBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
213 
218  inline void SetSortBy(SortContextsBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
219 
224  inline ListContextsRequest& WithSortBy(const SortContextsBy& value) { SetSortBy(value); return *this;}
225 
230  inline ListContextsRequest& WithSortBy(SortContextsBy&& value) { SetSortBy(std::move(value)); return *this;}
231 
232 
236  inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
237 
241  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
242 
246  inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
247 
251  inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
252 
256  inline ListContextsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
257 
261  inline ListContextsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
262 
263 
268  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
269 
274  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
275 
280  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
281 
286  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
287 
292  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
293 
298  inline ListContextsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
299 
304  inline ListContextsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
305 
310  inline ListContextsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
311 
312 
317  inline int GetMaxResults() const{ return m_maxResults; }
318 
323  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
324 
329  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
330 
335  inline ListContextsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
336 
337  private:
338 
339  Aws::String m_sourceUri;
340  bool m_sourceUriHasBeenSet;
341 
342  Aws::String m_contextType;
343  bool m_contextTypeHasBeenSet;
344 
345  Aws::Utils::DateTime m_createdAfter;
346  bool m_createdAfterHasBeenSet;
347 
348  Aws::Utils::DateTime m_createdBefore;
349  bool m_createdBeforeHasBeenSet;
350 
351  SortContextsBy m_sortBy;
352  bool m_sortByHasBeenSet;
353 
354  SortOrder m_sortOrder;
355  bool m_sortOrderHasBeenSet;
356 
357  Aws::String m_nextToken;
358  bool m_nextTokenHasBeenSet;
359 
360  int m_maxResults;
361  bool m_maxResultsHasBeenSet;
362  };
363 
364 } // namespace Model
365 } // namespace SageMaker
366 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::SageMaker::Model::ListContextsRequest::ListContextsRequest
ListContextsRequest()
Aws::SageMaker::Model::ListContextsRequest::WithCreatedAfter
ListContextsRequest & WithCreatedAfter(const Aws::Utils::DateTime &value)
Definition: ListContextsRequest.h:150
Aws::SageMaker::Model::ListContextsRequest::SetSourceUri
void SetSourceUri(const Aws::String &value)
Definition: ListContextsRequest.h:53
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::ListContextsRequest::GetSortOrder
const SortOrder & GetSortOrder() const
Definition: ListContextsRequest.h:236
Aws::SageMaker::Model::ListContextsRequest::WithSortOrder
ListContextsRequest & WithSortOrder(SortOrder &&value)
Definition: ListContextsRequest.h:261
SageMaker_EXPORTS.h
Aws::SageMaker::Model::ListContextsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListContextsRequest.h:268
Aws::SageMaker::Model::ListContextsRequest::SetCreatedBefore
void SetCreatedBefore(Aws::Utils::DateTime &&value)
Definition: ListContextsRequest.h:181
Aws::SageMaker::Model::SortOrder
SortOrder
Definition: SortOrder.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::ListContextsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::ListContextsRequest::WithCreatedBefore
ListContextsRequest & WithCreatedBefore(Aws::Utils::DateTime &&value)
Definition: ListContextsRequest.h:193
Aws::SageMaker::Model::ListContextsRequest::GetCreatedBefore
const Aws::Utils::DateTime & GetCreatedBefore() const
Definition: ListContextsRequest.h:163
Aws::SageMaker::Model::ListContextsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListContextsRequest.h:329
DateTime.h
Aws::SageMaker::Model::ListContextsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListContextsRequest.h:317
Aws::SageMaker::Model::ListContextsRequest::CreatedBeforeHasBeenSet
bool CreatedBeforeHasBeenSet() const
Definition: ListContextsRequest.h:169
Aws::SageMaker::Model::ListContextsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListContextsRequest.h:323
Aws::SageMaker::Model::SortContextsBy
SortContextsBy
Definition: SortContextsBy.h:17
Aws::SageMaker::Model::ListContextsRequest::WithNextToken
ListContextsRequest & WithNextToken(const char *value)
Definition: ListContextsRequest.h:310
Aws::SageMaker::Model::ListContextsRequest::WithSourceUri
ListContextsRequest & WithSourceUri(Aws::String &&value)
Definition: ListContextsRequest.h:73
Aws::SageMaker::Model::ListContextsRequest::WithSortOrder
ListContextsRequest & WithSortOrder(const SortOrder &value)
Definition: ListContextsRequest.h:256
Aws::SageMaker::Model::ListContextsRequest::SetSourceUri
void SetSourceUri(Aws::String &&value)
Definition: ListContextsRequest.h:58
Aws::SageMaker::Model::ListContextsRequest::SetSortBy
void SetSortBy(const SortContextsBy &value)
Definition: ListContextsRequest.h:212
Aws::SageMaker::Model::ListContextsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListContextsRequest.h:274
Aws::SageMaker::Model::ListContextsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListContextsRequest.h:280
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::ListContextsRequest
Definition: ListContextsRequest.h:25
SortOrder.h
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::ListContextsRequest::SetContextType
void SetContextType(const char *value)
Definition: ListContextsRequest.h:104
Aws::SageMaker::Model::ListContextsRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: ListContextsRequest.h:206
Aws::SageMaker::Model::ListContextsRequest::SourceUriHasBeenSet
bool SourceUriHasBeenSet() const
Definition: ListContextsRequest.h:48
Aws::SageMaker::Model::ListContextsRequest::SetSourceUri
void SetSourceUri(const char *value)
Definition: ListContextsRequest.h:63
Aws::SageMaker::Model::ListContextsRequest::WithCreatedBefore
ListContextsRequest & WithCreatedBefore(const Aws::Utils::DateTime &value)
Definition: ListContextsRequest.h:187
SortContextsBy.h
Aws::SageMaker::Model::ListContextsRequest::WithSourceUri
ListContextsRequest & WithSourceUri(const Aws::String &value)
Definition: ListContextsRequest.h:68
Aws::SageMaker::Model::ListContextsRequest::GetContextType
const Aws::String & GetContextType() const
Definition: ListContextsRequest.h:84
Aws::SageMaker::Model::ListContextsRequest::SetSortOrder
void SetSortOrder(const SortOrder &value)
Definition: ListContextsRequest.h:246
AWSString.h
Aws::SageMaker::Model::ListContextsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListContextsRequest.h:292
Aws::SageMaker::Model::ListContextsRequest::SetCreatedAfter
void SetCreatedAfter(Aws::Utils::DateTime &&value)
Definition: ListContextsRequest.h:144
Aws::SageMaker::Model::ListContextsRequest::WithContextType
ListContextsRequest & WithContextType(Aws::String &&value)
Definition: ListContextsRequest.h:114
Aws::SageMaker::Model::ListContextsRequest::WithNextToken
ListContextsRequest & WithNextToken(Aws::String &&value)
Definition: ListContextsRequest.h:304
Aws::SageMaker::Model::ListContextsRequest::SetContextType
void SetContextType(const Aws::String &value)
Definition: ListContextsRequest.h:94
Aws::SageMaker::Model::ListContextsRequest::CreatedAfterHasBeenSet
bool CreatedAfterHasBeenSet() const
Definition: ListContextsRequest.h:132
Aws::SageMaker::Model::ListContextsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListContextsRequest.h:286
Aws::SageMaker::Model::ListContextsRequest::SetContextType
void SetContextType(Aws::String &&value)
Definition: ListContextsRequest.h:99
Aws::SageMaker::Model::ListContextsRequest::WithNextToken
ListContextsRequest & WithNextToken(const Aws::String &value)
Definition: ListContextsRequest.h:298
Aws::SageMaker::Model::ListContextsRequest::GetCreatedAfter
const Aws::Utils::DateTime & GetCreatedAfter() const
Definition: ListContextsRequest.h:126
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::SageMaker::Model::ListContextsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListContextsRequest.h:33
Aws::SageMaker::Model::ListContextsRequest::GetSourceUri
const Aws::String & GetSourceUri() const
Definition: ListContextsRequest.h:43
Aws::SageMaker::Model::ListContextsRequest::SetSortBy
void SetSortBy(SortContextsBy &&value)
Definition: ListContextsRequest.h:218
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::ListContextsRequest::WithContextType
ListContextsRequest & WithContextType(const Aws::String &value)
Definition: ListContextsRequest.h:109
Aws::SageMaker::Model::ListContextsRequest::WithCreatedAfter
ListContextsRequest & WithCreatedAfter(Aws::Utils::DateTime &&value)
Definition: ListContextsRequest.h:156
Aws::SageMaker::Model::ListContextsRequest::WithSortBy
ListContextsRequest & WithSortBy(const SortContextsBy &value)
Definition: ListContextsRequest.h:224
Aws::SageMaker::Model::ListContextsRequest::GetSortBy
const SortContextsBy & GetSortBy() const
Definition: ListContextsRequest.h:200
Aws::SageMaker::Model::ListContextsRequest::SortOrderHasBeenSet
bool SortOrderHasBeenSet() const
Definition: ListContextsRequest.h:241
Aws::SageMaker::Model::ListContextsRequest::ContextTypeHasBeenSet
bool ContextTypeHasBeenSet() const
Definition: ListContextsRequest.h:89
Aws::SageMaker::Model::ListContextsRequest::WithSourceUri
ListContextsRequest & WithSourceUri(const char *value)
Definition: ListContextsRequest.h:78
Aws::SageMaker::Model::ListContextsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::ListContextsRequest::SetCreatedAfter
void SetCreatedAfter(const Aws::Utils::DateTime &value)
Definition: ListContextsRequest.h:138
Aws::SageMaker::Model::ListContextsRequest::WithMaxResults
ListContextsRequest & WithMaxResults(int value)
Definition: ListContextsRequest.h:335
Aws::SageMaker::Model::ListContextsRequest::SetSortOrder
void SetSortOrder(SortOrder &&value)
Definition: ListContextsRequest.h:251
Aws::SageMaker::Model::ListContextsRequest::WithSortBy
ListContextsRequest & WithSortBy(SortContextsBy &&value)
Definition: ListContextsRequest.h:230
Aws::SageMaker::Model::ListContextsRequest::WithContextType
ListContextsRequest & WithContextType(const char *value)
Definition: ListContextsRequest.h:119
Aws::SageMaker::Model::ListContextsRequest::SetCreatedBefore
void SetCreatedBefore(const Aws::Utils::DateTime &value)
Definition: ListContextsRequest.h:175