AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListClustersRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/sagemaker/model/ClusterSortBy.h>
12#include <aws/sagemaker/model/SortOrder.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API ListClustersRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListClusters"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
57 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const { return m_creationTimeAfter; }
58 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
59 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
60 void SetCreationTimeAfter(CreationTimeAfterT&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::forward<CreationTimeAfterT>(value); }
61 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
62 ListClustersRequest& WithCreationTimeAfter(CreationTimeAfterT&& value) { SetCreationTimeAfter(std::forward<CreationTimeAfterT>(value)); return *this;}
64
66
75 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const { return m_creationTimeBefore; }
76 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
77 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
78 void SetCreationTimeBefore(CreationTimeBeforeT&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::forward<CreationTimeBeforeT>(value); }
79 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
80 ListClustersRequest& WithCreationTimeBefore(CreationTimeBeforeT&& value) { SetCreationTimeBefore(std::forward<CreationTimeBeforeT>(value)); return *this;}
82
84
92 inline int GetMaxResults() const { return m_maxResults; }
93 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
94 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
95 inline ListClustersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
97
99
102 inline const Aws::String& GetNameContains() const { return m_nameContains; }
103 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
104 template<typename NameContainsT = Aws::String>
105 void SetNameContains(NameContainsT&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::forward<NameContainsT>(value); }
106 template<typename NameContainsT = Aws::String>
107 ListClustersRequest& WithNameContains(NameContainsT&& value) { SetNameContains(std::forward<NameContainsT>(value)); return *this;}
109
111
114 inline const Aws::String& GetNextToken() const { return m_nextToken; }
115 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
116 template<typename NextTokenT = Aws::String>
117 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
118 template<typename NextTokenT = Aws::String>
119 ListClustersRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
121
123
127 inline ClusterSortBy GetSortBy() const { return m_sortBy; }
128 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
129 inline void SetSortBy(ClusterSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
130 inline ListClustersRequest& WithSortBy(ClusterSortBy value) { SetSortBy(value); return *this;}
132
134
137 inline SortOrder GetSortOrder() const { return m_sortOrder; }
138 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
139 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
140 inline ListClustersRequest& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
142
144
151 inline const Aws::String& GetTrainingPlanArn() const { return m_trainingPlanArn; }
152 inline bool TrainingPlanArnHasBeenSet() const { return m_trainingPlanArnHasBeenSet; }
153 template<typename TrainingPlanArnT = Aws::String>
154 void SetTrainingPlanArn(TrainingPlanArnT&& value) { m_trainingPlanArnHasBeenSet = true; m_trainingPlanArn = std::forward<TrainingPlanArnT>(value); }
155 template<typename TrainingPlanArnT = Aws::String>
156 ListClustersRequest& WithTrainingPlanArn(TrainingPlanArnT&& value) { SetTrainingPlanArn(std::forward<TrainingPlanArnT>(value)); return *this;}
158 private:
159
160 Aws::Utils::DateTime m_creationTimeAfter{};
161 bool m_creationTimeAfterHasBeenSet = false;
162
163 Aws::Utils::DateTime m_creationTimeBefore{};
164 bool m_creationTimeBeforeHasBeenSet = false;
165
166 int m_maxResults{0};
167 bool m_maxResultsHasBeenSet = false;
168
169 Aws::String m_nameContains;
170 bool m_nameContainsHasBeenSet = false;
171
172 Aws::String m_nextToken;
173 bool m_nextTokenHasBeenSet = false;
174
176 bool m_sortByHasBeenSet = false;
177
178 SortOrder m_sortOrder{SortOrder::NOT_SET};
179 bool m_sortOrderHasBeenSet = false;
180
181 Aws::String m_trainingPlanArn;
182 bool m_trainingPlanArnHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace SageMaker
187} // namespace Aws
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetCreationTimeBefore(CreationTimeBeforeT &&value)
const Aws::Utils::DateTime & GetCreationTimeBefore() const
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API ListClustersRequest()=default
void SetCreationTimeAfter(CreationTimeAfterT &&value)
void SetTrainingPlanArn(TrainingPlanArnT &&value)
ListClustersRequest & WithTrainingPlanArn(TrainingPlanArnT &&value)
ListClustersRequest & WithNameContains(NameContainsT &&value)
ListClustersRequest & WithSortOrder(SortOrder value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
ListClustersRequest & WithSortBy(ClusterSortBy value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListClustersRequest & WithNextToken(NextTokenT &&value)
ListClustersRequest & WithCreationTimeAfter(CreationTimeAfterT &&value)
ListClustersRequest & WithCreationTimeBefore(CreationTimeBeforeT &&value)
ListClustersRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String