AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ListAssociationsRequest.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/AssociationEdgeType.h>
12#include <aws/sagemaker/model/SortAssociationsBy.h>
13#include <aws/sagemaker/model/SortOrder.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SageMaker {
19namespace Model {
20
24 public:
25 AWS_SAGEMAKER_API ListAssociationsRequest() = 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 "ListAssociations"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
42 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
43 template <typename SourceArnT = Aws::String>
44 void SetSourceArn(SourceArnT&& value) {
45 m_sourceArnHasBeenSet = true;
46 m_sourceArn = std::forward<SourceArnT>(value);
47 }
48 template <typename SourceArnT = Aws::String>
50 SetSourceArn(std::forward<SourceArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
61 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
62 template <typename DestinationArnT = Aws::String>
63 void SetDestinationArn(DestinationArnT&& value) {
64 m_destinationArnHasBeenSet = true;
65 m_destinationArn = std::forward<DestinationArnT>(value);
66 }
67 template <typename DestinationArnT = Aws::String>
68 ListAssociationsRequest& WithDestinationArn(DestinationArnT&& value) {
69 SetDestinationArn(std::forward<DestinationArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetSourceType() const { return m_sourceType; }
79 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
80 template <typename SourceTypeT = Aws::String>
81 void SetSourceType(SourceTypeT&& value) {
82 m_sourceTypeHasBeenSet = true;
83 m_sourceType = std::forward<SourceTypeT>(value);
84 }
85 template <typename SourceTypeT = Aws::String>
87 SetSourceType(std::forward<SourceTypeT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetDestinationType() const { return m_destinationType; }
98 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
99 template <typename DestinationTypeT = Aws::String>
100 void SetDestinationType(DestinationTypeT&& value) {
101 m_destinationTypeHasBeenSet = true;
102 m_destinationType = std::forward<DestinationTypeT>(value);
103 }
104 template <typename DestinationTypeT = Aws::String>
105 ListAssociationsRequest& WithDestinationType(DestinationTypeT&& value) {
106 SetDestinationType(std::forward<DestinationTypeT>(value));
107 return *this;
108 }
110
112
115 inline AssociationEdgeType GetAssociationType() const { return m_associationType; }
116 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
118 m_associationTypeHasBeenSet = true;
119 m_associationType = value;
120 }
122 SetAssociationType(value);
123 return *this;
124 }
126
128
132 inline const Aws::Utils::DateTime& GetCreatedAfter() const { return m_createdAfter; }
133 inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
134 template <typename CreatedAfterT = Aws::Utils::DateTime>
135 void SetCreatedAfter(CreatedAfterT&& value) {
136 m_createdAfterHasBeenSet = true;
137 m_createdAfter = std::forward<CreatedAfterT>(value);
138 }
139 template <typename CreatedAfterT = Aws::Utils::DateTime>
141 SetCreatedAfter(std::forward<CreatedAfterT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::Utils::DateTime& GetCreatedBefore() const { return m_createdBefore; }
152 inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; }
153 template <typename CreatedBeforeT = Aws::Utils::DateTime>
154 void SetCreatedBefore(CreatedBeforeT&& value) {
155 m_createdBeforeHasBeenSet = true;
156 m_createdBefore = std::forward<CreatedBeforeT>(value);
157 }
158 template <typename CreatedBeforeT = Aws::Utils::DateTime>
160 SetCreatedBefore(std::forward<CreatedBeforeT>(value));
161 return *this;
162 }
164
166
170 inline SortAssociationsBy GetSortBy() const { return m_sortBy; }
171 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
172 inline void SetSortBy(SortAssociationsBy value) {
173 m_sortByHasBeenSet = true;
174 m_sortBy = value;
175 }
177 SetSortBy(value);
178 return *this;
179 }
181
183
186 inline SortOrder GetSortOrder() const { return m_sortOrder; }
187 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
188 inline void SetSortOrder(SortOrder value) {
189 m_sortOrderHasBeenSet = true;
190 m_sortOrder = value;
191 }
193 SetSortOrder(value);
194 return *this;
195 }
197
199
204 inline const Aws::String& GetNextToken() const { return m_nextToken; }
205 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
206 template <typename NextTokenT = Aws::String>
207 void SetNextToken(NextTokenT&& value) {
208 m_nextTokenHasBeenSet = true;
209 m_nextToken = std::forward<NextTokenT>(value);
210 }
211 template <typename NextTokenT = Aws::String>
213 SetNextToken(std::forward<NextTokenT>(value));
214 return *this;
215 }
217
219
223 inline int GetMaxResults() const { return m_maxResults; }
224 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
225 inline void SetMaxResults(int value) {
226 m_maxResultsHasBeenSet = true;
227 m_maxResults = value;
228 }
230 SetMaxResults(value);
231 return *this;
232 }
234 private:
235 Aws::String m_sourceArn;
236
237 Aws::String m_destinationArn;
238
239 Aws::String m_sourceType;
240
241 Aws::String m_destinationType;
242
244
245 Aws::Utils::DateTime m_createdAfter{};
246
247 Aws::Utils::DateTime m_createdBefore{};
248
250
251 SortOrder m_sortOrder{SortOrder::NOT_SET};
252
253 Aws::String m_nextToken;
254
255 int m_maxResults{0};
256 bool m_sourceArnHasBeenSet = false;
257 bool m_destinationArnHasBeenSet = false;
258 bool m_sourceTypeHasBeenSet = false;
259 bool m_destinationTypeHasBeenSet = false;
260 bool m_associationTypeHasBeenSet = false;
261 bool m_createdAfterHasBeenSet = false;
262 bool m_createdBeforeHasBeenSet = false;
263 bool m_sortByHasBeenSet = false;
264 bool m_sortOrderHasBeenSet = false;
265 bool m_nextTokenHasBeenSet = false;
266 bool m_maxResultsHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace SageMaker
271} // namespace Aws
ListAssociationsRequest & WithSourceType(SourceTypeT &&value)
ListAssociationsRequest & WithDestinationType(DestinationTypeT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetCreatedAfter() const
ListAssociationsRequest & WithSortBy(SortAssociationsBy value)
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
ListAssociationsRequest & WithAssociationType(AssociationEdgeType value)
ListAssociationsRequest & WithSortOrder(SortOrder value)
const Aws::Utils::DateTime & GetCreatedBefore() const
ListAssociationsRequest & WithNextToken(NextTokenT &&value)
ListAssociationsRequest & WithMaxResults(int value)
ListAssociationsRequest & WithDestinationArn(DestinationArnT &&value)
AWS_SAGEMAKER_API ListAssociationsRequest()=default
ListAssociationsRequest & WithCreatedAfter(CreatedAfterT &&value)
ListAssociationsRequest & WithSourceArn(SourceArnT &&value)
ListAssociationsRequest & WithCreatedBefore(CreatedBeforeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String