AWS SDK for C++  1.9.153
AWS SDK for C++
ListWorkforcesRequest.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 "ListWorkforces"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const ListWorkforcesSortByOptions& GetSortBy() const{ return m_sortBy; }
43 
47  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
48 
52  inline void SetSortBy(const ListWorkforcesSortByOptions& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
53 
57  inline void SetSortBy(ListWorkforcesSortByOptions&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
58 
62  inline ListWorkforcesRequest& WithSortBy(const ListWorkforcesSortByOptions& value) { SetSortBy(value); return *this;}
63 
67  inline ListWorkforcesRequest& WithSortBy(ListWorkforcesSortByOptions&& 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 ListWorkforcesRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
94 
98  inline ListWorkforcesRequest& 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 ListWorkforcesRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;}
136 
141  inline ListWorkforcesRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;}
142 
147  inline ListWorkforcesRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;}
148 
149 
153  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
154 
158  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
159 
163  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
164 
168  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
169 
173  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
174 
178  inline ListWorkforcesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
179 
183  inline ListWorkforcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
184 
188  inline ListWorkforcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
189 
190 
194  inline int GetMaxResults() const{ return m_maxResults; }
195 
199  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
200 
204  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
205 
209  inline ListWorkforcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
210 
211  private:
212 
214  bool m_sortByHasBeenSet;
215 
216  SortOrder m_sortOrder;
217  bool m_sortOrderHasBeenSet;
218 
219  Aws::String m_nameContains;
220  bool m_nameContainsHasBeenSet;
221 
222  Aws::String m_nextToken;
223  bool m_nextTokenHasBeenSet;
224 
225  int m_maxResults;
226  bool m_maxResultsHasBeenSet;
227  };
228 
229 } // namespace Model
230 } // namespace SageMaker
231 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::ListWorkforcesRequest::SetNameContains
void SetNameContains(const Aws::String &value)
Definition: ListWorkforcesRequest.h:117
Aws::SageMaker::Model::ListWorkforcesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListWorkforcesRequest.h:204
Aws::SageMaker::Model::ListWorkforcesRequest::SetNameContains
void SetNameContains(const char *value)
Definition: ListWorkforcesRequest.h:129
Aws::SageMaker::Model::ListWorkforcesRequest::WithNextToken
ListWorkforcesRequest & WithNextToken(const Aws::String &value)
Definition: ListWorkforcesRequest.h:178
Aws::SageMaker::Model::ListWorkforcesRequest::GetNameContains
const Aws::String & GetNameContains() const
Definition: ListWorkforcesRequest.h:105
SageMaker_EXPORTS.h
Aws::SageMaker::Model::ListWorkforcesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListWorkforcesRequest.h:173
Aws::SageMaker::Model::SortOrder
SortOrder
Definition: SortOrder.h:17
Aws::SageMaker::Model::ListWorkforcesRequest::ListWorkforcesRequest
ListWorkforcesRequest()
Aws::SageMaker::Model::ListWorkforcesRequest::WithSortBy
ListWorkforcesRequest & WithSortBy(const ListWorkforcesSortByOptions &value)
Definition: ListWorkforcesRequest.h:62
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::ListWorkforcesRequest::SortOrderHasBeenSet
bool SortOrderHasBeenSet() const
Definition: ListWorkforcesRequest.h:78
Aws::SageMaker::Model::ListWorkforcesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::ListWorkforcesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::ListWorkforcesRequest::WithNextToken
ListWorkforcesRequest & WithNextToken(Aws::String &&value)
Definition: ListWorkforcesRequest.h:183
Aws::SageMaker::Model::ListWorkforcesRequest::GetSortOrder
const SortOrder & GetSortOrder() const
Definition: ListWorkforcesRequest.h:73
Aws::SageMaker::Model::ListWorkforcesRequest::WithNameContains
ListWorkforcesRequest & WithNameContains(Aws::String &&value)
Definition: ListWorkforcesRequest.h:141
Aws::SageMaker::Model::ListWorkforcesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListWorkforcesRequest.h:199
Aws::SageMaker::Model::ListWorkforcesRequest::WithNameContains
ListWorkforcesRequest & WithNameContains(const Aws::String &value)
Definition: ListWorkforcesRequest.h:135
Aws::SageMaker::Model::ListWorkforcesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListWorkforcesRequest.h:32
Aws::SageMaker::Model::ListWorkforcesRequest::WithNextToken
ListWorkforcesRequest & WithNextToken(const char *value)
Definition: ListWorkforcesRequest.h:188
Aws::SageMaker::Model::ListWorkforcesRequest::GetSortBy
const ListWorkforcesSortByOptions & GetSortBy() const
Definition: ListWorkforcesRequest.h:42
ListWorkforcesSortByOptions.h
Aws::SageMaker::Model::ListWorkforcesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListWorkforcesRequest.h:163
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::ListWorkforcesRequest::WithSortOrder
ListWorkforcesRequest & WithSortOrder(SortOrder &&value)
Definition: ListWorkforcesRequest.h:98
SortOrder.h
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::ListWorkforcesRequest::WithSortOrder
ListWorkforcesRequest & WithSortOrder(const SortOrder &value)
Definition: ListWorkforcesRequest.h:93
Aws::SageMaker::Model::ListWorkforcesRequest::WithNameContains
ListWorkforcesRequest & WithNameContains(const char *value)
Definition: ListWorkforcesRequest.h:147
Aws::SageMaker::Model::ListWorkforcesRequest::SetNameContains
void SetNameContains(Aws::String &&value)
Definition: ListWorkforcesRequest.h:123
Aws::SageMaker::Model::ListWorkforcesRequest::SetSortOrder
void SetSortOrder(SortOrder &&value)
Definition: ListWorkforcesRequest.h:88
Aws::SageMaker::Model::ListWorkforcesSortByOptions
ListWorkforcesSortByOptions
Definition: ListWorkforcesSortByOptions.h:17
AWSString.h
Aws::SageMaker::Model::ListWorkforcesRequest::WithSortBy
ListWorkforcesRequest & WithSortBy(ListWorkforcesSortByOptions &&value)
Definition: ListWorkforcesRequest.h:67
Aws::SageMaker::Model::ListWorkforcesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListWorkforcesRequest.h:158
Aws::SageMaker::Model::ListWorkforcesRequest::SetSortBy
void SetSortBy(ListWorkforcesSortByOptions &&value)
Definition: ListWorkforcesRequest.h:57
Aws::SageMaker::Model::ListWorkforcesRequest::WithMaxResults
ListWorkforcesRequest & WithMaxResults(int value)
Definition: ListWorkforcesRequest.h:209
Aws::SageMaker::Model::ListWorkforcesRequest
Definition: ListWorkforcesRequest.h:24
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::SageMaker::Model::ListWorkforcesRequest::SetSortBy
void SetSortBy(const ListWorkforcesSortByOptions &value)
Definition: ListWorkforcesRequest.h:52
Aws::SageMaker::Model::ListWorkforcesRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: ListWorkforcesRequest.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::ListWorkforcesRequest::NameContainsHasBeenSet
bool NameContainsHasBeenSet() const
Definition: ListWorkforcesRequest.h:111
Aws::SageMaker::Model::ListWorkforcesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListWorkforcesRequest.h:168
Aws::SageMaker::Model::ListWorkforcesRequest::SetSortOrder
void SetSortOrder(const SortOrder &value)
Definition: ListWorkforcesRequest.h:83
Aws::SageMaker::Model::ListWorkforcesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListWorkforcesRequest.h:194
Aws::SageMaker::Model::ListWorkforcesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListWorkforcesRequest.h:153