AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ListContextsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/SortContextsBy.h>
12#include <aws/sagemaker/model/SortOrder.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API ListContextsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListContexts"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetSourceUri() const { return m_sourceUri; }
41 inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; }
42 template <typename SourceUriT = Aws::String>
43 void SetSourceUri(SourceUriT&& value) {
44 m_sourceUriHasBeenSet = true;
45 m_sourceUri = std::forward<SourceUriT>(value);
46 }
47 template <typename SourceUriT = Aws::String>
48 ListContextsRequest& WithSourceUri(SourceUriT&& value) {
49 SetSourceUri(std::forward<SourceUriT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetContextType() const { return m_contextType; }
59 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
60 template <typename ContextTypeT = Aws::String>
61 void SetContextType(ContextTypeT&& value) {
62 m_contextTypeHasBeenSet = true;
63 m_contextType = std::forward<ContextTypeT>(value);
64 }
65 template <typename ContextTypeT = Aws::String>
66 ListContextsRequest& WithContextType(ContextTypeT&& value) {
67 SetContextType(std::forward<ContextTypeT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Utils::DateTime& GetCreatedAfter() const { return m_createdAfter; }
78 inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
79 template <typename CreatedAfterT = Aws::Utils::DateTime>
80 void SetCreatedAfter(CreatedAfterT&& value) {
81 m_createdAfterHasBeenSet = true;
82 m_createdAfter = std::forward<CreatedAfterT>(value);
83 }
84 template <typename CreatedAfterT = Aws::Utils::DateTime>
85 ListContextsRequest& WithCreatedAfter(CreatedAfterT&& value) {
86 SetCreatedAfter(std::forward<CreatedAfterT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Utils::DateTime& GetCreatedBefore() const { return m_createdBefore; }
97 inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; }
98 template <typename CreatedBeforeT = Aws::Utils::DateTime>
99 void SetCreatedBefore(CreatedBeforeT&& value) {
100 m_createdBeforeHasBeenSet = true;
101 m_createdBefore = std::forward<CreatedBeforeT>(value);
102 }
103 template <typename CreatedBeforeT = Aws::Utils::DateTime>
104 ListContextsRequest& WithCreatedBefore(CreatedBeforeT&& value) {
105 SetCreatedBefore(std::forward<CreatedBeforeT>(value));
106 return *this;
107 }
109
111
115 inline SortContextsBy GetSortBy() const { return m_sortBy; }
116 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
117 inline void SetSortBy(SortContextsBy value) {
118 m_sortByHasBeenSet = true;
119 m_sortBy = value;
120 }
122 SetSortBy(value);
123 return *this;
124 }
126
128
131 inline SortOrder GetSortOrder() const { return m_sortOrder; }
132 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
133 inline void SetSortOrder(SortOrder value) {
134 m_sortOrderHasBeenSet = true;
135 m_sortOrder = value;
136 }
138 SetSortOrder(value);
139 return *this;
140 }
142
144
148 inline const Aws::String& GetNextToken() const { return m_nextToken; }
149 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
150 template <typename NextTokenT = Aws::String>
151 void SetNextToken(NextTokenT&& value) {
152 m_nextTokenHasBeenSet = true;
153 m_nextToken = std::forward<NextTokenT>(value);
154 }
155 template <typename NextTokenT = Aws::String>
156 ListContextsRequest& WithNextToken(NextTokenT&& value) {
157 SetNextToken(std::forward<NextTokenT>(value));
158 return *this;
159 }
161
163
167 inline int GetMaxResults() const { return m_maxResults; }
168 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
169 inline void SetMaxResults(int value) {
170 m_maxResultsHasBeenSet = true;
171 m_maxResults = value;
172 }
174 SetMaxResults(value);
175 return *this;
176 }
178 private:
179 Aws::String m_sourceUri;
180
181 Aws::String m_contextType;
182
183 Aws::Utils::DateTime m_createdAfter{};
184
185 Aws::Utils::DateTime m_createdBefore{};
186
188
189 SortOrder m_sortOrder{SortOrder::NOT_SET};
190
191 Aws::String m_nextToken;
192
193 int m_maxResults{0};
194 bool m_sourceUriHasBeenSet = false;
195 bool m_contextTypeHasBeenSet = false;
196 bool m_createdAfterHasBeenSet = false;
197 bool m_createdBeforeHasBeenSet = false;
198 bool m_sortByHasBeenSet = false;
199 bool m_sortOrderHasBeenSet = false;
200 bool m_nextTokenHasBeenSet = false;
201 bool m_maxResultsHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace SageMaker
206} // namespace Aws
ListContextsRequest & WithSourceUri(SourceUriT &&value)
void SetCreatedBefore(CreatedBeforeT &&value)
const Aws::Utils::DateTime & GetCreatedAfter() const
ListContextsRequest & WithMaxResults(int value)
ListContextsRequest & WithSortOrder(SortOrder value)
ListContextsRequest & WithSortBy(SortContextsBy value)
ListContextsRequest & WithCreatedAfter(CreatedAfterT &&value)
ListContextsRequest & WithContextType(ContextTypeT &&value)
const Aws::Utils::DateTime & GetCreatedBefore() const
ListContextsRequest & WithNextToken(NextTokenT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API ListContextsRequest()=default
ListContextsRequest & WithCreatedBefore(CreatedBeforeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String