AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListModelsRequest.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/ModelSortKey.h>
12#include <aws/sagemaker/model/OrderKey.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API ListModelsRequest() = 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 "ListModels"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
40 inline ModelSortKey GetSortBy() const { return m_sortBy; }
41 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
42 inline void SetSortBy(ModelSortKey value) {
43 m_sortByHasBeenSet = true;
44 m_sortBy = value;
45 }
47 SetSortBy(value);
48 return *this;
49 }
51
53
56 inline OrderKey GetSortOrder() const { return m_sortOrder; }
57 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
58 inline void SetSortOrder(OrderKey value) {
59 m_sortOrderHasBeenSet = true;
60 m_sortOrder = value;
61 }
63 SetSortOrder(value);
64 return *this;
65 }
67
69
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
76 template <typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) {
78 m_nextTokenHasBeenSet = true;
79 m_nextToken = std::forward<NextTokenT>(value);
80 }
81 template <typename NextTokenT = Aws::String>
82 ListModelsRequest& WithNextToken(NextTokenT&& value) {
83 SetNextToken(std::forward<NextTokenT>(value));
84 return *this;
85 }
87
89
92 inline int GetMaxResults() const { return m_maxResults; }
93 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
94 inline void SetMaxResults(int value) {
95 m_maxResultsHasBeenSet = true;
96 m_maxResults = value;
97 }
98 inline ListModelsRequest& WithMaxResults(int value) {
99 SetMaxResults(value);
100 return *this;
101 }
103
105
109 inline const Aws::String& GetNameContains() const { return m_nameContains; }
110 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
111 template <typename NameContainsT = Aws::String>
112 void SetNameContains(NameContainsT&& value) {
113 m_nameContainsHasBeenSet = true;
114 m_nameContains = std::forward<NameContainsT>(value);
115 }
116 template <typename NameContainsT = Aws::String>
117 ListModelsRequest& WithNameContains(NameContainsT&& value) {
118 SetNameContains(std::forward<NameContainsT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const { return m_creationTimeBefore; }
129 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
130 template <typename CreationTimeBeforeT = Aws::Utils::DateTime>
131 void SetCreationTimeBefore(CreationTimeBeforeT&& value) {
132 m_creationTimeBeforeHasBeenSet = true;
133 m_creationTimeBefore = std::forward<CreationTimeBeforeT>(value);
134 }
135 template <typename CreationTimeBeforeT = Aws::Utils::DateTime>
136 ListModelsRequest& WithCreationTimeBefore(CreationTimeBeforeT&& value) {
137 SetCreationTimeBefore(std::forward<CreationTimeBeforeT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const { return m_creationTimeAfter; }
148 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
149 template <typename CreationTimeAfterT = Aws::Utils::DateTime>
150 void SetCreationTimeAfter(CreationTimeAfterT&& value) {
151 m_creationTimeAfterHasBeenSet = true;
152 m_creationTimeAfter = std::forward<CreationTimeAfterT>(value);
153 }
154 template <typename CreationTimeAfterT = Aws::Utils::DateTime>
155 ListModelsRequest& WithCreationTimeAfter(CreationTimeAfterT&& value) {
156 SetCreationTimeAfter(std::forward<CreationTimeAfterT>(value));
157 return *this;
158 }
160 private:
162
163 OrderKey m_sortOrder{OrderKey::NOT_SET};
164
165 Aws::String m_nextToken;
166
167 int m_maxResults{0};
168
169 Aws::String m_nameContains;
170
171 Aws::Utils::DateTime m_creationTimeBefore{};
172
173 Aws::Utils::DateTime m_creationTimeAfter{};
174 bool m_sortByHasBeenSet = false;
175 bool m_sortOrderHasBeenSet = false;
176 bool m_nextTokenHasBeenSet = false;
177 bool m_maxResultsHasBeenSet = false;
178 bool m_nameContainsHasBeenSet = false;
179 bool m_creationTimeBeforeHasBeenSet = false;
180 bool m_creationTimeAfterHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace SageMaker
185} // namespace Aws
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetCreationTimeBefore(CreationTimeBeforeT &&value)
ListModelsRequest & WithCreationTimeAfter(CreationTimeAfterT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListModelsRequest & WithNameContains(NameContainsT &&value)
ListModelsRequest & WithSortBy(ModelSortKey value)
ListModelsRequest & WithNextToken(NextTokenT &&value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
virtual const char * GetServiceRequestName() const override
void SetNameContains(NameContainsT &&value)
AWS_SAGEMAKER_API ListModelsRequest()=default
const Aws::String & GetNextToken() const
const Aws::Utils::DateTime & GetCreationTimeBefore() const
ListModelsRequest & WithCreationTimeBefore(CreationTimeBeforeT &&value)
ListModelsRequest & WithMaxResults(int value)
void SetCreationTimeAfter(CreationTimeAfterT &&value)
const Aws::String & GetNameContains() const
ListModelsRequest & WithSortOrder(OrderKey value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String