AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ListImagesRequest.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/ImageSortBy.h>
12#include <aws/sagemaker/model/ImageSortOrder.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API ListImagesRequest() = 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 "ListImages"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const { return m_creationTimeAfter; }
41 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
42 template <typename CreationTimeAfterT = Aws::Utils::DateTime>
43 void SetCreationTimeAfter(CreationTimeAfterT&& value) {
44 m_creationTimeAfterHasBeenSet = true;
45 m_creationTimeAfter = std::forward<CreationTimeAfterT>(value);
46 }
47 template <typename CreationTimeAfterT = Aws::Utils::DateTime>
48 ListImagesRequest& WithCreationTimeAfter(CreationTimeAfterT&& value) {
49 SetCreationTimeAfter(std::forward<CreationTimeAfterT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const { return m_creationTimeBefore; }
60 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
61 template <typename CreationTimeBeforeT = Aws::Utils::DateTime>
62 void SetCreationTimeBefore(CreationTimeBeforeT&& value) {
63 m_creationTimeBeforeHasBeenSet = true;
64 m_creationTimeBefore = std::forward<CreationTimeBeforeT>(value);
65 }
66 template <typename CreationTimeBeforeT = Aws::Utils::DateTime>
67 ListImagesRequest& WithCreationTimeBefore(CreationTimeBeforeT&& value) {
68 SetCreationTimeBefore(std::forward<CreationTimeBeforeT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Utils::DateTime& GetLastModifiedTimeAfter() const { return m_lastModifiedTimeAfter; }
79 inline bool LastModifiedTimeAfterHasBeenSet() const { return m_lastModifiedTimeAfterHasBeenSet; }
80 template <typename LastModifiedTimeAfterT = Aws::Utils::DateTime>
81 void SetLastModifiedTimeAfter(LastModifiedTimeAfterT&& value) {
82 m_lastModifiedTimeAfterHasBeenSet = true;
83 m_lastModifiedTimeAfter = std::forward<LastModifiedTimeAfterT>(value);
84 }
85 template <typename LastModifiedTimeAfterT = Aws::Utils::DateTime>
86 ListImagesRequest& WithLastModifiedTimeAfter(LastModifiedTimeAfterT&& value) {
87 SetLastModifiedTimeAfter(std::forward<LastModifiedTimeAfterT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::Utils::DateTime& GetLastModifiedTimeBefore() const { return m_lastModifiedTimeBefore; }
98 inline bool LastModifiedTimeBeforeHasBeenSet() const { return m_lastModifiedTimeBeforeHasBeenSet; }
99 template <typename LastModifiedTimeBeforeT = Aws::Utils::DateTime>
100 void SetLastModifiedTimeBefore(LastModifiedTimeBeforeT&& value) {
101 m_lastModifiedTimeBeforeHasBeenSet = true;
102 m_lastModifiedTimeBefore = std::forward<LastModifiedTimeBeforeT>(value);
103 }
104 template <typename LastModifiedTimeBeforeT = Aws::Utils::DateTime>
105 ListImagesRequest& WithLastModifiedTimeBefore(LastModifiedTimeBeforeT&& value) {
106 SetLastModifiedTimeBefore(std::forward<LastModifiedTimeBeforeT>(value));
107 return *this;
108 }
110
112
116 inline int GetMaxResults() const { return m_maxResults; }
117 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
118 inline void SetMaxResults(int value) {
119 m_maxResultsHasBeenSet = true;
120 m_maxResults = value;
121 }
123 SetMaxResults(value);
124 return *this;
125 }
127
129
133 inline const Aws::String& GetNameContains() const { return m_nameContains; }
134 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
135 template <typename NameContainsT = Aws::String>
136 void SetNameContains(NameContainsT&& value) {
137 m_nameContainsHasBeenSet = true;
138 m_nameContains = std::forward<NameContainsT>(value);
139 }
140 template <typename NameContainsT = Aws::String>
141 ListImagesRequest& WithNameContains(NameContainsT&& value) {
142 SetNameContains(std::forward<NameContainsT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetNextToken() const { return m_nextToken; }
153 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
154 template <typename NextTokenT = Aws::String>
155 void SetNextToken(NextTokenT&& value) {
156 m_nextTokenHasBeenSet = true;
157 m_nextToken = std::forward<NextTokenT>(value);
158 }
159 template <typename NextTokenT = Aws::String>
160 ListImagesRequest& WithNextToken(NextTokenT&& value) {
161 SetNextToken(std::forward<NextTokenT>(value));
162 return *this;
163 }
165
167
171 inline ImageSortBy GetSortBy() const { return m_sortBy; }
172 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
173 inline void SetSortBy(ImageSortBy value) {
174 m_sortByHasBeenSet = true;
175 m_sortBy = value;
176 }
178 SetSortBy(value);
179 return *this;
180 }
182
184
187 inline ImageSortOrder GetSortOrder() const { return m_sortOrder; }
188 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
189 inline void SetSortOrder(ImageSortOrder value) {
190 m_sortOrderHasBeenSet = true;
191 m_sortOrder = value;
192 }
194 SetSortOrder(value);
195 return *this;
196 }
198 private:
199 Aws::Utils::DateTime m_creationTimeAfter{};
200
201 Aws::Utils::DateTime m_creationTimeBefore{};
202
203 Aws::Utils::DateTime m_lastModifiedTimeAfter{};
204
205 Aws::Utils::DateTime m_lastModifiedTimeBefore{};
206
207 int m_maxResults{0};
208
209 Aws::String m_nameContains;
210
211 Aws::String m_nextToken;
212
214
216 bool m_creationTimeAfterHasBeenSet = false;
217 bool m_creationTimeBeforeHasBeenSet = false;
218 bool m_lastModifiedTimeAfterHasBeenSet = false;
219 bool m_lastModifiedTimeBeforeHasBeenSet = false;
220 bool m_maxResultsHasBeenSet = false;
221 bool m_nameContainsHasBeenSet = false;
222 bool m_nextTokenHasBeenSet = false;
223 bool m_sortByHasBeenSet = false;
224 bool m_sortOrderHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace SageMaker
229} // namespace Aws
ListImagesRequest & WithSortBy(ImageSortBy value)
const Aws::Utils::DateTime & GetLastModifiedTimeAfter() const
ListImagesRequest & WithCreationTimeBefore(CreationTimeBeforeT &&value)
void SetLastModifiedTimeAfter(LastModifiedTimeAfterT &&value)
ListImagesRequest & WithMaxResults(int value)
const Aws::Utils::DateTime & GetLastModifiedTimeBefore() const
ListImagesRequest & WithCreationTimeAfter(CreationTimeAfterT &&value)
ListImagesRequest & WithNameContains(NameContainsT &&value)
ListImagesRequest & WithSortOrder(ImageSortOrder value)
ListImagesRequest & WithLastModifiedTimeAfter(LastModifiedTimeAfterT &&value)
ListImagesRequest & WithLastModifiedTimeBefore(LastModifiedTimeBeforeT &&value)
const Aws::Utils::DateTime & GetCreationTimeBefore() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetLastModifiedTimeBefore(LastModifiedTimeBeforeT &&value)
void SetCreationTimeBefore(CreationTimeBeforeT &&value)
AWS_SAGEMAKER_API ListImagesRequest()=default
const Aws::String & GetNameContains() const
void SetCreationTimeAfter(CreationTimeAfterT &&value)
ListImagesRequest & WithNextToken(NextTokenT &&value)
void SetNameContains(NameContainsT &&value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String