AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListContextsRequest.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/SortContextsBy.h>
12#include <aws/sagemaker/model/SortOrder.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API ListContextsRequest();
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_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetSourceUri() const{ return m_sourceUri; }
45 inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; }
46 inline void SetSourceUri(const Aws::String& value) { m_sourceUriHasBeenSet = true; m_sourceUri = value; }
47 inline void SetSourceUri(Aws::String&& value) { m_sourceUriHasBeenSet = true; m_sourceUri = std::move(value); }
48 inline void SetSourceUri(const char* value) { m_sourceUriHasBeenSet = true; m_sourceUri.assign(value); }
49 inline ListContextsRequest& WithSourceUri(const Aws::String& value) { SetSourceUri(value); return *this;}
50 inline ListContextsRequest& WithSourceUri(Aws::String&& value) { SetSourceUri(std::move(value)); return *this;}
51 inline ListContextsRequest& WithSourceUri(const char* value) { SetSourceUri(value); return *this;}
53
55
58 inline const Aws::String& GetContextType() const{ return m_contextType; }
59 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
60 inline void SetContextType(const Aws::String& value) { m_contextTypeHasBeenSet = true; m_contextType = value; }
61 inline void SetContextType(Aws::String&& value) { m_contextTypeHasBeenSet = true; m_contextType = std::move(value); }
62 inline void SetContextType(const char* value) { m_contextTypeHasBeenSet = true; m_contextType.assign(value); }
63 inline ListContextsRequest& WithContextType(const Aws::String& value) { SetContextType(value); return *this;}
64 inline ListContextsRequest& WithContextType(Aws::String&& value) { SetContextType(std::move(value)); return *this;}
65 inline ListContextsRequest& WithContextType(const char* value) { SetContextType(value); return *this;}
67
69
73 inline const Aws::Utils::DateTime& GetCreatedAfter() const{ return m_createdAfter; }
74 inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
75 inline void SetCreatedAfter(const Aws::Utils::DateTime& value) { m_createdAfterHasBeenSet = true; m_createdAfter = value; }
76 inline void SetCreatedAfter(Aws::Utils::DateTime&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::move(value); }
77 inline ListContextsRequest& WithCreatedAfter(const Aws::Utils::DateTime& value) { SetCreatedAfter(value); return *this;}
78 inline ListContextsRequest& WithCreatedAfter(Aws::Utils::DateTime&& value) { SetCreatedAfter(std::move(value)); return *this;}
80
82
86 inline const Aws::Utils::DateTime& GetCreatedBefore() const{ return m_createdBefore; }
87 inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; }
88 inline void SetCreatedBefore(const Aws::Utils::DateTime& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = value; }
89 inline void SetCreatedBefore(Aws::Utils::DateTime&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::move(value); }
90 inline ListContextsRequest& WithCreatedBefore(const Aws::Utils::DateTime& value) { SetCreatedBefore(value); return *this;}
91 inline ListContextsRequest& WithCreatedBefore(Aws::Utils::DateTime&& value) { SetCreatedBefore(std::move(value)); return *this;}
93
95
99 inline const SortContextsBy& GetSortBy() const{ return m_sortBy; }
100 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
101 inline void SetSortBy(const SortContextsBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
102 inline void SetSortBy(SortContextsBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
103 inline ListContextsRequest& WithSortBy(const SortContextsBy& value) { SetSortBy(value); return *this;}
104 inline ListContextsRequest& WithSortBy(SortContextsBy&& value) { SetSortBy(std::move(value)); return *this;}
106
108
111 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
112 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
113 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
114 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
115 inline ListContextsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
116 inline ListContextsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
118
120
124 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
125 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
127 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
128 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
129 inline ListContextsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
130 inline ListContextsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
131 inline ListContextsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
133
135
139 inline int GetMaxResults() const{ return m_maxResults; }
140 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
141 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
142 inline ListContextsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
144 private:
145
146 Aws::String m_sourceUri;
147 bool m_sourceUriHasBeenSet = false;
148
149 Aws::String m_contextType;
150 bool m_contextTypeHasBeenSet = false;
151
152 Aws::Utils::DateTime m_createdAfter;
153 bool m_createdAfterHasBeenSet = false;
154
155 Aws::Utils::DateTime m_createdBefore;
156 bool m_createdBeforeHasBeenSet = false;
157
158 SortContextsBy m_sortBy;
159 bool m_sortByHasBeenSet = false;
160
161 SortOrder m_sortOrder;
162 bool m_sortOrderHasBeenSet = false;
163
164 Aws::String m_nextToken;
165 bool m_nextTokenHasBeenSet = false;
166
167 int m_maxResults;
168 bool m_maxResultsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace SageMaker
173} // namespace Aws
ListContextsRequest & WithContextType(const Aws::String &value)
void SetContextType(const Aws::String &value)
ListContextsRequest & WithCreatedAfter(Aws::Utils::DateTime &&value)
ListContextsRequest & WithCreatedBefore(const Aws::Utils::DateTime &value)
ListContextsRequest & WithCreatedAfter(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreatedAfter() const
ListContextsRequest & WithSortOrder(SortOrder &&value)
ListContextsRequest & WithContextType(const char *value)
ListContextsRequest & WithMaxResults(int value)
ListContextsRequest & WithNextToken(Aws::String &&value)
ListContextsRequest & WithSourceUri(Aws::String &&value)
ListContextsRequest & WithSourceUri(const Aws::String &value)
ListContextsRequest & WithSourceUri(const char *value)
ListContextsRequest & WithNextToken(const char *value)
ListContextsRequest & WithContextType(Aws::String &&value)
ListContextsRequest & WithCreatedBefore(Aws::Utils::DateTime &&value)
void SetNextToken(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedBefore() const
void SetSourceUri(const Aws::String &value)
ListContextsRequest & WithNextToken(const Aws::String &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetCreatedAfter(Aws::Utils::DateTime &&value)
virtual const char * GetServiceRequestName() const override
ListContextsRequest & WithSortBy(SortContextsBy &&value)
void SetCreatedBefore(const Aws::Utils::DateTime &value)
ListContextsRequest & WithSortOrder(const SortOrder &value)
void SetCreatedBefore(Aws::Utils::DateTime &&value)
ListContextsRequest & WithSortBy(const SortContextsBy &value)
void SetCreatedAfter(const Aws::Utils::DateTime &value)
void SetSortBy(const SortContextsBy &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String