AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListAssociationsRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/AssociationEdgeType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/sagemaker/model/SortAssociationsBy.h>
13#include <aws/sagemaker/model/SortOrder.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SageMaker
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SAGEMAKER_API ListAssociationsRequest() = 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 "ListAssociations"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
46 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
47 template<typename SourceArnT = Aws::String>
48 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
49 template<typename SourceArnT = Aws::String>
50 ListAssociationsRequest& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
52
54
58 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
59 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
60 template<typename DestinationArnT = Aws::String>
61 void SetDestinationArn(DestinationArnT&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::forward<DestinationArnT>(value); }
62 template<typename DestinationArnT = Aws::String>
63 ListAssociationsRequest& WithDestinationArn(DestinationArnT&& value) { SetDestinationArn(std::forward<DestinationArnT>(value)); return *this;}
65
67
70 inline const Aws::String& GetSourceType() const { return m_sourceType; }
71 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
72 template<typename SourceTypeT = Aws::String>
73 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
74 template<typename SourceTypeT = Aws::String>
75 ListAssociationsRequest& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
77
79
83 inline const Aws::String& GetDestinationType() const { return m_destinationType; }
84 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
85 template<typename DestinationTypeT = Aws::String>
86 void SetDestinationType(DestinationTypeT&& value) { m_destinationTypeHasBeenSet = true; m_destinationType = std::forward<DestinationTypeT>(value); }
87 template<typename DestinationTypeT = Aws::String>
88 ListAssociationsRequest& WithDestinationType(DestinationTypeT&& value) { SetDestinationType(std::forward<DestinationTypeT>(value)); return *this;}
90
92
95 inline AssociationEdgeType GetAssociationType() const { return m_associationType; }
96 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
97 inline void SetAssociationType(AssociationEdgeType value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
100
102
106 inline const Aws::Utils::DateTime& GetCreatedAfter() const { return m_createdAfter; }
107 inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
108 template<typename CreatedAfterT = Aws::Utils::DateTime>
109 void SetCreatedAfter(CreatedAfterT&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::forward<CreatedAfterT>(value); }
110 template<typename CreatedAfterT = Aws::Utils::DateTime>
111 ListAssociationsRequest& WithCreatedAfter(CreatedAfterT&& value) { SetCreatedAfter(std::forward<CreatedAfterT>(value)); return *this;}
113
115
119 inline const Aws::Utils::DateTime& GetCreatedBefore() const { return m_createdBefore; }
120 inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; }
121 template<typename CreatedBeforeT = Aws::Utils::DateTime>
122 void SetCreatedBefore(CreatedBeforeT&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::forward<CreatedBeforeT>(value); }
123 template<typename CreatedBeforeT = Aws::Utils::DateTime>
124 ListAssociationsRequest& WithCreatedBefore(CreatedBeforeT&& value) { SetCreatedBefore(std::forward<CreatedBeforeT>(value)); return *this;}
126
128
132 inline SortAssociationsBy GetSortBy() const { return m_sortBy; }
133 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
134 inline void SetSortBy(SortAssociationsBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
135 inline ListAssociationsRequest& WithSortBy(SortAssociationsBy value) { SetSortBy(value); return *this;}
137
139
142 inline SortOrder GetSortOrder() const { return m_sortOrder; }
143 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
144 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
145 inline ListAssociationsRequest& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
147
149
154 inline const Aws::String& GetNextToken() const { return m_nextToken; }
155 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
156 template<typename NextTokenT = Aws::String>
157 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
158 template<typename NextTokenT = Aws::String>
159 ListAssociationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
161
163
167 inline int GetMaxResults() const { return m_maxResults; }
168 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
169 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
170 inline ListAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
172 private:
173
174 Aws::String m_sourceArn;
175 bool m_sourceArnHasBeenSet = false;
176
177 Aws::String m_destinationArn;
178 bool m_destinationArnHasBeenSet = false;
179
180 Aws::String m_sourceType;
181 bool m_sourceTypeHasBeenSet = false;
182
183 Aws::String m_destinationType;
184 bool m_destinationTypeHasBeenSet = false;
185
187 bool m_associationTypeHasBeenSet = false;
188
189 Aws::Utils::DateTime m_createdAfter{};
190 bool m_createdAfterHasBeenSet = false;
191
192 Aws::Utils::DateTime m_createdBefore{};
193 bool m_createdBeforeHasBeenSet = false;
194
196 bool m_sortByHasBeenSet = false;
197
198 SortOrder m_sortOrder{SortOrder::NOT_SET};
199 bool m_sortOrderHasBeenSet = false;
200
201 Aws::String m_nextToken;
202 bool m_nextTokenHasBeenSet = false;
203
204 int m_maxResults{0};
205 bool m_maxResultsHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace SageMaker
210} // 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