AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCreationTimeAfter(const Aws::Utils::DateTime& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = value; }
60 inline void SetCreationTimeAfter(Aws::Utils::DateTime&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::move(value); }
62 inline ListClustersRequest& WithCreationTimeAfter(Aws::Utils::DateTime&& value) { SetCreationTimeAfter(std::move(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 inline void SetCreationTimeBefore(const Aws::Utils::DateTime& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = value; }
78 inline void SetCreationTimeBefore(Aws::Utils::DateTime&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::move(value); }
80 inline ListClustersRequest& WithCreationTimeBefore(Aws::Utils::DateTime&& value) { SetCreationTimeBefore(std::move(value)); return *this;}
82
84
87 inline int GetMaxResults() const{ return m_maxResults; }
88 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
90 inline ListClustersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
92
94
97 inline const Aws::String& GetNameContains() const{ return m_nameContains; }
98 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
99 inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; }
100 inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); }
101 inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); }
102 inline ListClustersRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;}
103 inline ListClustersRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;}
104 inline ListClustersRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;}
106
108
111 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
112 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
113 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
114 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
115 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
116 inline ListClustersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
117 inline ListClustersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
118 inline ListClustersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
120
122
126 inline const ClusterSortBy& GetSortBy() const{ return m_sortBy; }
127 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
128 inline void SetSortBy(const ClusterSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
129 inline void SetSortBy(ClusterSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
130 inline ListClustersRequest& WithSortBy(const ClusterSortBy& value) { SetSortBy(value); return *this;}
131 inline ListClustersRequest& WithSortBy(ClusterSortBy&& value) { SetSortBy(std::move(value)); return *this;}
133
135
138 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
139 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
140 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
141 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
142 inline ListClustersRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
143 inline ListClustersRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
145 private:
146
147 Aws::Utils::DateTime m_creationTimeAfter;
148 bool m_creationTimeAfterHasBeenSet = false;
149
150 Aws::Utils::DateTime m_creationTimeBefore;
151 bool m_creationTimeBeforeHasBeenSet = false;
152
153 int m_maxResults;
154 bool m_maxResultsHasBeenSet = false;
155
156 Aws::String m_nameContains;
157 bool m_nameContainsHasBeenSet = false;
158
159 Aws::String m_nextToken;
160 bool m_nextTokenHasBeenSet = false;
161
162 ClusterSortBy m_sortBy;
163 bool m_sortByHasBeenSet = false;
164
165 SortOrder m_sortOrder;
166 bool m_sortOrderHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace SageMaker
171} // namespace Aws
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetCreationTimeBefore(Aws::Utils::DateTime &&value)
ListClustersRequest & WithNextToken(const char *value)
ListClustersRequest & WithSortBy(ClusterSortBy &&value)
ListClustersRequest & WithNextToken(Aws::String &&value)
void SetSortBy(const ClusterSortBy &value)
const Aws::Utils::DateTime & GetCreationTimeBefore() const
virtual const char * GetServiceRequestName() const override
ListClustersRequest & WithCreationTimeAfter(Aws::Utils::DateTime &&value)
void SetCreationTimeAfter(const Aws::Utils::DateTime &value)
void SetCreationTimeAfter(Aws::Utils::DateTime &&value)
void SetNameContains(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListClustersRequest & WithNextToken(const Aws::String &value)
void SetCreationTimeBefore(const Aws::Utils::DateTime &value)
ListClustersRequest & WithSortOrder(SortOrder &&value)
ListClustersRequest & WithNameContains(Aws::String &&value)
ListClustersRequest & WithSortOrder(const SortOrder &value)
ListClustersRequest & WithNameContains(const Aws::String &value)
ListClustersRequest & WithSortBy(const ClusterSortBy &value)
ListClustersRequest & WithNameContains(const char *value)
void SetNextToken(const Aws::String &value)
ListClustersRequest & WithCreationTimeBefore(Aws::Utils::DateTime &&value)
ListClustersRequest & WithMaxResults(int value)
ListClustersRequest & WithCreationTimeBefore(const Aws::Utils::DateTime &value)
ListClustersRequest & WithCreationTimeAfter(const Aws::Utils::DateTime &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String