AWS SDK for C++  1.9.16
AWS SDK for C++
ListTaskDefinitionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECS
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 "ListTaskDefinitions"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
45  inline const Aws::String& GetFamilyPrefix() const{ return m_familyPrefix; }
46 
53  inline bool FamilyPrefixHasBeenSet() const { return m_familyPrefixHasBeenSet; }
54 
61  inline void SetFamilyPrefix(const Aws::String& value) { m_familyPrefixHasBeenSet = true; m_familyPrefix = value; }
62 
69  inline void SetFamilyPrefix(Aws::String&& value) { m_familyPrefixHasBeenSet = true; m_familyPrefix = std::move(value); }
70 
77  inline void SetFamilyPrefix(const char* value) { m_familyPrefixHasBeenSet = true; m_familyPrefix.assign(value); }
78 
85  inline ListTaskDefinitionsRequest& WithFamilyPrefix(const Aws::String& value) { SetFamilyPrefix(value); return *this;}
86 
93  inline ListTaskDefinitionsRequest& WithFamilyPrefix(Aws::String&& value) { SetFamilyPrefix(std::move(value)); return *this;}
94 
101  inline ListTaskDefinitionsRequest& WithFamilyPrefix(const char* value) { SetFamilyPrefix(value); return *this;}
102 
103 
113  inline const TaskDefinitionStatus& GetStatus() const{ return m_status; }
114 
124  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
125 
135  inline void SetStatus(const TaskDefinitionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
136 
146  inline void SetStatus(TaskDefinitionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
147 
157  inline ListTaskDefinitionsRequest& WithStatus(const TaskDefinitionStatus& value) { SetStatus(value); return *this;}
158 
168  inline ListTaskDefinitionsRequest& WithStatus(TaskDefinitionStatus&& value) { SetStatus(std::move(value)); return *this;}
169 
170 
179  inline const SortOrder& GetSort() const{ return m_sort; }
180 
189  inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
190 
199  inline void SetSort(const SortOrder& value) { m_sortHasBeenSet = true; m_sort = value; }
200 
209  inline void SetSort(SortOrder&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
210 
219  inline ListTaskDefinitionsRequest& WithSort(const SortOrder& value) { SetSort(value); return *this;}
220 
229  inline ListTaskDefinitionsRequest& WithSort(SortOrder&& value) { SetSort(std::move(value)); return *this;}
230 
231 
241  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
242 
252  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
253 
263  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
264 
274  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
275 
285  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
286 
296  inline ListTaskDefinitionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
297 
307  inline ListTaskDefinitionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
308 
318  inline ListTaskDefinitionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
319 
320 
332  inline int GetMaxResults() const{ return m_maxResults; }
333 
345  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
346 
358  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
359 
371  inline ListTaskDefinitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
372 
373  private:
374 
375  Aws::String m_familyPrefix;
376  bool m_familyPrefixHasBeenSet;
377 
378  TaskDefinitionStatus m_status;
379  bool m_statusHasBeenSet;
380 
381  SortOrder m_sort;
382  bool m_sortHasBeenSet;
383 
384  Aws::String m_nextToken;
385  bool m_nextTokenHasBeenSet;
386 
387  int m_maxResults;
388  bool m_maxResultsHasBeenSet;
389  };
390 
391 } // namespace Model
392 } // namespace ECS
393 } // namespace Aws
Aws::ECS::Model::TaskDefinitionStatus
TaskDefinitionStatus
Definition: TaskDefinitionStatus.h:17
Aws::ECS::Model::ListTaskDefinitionsRequest::GetSort
const SortOrder & GetSort() const
Definition: ListTaskDefinitionsRequest.h:179
Aws::ECS::Model::ListTaskDefinitionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListTaskDefinitionsRequest.h:358
Aws::ECS::Model::ListTaskDefinitionsRequest::WithFamilyPrefix
ListTaskDefinitionsRequest & WithFamilyPrefix(Aws::String &&value)
Definition: ListTaskDefinitionsRequest.h:93
Aws::ECS::Model::ListTaskDefinitionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTaskDefinitionsRequest.h:241
Aws::ECS::Model::ListTaskDefinitionsRequest::WithFamilyPrefix
ListTaskDefinitionsRequest & WithFamilyPrefix(const Aws::String &value)
Definition: ListTaskDefinitionsRequest.h:85
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::ListTaskDefinitionsRequest
Definition: ListTaskDefinitionsRequest.h:24
Aws::ECS::Model::ListTaskDefinitionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTaskDefinitionsRequest.h:32
Aws::ECS::Model::ListTaskDefinitionsRequest::WithNextToken
ListTaskDefinitionsRequest & WithNextToken(const Aws::String &value)
Definition: ListTaskDefinitionsRequest.h:296
Aws::ECS::Model::ListTaskDefinitionsRequest::SetFamilyPrefix
void SetFamilyPrefix(Aws::String &&value)
Definition: ListTaskDefinitionsRequest.h:69
Aws::ECS::Model::ListTaskDefinitionsRequest::WithStatus
ListTaskDefinitionsRequest & WithStatus(TaskDefinitionStatus &&value)
Definition: ListTaskDefinitionsRequest.h:168
Aws::ECS::Model::ListTaskDefinitionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTaskDefinitionsRequest.h:285
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ListTaskDefinitionsRequest::SortHasBeenSet
bool SortHasBeenSet() const
Definition: ListTaskDefinitionsRequest.h:189
Aws::ECS::Model::ListTaskDefinitionsRequest::WithNextToken
ListTaskDefinitionsRequest & WithNextToken(Aws::String &&value)
Definition: ListTaskDefinitionsRequest.h:307
Aws::ECS::Model::SortOrder
SortOrder
Definition: SortOrder.h:17
Aws::ECS::Model::ListTaskDefinitionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::ListTaskDefinitionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTaskDefinitionsRequest.h:274
TaskDefinitionStatus.h
Aws::ECS::Model::ListTaskDefinitionsRequest::SetFamilyPrefix
void SetFamilyPrefix(const char *value)
Definition: ListTaskDefinitionsRequest.h:77
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::ListTaskDefinitionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTaskDefinitionsRequest.h:263
Aws::ECS::Model::ListTaskDefinitionsRequest::FamilyPrefixHasBeenSet
bool FamilyPrefixHasBeenSet() const
Definition: ListTaskDefinitionsRequest.h:53
Aws::ECS::Model::ListTaskDefinitionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTaskDefinitionsRequest.h:252
Aws::ECS::Model::ListTaskDefinitionsRequest::GetFamilyPrefix
const Aws::String & GetFamilyPrefix() const
Definition: ListTaskDefinitionsRequest.h:45
Aws::ECS::Model::ListTaskDefinitionsRequest::WithFamilyPrefix
ListTaskDefinitionsRequest & WithFamilyPrefix(const char *value)
Definition: ListTaskDefinitionsRequest.h:101
Aws::ECS::Model::ListTaskDefinitionsRequest::SetStatus
void SetStatus(TaskDefinitionStatus &&value)
Definition: ListTaskDefinitionsRequest.h:146
AWSString.h
SortOrder.h
Aws::ECS::Model::ListTaskDefinitionsRequest::GetStatus
const TaskDefinitionStatus & GetStatus() const
Definition: ListTaskDefinitionsRequest.h:113
Aws::ECS::Model::ListTaskDefinitionsRequest::ListTaskDefinitionsRequest
ListTaskDefinitionsRequest()
Aws::ECS::Model::ListTaskDefinitionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListTaskDefinitionsRequest.h:345
Aws::ECS::Model::ListTaskDefinitionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::ListTaskDefinitionsRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ListTaskDefinitionsRequest.h:124
Aws::ECS::Model::ListTaskDefinitionsRequest::WithSort
ListTaskDefinitionsRequest & WithSort(SortOrder &&value)
Definition: ListTaskDefinitionsRequest.h:229
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ListTaskDefinitionsRequest::SetStatus
void SetStatus(const TaskDefinitionStatus &value)
Definition: ListTaskDefinitionsRequest.h:135
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ListTaskDefinitionsRequest::SetSort
void SetSort(const SortOrder &value)
Definition: ListTaskDefinitionsRequest.h:199
Aws::ECS::Model::ListTaskDefinitionsRequest::WithNextToken
ListTaskDefinitionsRequest & WithNextToken(const char *value)
Definition: ListTaskDefinitionsRequest.h:318
Aws::ECS::Model::ListTaskDefinitionsRequest::WithStatus
ListTaskDefinitionsRequest & WithStatus(const TaskDefinitionStatus &value)
Definition: ListTaskDefinitionsRequest.h:157
ECS_EXPORTS.h
Aws::ECS::Model::ListTaskDefinitionsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListTaskDefinitionsRequest.h:332
ECSRequest.h
Aws::ECS::Model::ListTaskDefinitionsRequest::SetSort
void SetSort(SortOrder &&value)
Definition: ListTaskDefinitionsRequest.h:209
Aws::ECS::Model::ListTaskDefinitionsRequest::WithMaxResults
ListTaskDefinitionsRequest & WithMaxResults(int value)
Definition: ListTaskDefinitionsRequest.h:371
Aws::ECS::Model::ListTaskDefinitionsRequest::WithSort
ListTaskDefinitionsRequest & WithSort(const SortOrder &value)
Definition: ListTaskDefinitionsRequest.h:219
Aws::ECS::Model::ListTaskDefinitionsRequest::SetFamilyPrefix
void SetFamilyPrefix(const Aws::String &value)
Definition: ListTaskDefinitionsRequest.h:61