AWS SDK for C++  1.9.159
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 
44  inline const Aws::String& GetFamilyPrefix() const{ return m_familyPrefix; }
45 
51  inline bool FamilyPrefixHasBeenSet() const { return m_familyPrefixHasBeenSet; }
52 
58  inline void SetFamilyPrefix(const Aws::String& value) { m_familyPrefixHasBeenSet = true; m_familyPrefix = value; }
59 
65  inline void SetFamilyPrefix(Aws::String&& value) { m_familyPrefixHasBeenSet = true; m_familyPrefix = std::move(value); }
66 
72  inline void SetFamilyPrefix(const char* value) { m_familyPrefixHasBeenSet = true; m_familyPrefix.assign(value); }
73 
79  inline ListTaskDefinitionsRequest& WithFamilyPrefix(const Aws::String& value) { SetFamilyPrefix(value); return *this;}
80 
86  inline ListTaskDefinitionsRequest& WithFamilyPrefix(Aws::String&& value) { SetFamilyPrefix(std::move(value)); return *this;}
87 
93  inline ListTaskDefinitionsRequest& WithFamilyPrefix(const char* value) { SetFamilyPrefix(value); return *this;}
94 
95 
104  inline const TaskDefinitionStatus& GetStatus() const{ return m_status; }
105 
114  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 
124  inline void SetStatus(const TaskDefinitionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
125 
134  inline void SetStatus(TaskDefinitionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
135 
144  inline ListTaskDefinitionsRequest& WithStatus(const TaskDefinitionStatus& value) { SetStatus(value); return *this;}
145 
154  inline ListTaskDefinitionsRequest& WithStatus(TaskDefinitionStatus&& value) { SetStatus(std::move(value)); return *this;}
155 
156 
166  inline const SortOrder& GetSort() const{ return m_sort; }
167 
177  inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
178 
188  inline void SetSort(const SortOrder& value) { m_sortHasBeenSet = true; m_sort = value; }
189 
199  inline void SetSort(SortOrder&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
200 
210  inline ListTaskDefinitionsRequest& WithSort(const SortOrder& value) { SetSort(value); return *this;}
211 
221  inline ListTaskDefinitionsRequest& WithSort(SortOrder&& value) { SetSort(std::move(value)); return *this;}
222 
223 
233  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
234 
244  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
245 
255  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
256 
266  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
267 
277  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
278 
288  inline ListTaskDefinitionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
289 
299  inline ListTaskDefinitionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
300 
310  inline ListTaskDefinitionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
311 
312 
324  inline int GetMaxResults() const{ return m_maxResults; }
325 
337  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
338 
350  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
351 
363  inline ListTaskDefinitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
364 
365  private:
366 
367  Aws::String m_familyPrefix;
368  bool m_familyPrefixHasBeenSet;
369 
370  TaskDefinitionStatus m_status;
371  bool m_statusHasBeenSet;
372 
373  SortOrder m_sort;
374  bool m_sortHasBeenSet;
375 
376  Aws::String m_nextToken;
377  bool m_nextTokenHasBeenSet;
378 
379  int m_maxResults;
380  bool m_maxResultsHasBeenSet;
381  };
382 
383 } // namespace Model
384 } // namespace ECS
385 } // namespace Aws
Aws::ECS::Model::TaskDefinitionStatus
TaskDefinitionStatus
Definition: TaskDefinitionStatus.h:17
Aws::ECS::Model::ListTaskDefinitionsRequest::GetSort
const SortOrder & GetSort() const
Definition: ListTaskDefinitionsRequest.h:166
Aws::ECS::Model::ListTaskDefinitionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListTaskDefinitionsRequest.h:350
Aws::ECS::Model::ListTaskDefinitionsRequest::WithFamilyPrefix
ListTaskDefinitionsRequest & WithFamilyPrefix(Aws::String &&value)
Definition: ListTaskDefinitionsRequest.h:86
Aws::ECS::Model::ListTaskDefinitionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTaskDefinitionsRequest.h:233
Aws::ECS::Model::ListTaskDefinitionsRequest::WithFamilyPrefix
ListTaskDefinitionsRequest & WithFamilyPrefix(const Aws::String &value)
Definition: ListTaskDefinitionsRequest.h:79
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:288
Aws::ECS::Model::ListTaskDefinitionsRequest::SetFamilyPrefix
void SetFamilyPrefix(Aws::String &&value)
Definition: ListTaskDefinitionsRequest.h:65
Aws::ECS::Model::ListTaskDefinitionsRequest::WithStatus
ListTaskDefinitionsRequest & WithStatus(TaskDefinitionStatus &&value)
Definition: ListTaskDefinitionsRequest.h:154
Aws::ECS::Model::ListTaskDefinitionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTaskDefinitionsRequest.h:277
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ListTaskDefinitionsRequest::SortHasBeenSet
bool SortHasBeenSet() const
Definition: ListTaskDefinitionsRequest.h:177
Aws::ECS::Model::ListTaskDefinitionsRequest::WithNextToken
ListTaskDefinitionsRequest & WithNextToken(Aws::String &&value)
Definition: ListTaskDefinitionsRequest.h:299
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:266
TaskDefinitionStatus.h
Aws::ECS::Model::ListTaskDefinitionsRequest::SetFamilyPrefix
void SetFamilyPrefix(const char *value)
Definition: ListTaskDefinitionsRequest.h:72
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::ListTaskDefinitionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTaskDefinitionsRequest.h:255
Aws::ECS::Model::ListTaskDefinitionsRequest::FamilyPrefixHasBeenSet
bool FamilyPrefixHasBeenSet() const
Definition: ListTaskDefinitionsRequest.h:51
Aws::ECS::Model::ListTaskDefinitionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTaskDefinitionsRequest.h:244
Aws::ECS::Model::ListTaskDefinitionsRequest::GetFamilyPrefix
const Aws::String & GetFamilyPrefix() const
Definition: ListTaskDefinitionsRequest.h:44
Aws::ECS::Model::ListTaskDefinitionsRequest::WithFamilyPrefix
ListTaskDefinitionsRequest & WithFamilyPrefix(const char *value)
Definition: ListTaskDefinitionsRequest.h:93
Aws::ECS::Model::ListTaskDefinitionsRequest::SetStatus
void SetStatus(TaskDefinitionStatus &&value)
Definition: ListTaskDefinitionsRequest.h:134
AWSString.h
SortOrder.h
Aws::ECS::Model::ListTaskDefinitionsRequest::GetStatus
const TaskDefinitionStatus & GetStatus() const
Definition: ListTaskDefinitionsRequest.h:104
Aws::ECS::Model::ListTaskDefinitionsRequest::ListTaskDefinitionsRequest
ListTaskDefinitionsRequest()
Aws::ECS::Model::ListTaskDefinitionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListTaskDefinitionsRequest.h:337
Aws::ECS::Model::ListTaskDefinitionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::ListTaskDefinitionsRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ListTaskDefinitionsRequest.h:114
Aws::ECS::Model::ListTaskDefinitionsRequest::WithSort
ListTaskDefinitionsRequest & WithSort(SortOrder &&value)
Definition: ListTaskDefinitionsRequest.h:221
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ListTaskDefinitionsRequest::SetStatus
void SetStatus(const TaskDefinitionStatus &value)
Definition: ListTaskDefinitionsRequest.h:124
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:188
Aws::ECS::Model::ListTaskDefinitionsRequest::WithNextToken
ListTaskDefinitionsRequest & WithNextToken(const char *value)
Definition: ListTaskDefinitionsRequest.h:310
Aws::ECS::Model::ListTaskDefinitionsRequest::WithStatus
ListTaskDefinitionsRequest & WithStatus(const TaskDefinitionStatus &value)
Definition: ListTaskDefinitionsRequest.h:144
ECS_EXPORTS.h
Aws::ECS::Model::ListTaskDefinitionsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListTaskDefinitionsRequest.h:324
ECSRequest.h
Aws::ECS::Model::ListTaskDefinitionsRequest::SetSort
void SetSort(SortOrder &&value)
Definition: ListTaskDefinitionsRequest.h:199
Aws::ECS::Model::ListTaskDefinitionsRequest::WithMaxResults
ListTaskDefinitionsRequest & WithMaxResults(int value)
Definition: ListTaskDefinitionsRequest.h:363
Aws::ECS::Model::ListTaskDefinitionsRequest::WithSort
ListTaskDefinitionsRequest & WithSort(const SortOrder &value)
Definition: ListTaskDefinitionsRequest.h:210
Aws::ECS::Model::ListTaskDefinitionsRequest::SetFamilyPrefix
void SetFamilyPrefix(const Aws::String &value)
Definition: ListTaskDefinitionsRequest.h:58