AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListEndpointsRequest.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/EndpointSortKey.h>
12#include <aws/sagemaker/model/EndpointStatus.h>
13#include <aws/sagemaker/model/OrderKey.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SageMaker {
19namespace Model {
20
24 public:
25 AWS_SAGEMAKER_API ListEndpointsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListEndpoints"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
38
41 inline EndpointSortKey GetSortBy() const { return m_sortBy; }
42 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
43 inline void SetSortBy(EndpointSortKey value) {
44 m_sortByHasBeenSet = true;
45 m_sortBy = value;
46 }
48 SetSortBy(value);
49 return *this;
50 }
52
54
57 inline OrderKey GetSortOrder() const { return m_sortOrder; }
58 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
59 inline void SetSortOrder(OrderKey value) {
60 m_sortOrderHasBeenSet = true;
61 m_sortOrder = value;
62 }
64 SetSortOrder(value);
65 return *this;
66 }
68
70
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 template <typename NextTokenT = Aws::String>
78 void SetNextToken(NextTokenT&& value) {
79 m_nextTokenHasBeenSet = true;
80 m_nextToken = std::forward<NextTokenT>(value);
81 }
82 template <typename NextTokenT = Aws::String>
83 ListEndpointsRequest& WithNextToken(NextTokenT&& value) {
84 SetNextToken(std::forward<NextTokenT>(value));
85 return *this;
86 }
88
90
94 inline int GetMaxResults() const { return m_maxResults; }
95 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
96 inline void SetMaxResults(int value) {
97 m_maxResultsHasBeenSet = true;
98 m_maxResults = value;
99 }
101 SetMaxResults(value);
102 return *this;
103 }
105
107
111 inline const Aws::String& GetNameContains() const { return m_nameContains; }
112 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
113 template <typename NameContainsT = Aws::String>
114 void SetNameContains(NameContainsT&& value) {
115 m_nameContainsHasBeenSet = true;
116 m_nameContains = std::forward<NameContainsT>(value);
117 }
118 template <typename NameContainsT = Aws::String>
119 ListEndpointsRequest& WithNameContains(NameContainsT&& value) {
120 SetNameContains(std::forward<NameContainsT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const { return m_creationTimeBefore; }
131 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
132 template <typename CreationTimeBeforeT = Aws::Utils::DateTime>
133 void SetCreationTimeBefore(CreationTimeBeforeT&& value) {
134 m_creationTimeBeforeHasBeenSet = true;
135 m_creationTimeBefore = std::forward<CreationTimeBeforeT>(value);
136 }
137 template <typename CreationTimeBeforeT = Aws::Utils::DateTime>
138 ListEndpointsRequest& WithCreationTimeBefore(CreationTimeBeforeT&& value) {
139 SetCreationTimeBefore(std::forward<CreationTimeBeforeT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const { return m_creationTimeAfter; }
150 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
151 template <typename CreationTimeAfterT = Aws::Utils::DateTime>
152 void SetCreationTimeAfter(CreationTimeAfterT&& value) {
153 m_creationTimeAfterHasBeenSet = true;
154 m_creationTimeAfter = std::forward<CreationTimeAfterT>(value);
155 }
156 template <typename CreationTimeAfterT = Aws::Utils::DateTime>
157 ListEndpointsRequest& WithCreationTimeAfter(CreationTimeAfterT&& value) {
158 SetCreationTimeAfter(std::forward<CreationTimeAfterT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::Utils::DateTime& GetLastModifiedTimeBefore() const { return m_lastModifiedTimeBefore; }
169 inline bool LastModifiedTimeBeforeHasBeenSet() const { return m_lastModifiedTimeBeforeHasBeenSet; }
170 template <typename LastModifiedTimeBeforeT = Aws::Utils::DateTime>
171 void SetLastModifiedTimeBefore(LastModifiedTimeBeforeT&& value) {
172 m_lastModifiedTimeBeforeHasBeenSet = true;
173 m_lastModifiedTimeBefore = std::forward<LastModifiedTimeBeforeT>(value);
174 }
175 template <typename LastModifiedTimeBeforeT = Aws::Utils::DateTime>
176 ListEndpointsRequest& WithLastModifiedTimeBefore(LastModifiedTimeBeforeT&& value) {
177 SetLastModifiedTimeBefore(std::forward<LastModifiedTimeBeforeT>(value));
178 return *this;
179 }
181
183
187 inline const Aws::Utils::DateTime& GetLastModifiedTimeAfter() const { return m_lastModifiedTimeAfter; }
188 inline bool LastModifiedTimeAfterHasBeenSet() const { return m_lastModifiedTimeAfterHasBeenSet; }
189 template <typename LastModifiedTimeAfterT = Aws::Utils::DateTime>
190 void SetLastModifiedTimeAfter(LastModifiedTimeAfterT&& value) {
191 m_lastModifiedTimeAfterHasBeenSet = true;
192 m_lastModifiedTimeAfter = std::forward<LastModifiedTimeAfterT>(value);
193 }
194 template <typename LastModifiedTimeAfterT = Aws::Utils::DateTime>
195 ListEndpointsRequest& WithLastModifiedTimeAfter(LastModifiedTimeAfterT&& value) {
196 SetLastModifiedTimeAfter(std::forward<LastModifiedTimeAfterT>(value));
197 return *this;
198 }
200
202
205 inline EndpointStatus GetStatusEquals() const { return m_statusEquals; }
206 inline bool StatusEqualsHasBeenSet() const { return m_statusEqualsHasBeenSet; }
207 inline void SetStatusEquals(EndpointStatus value) {
208 m_statusEqualsHasBeenSet = true;
209 m_statusEquals = value;
210 }
212 SetStatusEquals(value);
213 return *this;
214 }
216 private:
218
219 OrderKey m_sortOrder{OrderKey::NOT_SET};
220
221 Aws::String m_nextToken;
222
223 int m_maxResults{0};
224
225 Aws::String m_nameContains;
226
227 Aws::Utils::DateTime m_creationTimeBefore{};
228
229 Aws::Utils::DateTime m_creationTimeAfter{};
230
231 Aws::Utils::DateTime m_lastModifiedTimeBefore{};
232
233 Aws::Utils::DateTime m_lastModifiedTimeAfter{};
234
236 bool m_sortByHasBeenSet = false;
237 bool m_sortOrderHasBeenSet = false;
238 bool m_nextTokenHasBeenSet = false;
239 bool m_maxResultsHasBeenSet = false;
240 bool m_nameContainsHasBeenSet = false;
241 bool m_creationTimeBeforeHasBeenSet = false;
242 bool m_creationTimeAfterHasBeenSet = false;
243 bool m_lastModifiedTimeBeforeHasBeenSet = false;
244 bool m_lastModifiedTimeAfterHasBeenSet = false;
245 bool m_statusEqualsHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace SageMaker
250} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetLastModifiedTimeAfter(LastModifiedTimeAfterT &&value)
void SetCreationTimeBefore(CreationTimeBeforeT &&value)
ListEndpointsRequest & WithStatusEquals(EndpointStatus value)
AWS_SAGEMAKER_API ListEndpointsRequest()=default
ListEndpointsRequest & WithNameContains(NameContainsT &&value)
ListEndpointsRequest & WithSortBy(EndpointSortKey value)
const Aws::Utils::DateTime & GetLastModifiedTimeAfter() const
ListEndpointsRequest & WithCreationTimeAfter(CreationTimeAfterT &&value)
void SetLastModifiedTimeBefore(LastModifiedTimeBeforeT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListEndpointsRequest & WithSortOrder(OrderKey value)
ListEndpointsRequest & WithCreationTimeBefore(CreationTimeBeforeT &&value)
ListEndpointsRequest & WithNextToken(NextTokenT &&value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
ListEndpointsRequest & WithLastModifiedTimeAfter(LastModifiedTimeAfterT &&value)
const Aws::Utils::DateTime & GetCreationTimeBefore() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
ListEndpointsRequest & WithLastModifiedTimeBefore(LastModifiedTimeBeforeT &&value)
ListEndpointsRequest & WithMaxResults(int value)
void SetCreationTimeAfter(CreationTimeAfterT &&value)
const Aws::Utils::DateTime & GetLastModifiedTimeBefore() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String