AWS SDK for C++  1.9.40
AWS SDK for C++
ListWorkteamsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SageMaker
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ListWorkteams"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const ListWorkteamsSortByOptions& GetSortBy() const{ return m_sortBy; }
43 
47  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
48 
52  inline void SetSortBy(const ListWorkteamsSortByOptions& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
53 
57  inline void SetSortBy(ListWorkteamsSortByOptions&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
58 
62  inline ListWorkteamsRequest& WithSortBy(const ListWorkteamsSortByOptions& value) { SetSortBy(value); return *this;}
63 
67  inline ListWorkteamsRequest& WithSortBy(ListWorkteamsSortByOptions&& value) { SetSortBy(std::move(value)); return *this;}
68 
69 
73  inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
74 
78  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
79 
83  inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
84 
88  inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
89 
93  inline ListWorkteamsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
94 
98  inline ListWorkteamsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
99 
100 
105  inline const Aws::String& GetNameContains() const{ return m_nameContains; }
106 
111  inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
112 
117  inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; }
118 
123  inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); }
124 
129  inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); }
130 
135  inline ListWorkteamsRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;}
136 
141  inline ListWorkteamsRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;}
142 
147  inline ListWorkteamsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;}
148 
149 
155  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
156 
162  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
163 
169  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
170 
176  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
177 
183  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
184 
190  inline ListWorkteamsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
191 
197  inline ListWorkteamsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
198 
204  inline ListWorkteamsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
205 
206 
210  inline int GetMaxResults() const{ return m_maxResults; }
211 
215  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
216 
220  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
221 
225  inline ListWorkteamsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
226 
227  private:
228 
230  bool m_sortByHasBeenSet;
231 
232  SortOrder m_sortOrder;
233  bool m_sortOrderHasBeenSet;
234 
235  Aws::String m_nameContains;
236  bool m_nameContainsHasBeenSet;
237 
238  Aws::String m_nextToken;
239  bool m_nextTokenHasBeenSet;
240 
241  int m_maxResults;
242  bool m_maxResultsHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace SageMaker
247 } // namespace Aws
Aws::SageMaker::Model::ListWorkteamsRequest::WithNextToken
ListWorkteamsRequest & WithNextToken(Aws::String &&value)
Definition: ListWorkteamsRequest.h:197
Aws::SageMaker::Model::ListWorkteamsRequest::GetSortOrder
const SortOrder & GetSortOrder() const
Definition: ListWorkteamsRequest.h:73
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::ListWorkteamsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListWorkteamsRequest.h:162
Aws::SageMaker::Model::ListWorkteamsRequest::NameContainsHasBeenSet
bool NameContainsHasBeenSet() const
Definition: ListWorkteamsRequest.h:111
SageMaker_EXPORTS.h
Aws::SageMaker::Model::SortOrder
SortOrder
Definition: SortOrder.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::ListWorkteamsSortByOptions
ListWorkteamsSortByOptions
Definition: ListWorkteamsSortByOptions.h:17
Aws::SageMaker::Model::ListWorkteamsRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: ListWorkteamsRequest.h:47
Aws::SageMaker::Model::ListWorkteamsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListWorkteamsRequest.h:183
Aws::SageMaker::Model::ListWorkteamsRequest::SetSortOrder
void SetSortOrder(const SortOrder &value)
Definition: ListWorkteamsRequest.h:83
Aws::SageMaker::Model::ListWorkteamsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListWorkteamsRequest.h:220
Aws::SageMaker::Model::ListWorkteamsRequest::WithSortOrder
ListWorkteamsRequest & WithSortOrder(SortOrder &&value)
Definition: ListWorkteamsRequest.h:98
Aws::SageMaker::Model::ListWorkteamsRequest::SetNameContains
void SetNameContains(const char *value)
Definition: ListWorkteamsRequest.h:129
Aws::SageMaker::Model::ListWorkteamsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListWorkteamsRequest.h:210
Aws::SageMaker::Model::ListWorkteamsRequest::SetSortBy
void SetSortBy(ListWorkteamsSortByOptions &&value)
Definition: ListWorkteamsRequest.h:57
Aws::SageMaker::Model::ListWorkteamsRequest::WithNameContains
ListWorkteamsRequest & WithNameContains(const Aws::String &value)
Definition: ListWorkteamsRequest.h:135
Aws::SageMaker::Model::ListWorkteamsRequest::WithMaxResults
ListWorkteamsRequest & WithMaxResults(int value)
Definition: ListWorkteamsRequest.h:225
Aws::SageMaker::Model::ListWorkteamsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListWorkteamsRequest.h:176
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::ListWorkteamsRequest::WithNameContains
ListWorkteamsRequest & WithNameContains(Aws::String &&value)
Definition: ListWorkteamsRequest.h:141
Aws::SageMaker::Model::ListWorkteamsRequest::SetSortBy
void SetSortBy(const ListWorkteamsSortByOptions &value)
Definition: ListWorkteamsRequest.h:52
SortOrder.h
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::ListWorkteamsRequest::SetSortOrder
void SetSortOrder(SortOrder &&value)
Definition: ListWorkteamsRequest.h:88
Aws::SageMaker::Model::ListWorkteamsRequest::WithNextToken
ListWorkteamsRequest & WithNextToken(const char *value)
Definition: ListWorkteamsRequest.h:204
Aws::SageMaker::Model::ListWorkteamsRequest::GetNameContains
const Aws::String & GetNameContains() const
Definition: ListWorkteamsRequest.h:105
Aws::SageMaker::Model::ListWorkteamsRequest::GetSortBy
const ListWorkteamsSortByOptions & GetSortBy() const
Definition: ListWorkteamsRequest.h:42
AWSString.h
Aws::SageMaker::Model::ListWorkteamsRequest::SortOrderHasBeenSet
bool SortOrderHasBeenSet() const
Definition: ListWorkteamsRequest.h:78
Aws::SageMaker::Model::ListWorkteamsRequest::SetNameContains
void SetNameContains(Aws::String &&value)
Definition: ListWorkteamsRequest.h:123
ListWorkteamsSortByOptions.h
Aws::SageMaker::Model::ListWorkteamsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::ListWorkteamsRequest::ListWorkteamsRequest
ListWorkteamsRequest()
Aws::SageMaker::Model::ListWorkteamsRequest::SetNameContains
void SetNameContains(const Aws::String &value)
Definition: ListWorkteamsRequest.h:117
Aws::SageMaker::Model::ListWorkteamsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListWorkteamsRequest.h:215
Aws::SageMaker::Model::ListWorkteamsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListWorkteamsRequest.h:32
Aws::SageMaker::Model::ListWorkteamsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::ListWorkteamsRequest::WithNextToken
ListWorkteamsRequest & WithNextToken(const Aws::String &value)
Definition: ListWorkteamsRequest.h:190
Aws::SageMaker::Model::ListWorkteamsRequest::WithNameContains
ListWorkteamsRequest & WithNameContains(const char *value)
Definition: ListWorkteamsRequest.h:147
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::SageMaker::Model::ListWorkteamsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListWorkteamsRequest.h:155
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::ListWorkteamsRequest::WithSortBy
ListWorkteamsRequest & WithSortBy(const ListWorkteamsSortByOptions &value)
Definition: ListWorkteamsRequest.h:62
Aws::SageMaker::Model::ListWorkteamsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListWorkteamsRequest.h:169
Aws::SageMaker::Model::ListWorkteamsRequest::WithSortOrder
ListWorkteamsRequest & WithSortOrder(const SortOrder &value)
Definition: ListWorkteamsRequest.h:93
Aws::SageMaker::Model::ListWorkteamsRequest
Definition: ListWorkteamsRequest.h:24
Aws::SageMaker::Model::ListWorkteamsRequest::WithSortBy
ListWorkteamsRequest & WithSortBy(ListWorkteamsSortByOptions &&value)
Definition: ListWorkteamsRequest.h:67