AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListArtifactsRequest.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/SortArtifactsBy.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 ListArtifactsRequest() = 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 "ListArtifacts"; }
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 ListArtifactsRequest& WithSourceUri(SourceUriT&& value) {
49 SetSourceUri(std::forward<SourceUriT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArtifactType() const { return m_artifactType; }
59 inline bool ArtifactTypeHasBeenSet() const { return m_artifactTypeHasBeenSet; }
60 template <typename ArtifactTypeT = Aws::String>
61 void SetArtifactType(ArtifactTypeT&& value) {
62 m_artifactTypeHasBeenSet = true;
63 m_artifactType = std::forward<ArtifactTypeT>(value);
64 }
65 template <typename ArtifactTypeT = Aws::String>
66 ListArtifactsRequest& WithArtifactType(ArtifactTypeT&& value) {
67 SetArtifactType(std::forward<ArtifactTypeT>(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 ListArtifactsRequest& 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 ListArtifactsRequest& WithCreatedBefore(CreatedBeforeT&& value) {
105 SetCreatedBefore(std::forward<CreatedBeforeT>(value));
106 return *this;
107 }
109
111
115 inline SortArtifactsBy GetSortBy() const { return m_sortBy; }
116 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
117 inline void SetSortBy(SortArtifactsBy 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
149 inline const Aws::String& GetNextToken() const { return m_nextToken; }
150 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
151 template <typename NextTokenT = Aws::String>
152 void SetNextToken(NextTokenT&& value) {
153 m_nextTokenHasBeenSet = true;
154 m_nextToken = std::forward<NextTokenT>(value);
155 }
156 template <typename NextTokenT = Aws::String>
157 ListArtifactsRequest& WithNextToken(NextTokenT&& value) {
158 SetNextToken(std::forward<NextTokenT>(value));
159 return *this;
160 }
162
164
168 inline int GetMaxResults() const { return m_maxResults; }
169 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
170 inline void SetMaxResults(int value) {
171 m_maxResultsHasBeenSet = true;
172 m_maxResults = value;
173 }
175 SetMaxResults(value);
176 return *this;
177 }
179 private:
180 Aws::String m_sourceUri;
181
182 Aws::String m_artifactType;
183
184 Aws::Utils::DateTime m_createdAfter{};
185
186 Aws::Utils::DateTime m_createdBefore{};
187
189
190 SortOrder m_sortOrder{SortOrder::NOT_SET};
191
192 Aws::String m_nextToken;
193
194 int m_maxResults{0};
195 bool m_sourceUriHasBeenSet = false;
196 bool m_artifactTypeHasBeenSet = false;
197 bool m_createdAfterHasBeenSet = false;
198 bool m_createdBeforeHasBeenSet = false;
199 bool m_sortByHasBeenSet = false;
200 bool m_sortOrderHasBeenSet = false;
201 bool m_nextTokenHasBeenSet = false;
202 bool m_maxResultsHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace SageMaker
207} // namespace Aws
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
ListArtifactsRequest & WithSourceUri(SourceUriT &&value)
AWS_SAGEMAKER_API ListArtifactsRequest()=default
ListArtifactsRequest & WithCreatedAfter(CreatedAfterT &&value)
ListArtifactsRequest & WithNextToken(NextTokenT &&value)
ListArtifactsRequest & WithMaxResults(int value)
const Aws::Utils::DateTime & GetCreatedBefore() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
const Aws::Utils::DateTime & GetCreatedAfter() const
ListArtifactsRequest & WithArtifactType(ArtifactTypeT &&value)
ListArtifactsRequest & WithSortOrder(SortOrder value)
ListArtifactsRequest & WithSortBy(SortArtifactsBy value)
ListArtifactsRequest & WithCreatedBefore(CreatedBeforeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String