AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListInferenceComponentsRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/sagemaker/model/InferenceComponentSortKey.h>
10#include <aws/sagemaker/model/OrderKey.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/sagemaker/model/InferenceComponentStatus.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SageMaker
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SAGEMAKER_API ListInferenceComponentsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListInferenceComponents"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline InferenceComponentSortKey GetSortBy() const { return m_sortBy; }
47 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
48 inline void SetSortBy(InferenceComponentSortKey value) { m_sortByHasBeenSet = true; m_sortBy = value; }
51
53
56 inline OrderKey GetSortOrder() const { return m_sortOrder; }
57 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
58 inline void SetSortOrder(OrderKey value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
59 inline ListInferenceComponentsRequest& WithSortOrder(OrderKey value) { SetSortOrder(value); return *this;}
61
63
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
70 template<typename NextTokenT = Aws::String>
71 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
72 template<typename NextTokenT = Aws::String>
73 ListInferenceComponentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
75
77
81 inline int GetMaxResults() const { return m_maxResults; }
82 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
83 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
84 inline ListInferenceComponentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
86
88
92 inline const Aws::String& GetNameContains() const { return m_nameContains; }
93 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
94 template<typename NameContainsT = Aws::String>
95 void SetNameContains(NameContainsT&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::forward<NameContainsT>(value); }
96 template<typename NameContainsT = Aws::String>
97 ListInferenceComponentsRequest& WithNameContains(NameContainsT&& value) { SetNameContains(std::forward<NameContainsT>(value)); return *this;}
99
101
105 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const { return m_creationTimeBefore; }
106 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
107 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
108 void SetCreationTimeBefore(CreationTimeBeforeT&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::forward<CreationTimeBeforeT>(value); }
109 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
110 ListInferenceComponentsRequest& WithCreationTimeBefore(CreationTimeBeforeT&& value) { SetCreationTimeBefore(std::forward<CreationTimeBeforeT>(value)); return *this;}
112
114
118 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const { return m_creationTimeAfter; }
119 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
120 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
121 void SetCreationTimeAfter(CreationTimeAfterT&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::forward<CreationTimeAfterT>(value); }
122 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
123 ListInferenceComponentsRequest& WithCreationTimeAfter(CreationTimeAfterT&& value) { SetCreationTimeAfter(std::forward<CreationTimeAfterT>(value)); return *this;}
125
127
131 inline const Aws::Utils::DateTime& GetLastModifiedTimeBefore() const { return m_lastModifiedTimeBefore; }
132 inline bool LastModifiedTimeBeforeHasBeenSet() const { return m_lastModifiedTimeBeforeHasBeenSet; }
133 template<typename LastModifiedTimeBeforeT = Aws::Utils::DateTime>
134 void SetLastModifiedTimeBefore(LastModifiedTimeBeforeT&& value) { m_lastModifiedTimeBeforeHasBeenSet = true; m_lastModifiedTimeBefore = std::forward<LastModifiedTimeBeforeT>(value); }
135 template<typename LastModifiedTimeBeforeT = Aws::Utils::DateTime>
136 ListInferenceComponentsRequest& WithLastModifiedTimeBefore(LastModifiedTimeBeforeT&& value) { SetLastModifiedTimeBefore(std::forward<LastModifiedTimeBeforeT>(value)); return *this;}
138
140
144 inline const Aws::Utils::DateTime& GetLastModifiedTimeAfter() const { return m_lastModifiedTimeAfter; }
145 inline bool LastModifiedTimeAfterHasBeenSet() const { return m_lastModifiedTimeAfterHasBeenSet; }
146 template<typename LastModifiedTimeAfterT = Aws::Utils::DateTime>
147 void SetLastModifiedTimeAfter(LastModifiedTimeAfterT&& value) { m_lastModifiedTimeAfterHasBeenSet = true; m_lastModifiedTimeAfter = std::forward<LastModifiedTimeAfterT>(value); }
148 template<typename LastModifiedTimeAfterT = Aws::Utils::DateTime>
149 ListInferenceComponentsRequest& WithLastModifiedTimeAfter(LastModifiedTimeAfterT&& value) { SetLastModifiedTimeAfter(std::forward<LastModifiedTimeAfterT>(value)); return *this;}
151
153
157 inline InferenceComponentStatus GetStatusEquals() const { return m_statusEquals; }
158 inline bool StatusEqualsHasBeenSet() const { return m_statusEqualsHasBeenSet; }
159 inline void SetStatusEquals(InferenceComponentStatus value) { m_statusEqualsHasBeenSet = true; m_statusEquals = value; }
162
164
169 inline const Aws::String& GetEndpointNameEquals() const { return m_endpointNameEquals; }
170 inline bool EndpointNameEqualsHasBeenSet() const { return m_endpointNameEqualsHasBeenSet; }
171 template<typename EndpointNameEqualsT = Aws::String>
172 void SetEndpointNameEquals(EndpointNameEqualsT&& value) { m_endpointNameEqualsHasBeenSet = true; m_endpointNameEquals = std::forward<EndpointNameEqualsT>(value); }
173 template<typename EndpointNameEqualsT = Aws::String>
174 ListInferenceComponentsRequest& WithEndpointNameEquals(EndpointNameEqualsT&& value) { SetEndpointNameEquals(std::forward<EndpointNameEqualsT>(value)); return *this;}
176
178
183 inline const Aws::String& GetVariantNameEquals() const { return m_variantNameEquals; }
184 inline bool VariantNameEqualsHasBeenSet() const { return m_variantNameEqualsHasBeenSet; }
185 template<typename VariantNameEqualsT = Aws::String>
186 void SetVariantNameEquals(VariantNameEqualsT&& value) { m_variantNameEqualsHasBeenSet = true; m_variantNameEquals = std::forward<VariantNameEqualsT>(value); }
187 template<typename VariantNameEqualsT = Aws::String>
188 ListInferenceComponentsRequest& WithVariantNameEquals(VariantNameEqualsT&& value) { SetVariantNameEquals(std::forward<VariantNameEqualsT>(value)); return *this;}
190 private:
191
193 bool m_sortByHasBeenSet = false;
194
195 OrderKey m_sortOrder{OrderKey::NOT_SET};
196 bool m_sortOrderHasBeenSet = false;
197
198 Aws::String m_nextToken;
199 bool m_nextTokenHasBeenSet = false;
200
201 int m_maxResults{0};
202 bool m_maxResultsHasBeenSet = false;
203
204 Aws::String m_nameContains;
205 bool m_nameContainsHasBeenSet = false;
206
207 Aws::Utils::DateTime m_creationTimeBefore{};
208 bool m_creationTimeBeforeHasBeenSet = false;
209
210 Aws::Utils::DateTime m_creationTimeAfter{};
211 bool m_creationTimeAfterHasBeenSet = false;
212
213 Aws::Utils::DateTime m_lastModifiedTimeBefore{};
214 bool m_lastModifiedTimeBeforeHasBeenSet = false;
215
216 Aws::Utils::DateTime m_lastModifiedTimeAfter{};
217 bool m_lastModifiedTimeAfterHasBeenSet = false;
218
220 bool m_statusEqualsHasBeenSet = false;
221
222 Aws::String m_endpointNameEquals;
223 bool m_endpointNameEqualsHasBeenSet = false;
224
225 Aws::String m_variantNameEquals;
226 bool m_variantNameEqualsHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace SageMaker
231} // namespace Aws
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
ListInferenceComponentsRequest & WithNameContains(NameContainsT &&value)
ListInferenceComponentsRequest & WithStatusEquals(InferenceComponentStatus value)
ListInferenceComponentsRequest & WithLastModifiedTimeAfter(LastModifiedTimeAfterT &&value)
ListInferenceComponentsRequest & WithEndpointNameEquals(EndpointNameEqualsT &&value)
ListInferenceComponentsRequest & WithCreationTimeBefore(CreationTimeBeforeT &&value)
ListInferenceComponentsRequest & WithLastModifiedTimeBefore(LastModifiedTimeBeforeT &&value)
ListInferenceComponentsRequest & WithVariantNameEquals(VariantNameEqualsT &&value)
ListInferenceComponentsRequest & WithSortOrder(OrderKey value)
ListInferenceComponentsRequest & WithSortBy(InferenceComponentSortKey value)
ListInferenceComponentsRequest & WithCreationTimeAfter(CreationTimeAfterT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListInferenceComponentsRequest & WithNextToken(NextTokenT &&value)
AWS_SAGEMAKER_API ListInferenceComponentsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String