AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListTaskDefinitionsRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecs/model/TaskDefinitionStatus.h>
11#include <aws/ecs/model/SortOrder.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ECS_API ListTaskDefinitionsRequest() = default;
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_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetFamilyPrefix() const { return m_familyPrefix; }
46 inline bool FamilyPrefixHasBeenSet() const { return m_familyPrefixHasBeenSet; }
47 template<typename FamilyPrefixT = Aws::String>
48 void SetFamilyPrefix(FamilyPrefixT&& value) { m_familyPrefixHasBeenSet = true; m_familyPrefix = std::forward<FamilyPrefixT>(value); }
49 template<typename FamilyPrefixT = Aws::String>
50 ListTaskDefinitionsRequest& WithFamilyPrefix(FamilyPrefixT&& value) { SetFamilyPrefix(std::forward<FamilyPrefixT>(value)); return *this;}
52
54
62 inline TaskDefinitionStatus GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(TaskDefinitionStatus value) { m_statusHasBeenSet = true; m_status = value; }
67
69
78 inline SortOrder GetSort() const { return m_sort; }
79 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
80 inline void SetSort(SortOrder value) { m_sortHasBeenSet = true; m_sort = value; }
81 inline ListTaskDefinitionsRequest& WithSort(SortOrder value) { SetSort(value); return *this;}
83
85
94 inline const Aws::String& GetNextToken() const { return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 template<typename NextTokenT = Aws::String>
97 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
98 template<typename NextTokenT = Aws::String>
99 ListTaskDefinitionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
101
103
114 inline int GetMaxResults() const { return m_maxResults; }
115 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
116 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
117 inline ListTaskDefinitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
119 private:
120
121 Aws::String m_familyPrefix;
122 bool m_familyPrefixHasBeenSet = false;
123
125 bool m_statusHasBeenSet = false;
126
128 bool m_sortHasBeenSet = false;
129
130 Aws::String m_nextToken;
131 bool m_nextTokenHasBeenSet = false;
132
133 int m_maxResults{0};
134 bool m_maxResultsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace ECS
139} // namespace Aws
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListTaskDefinitionsRequest & WithMaxResults(int value)
ListTaskDefinitionsRequest & WithNextToken(NextTokenT &&value)
ListTaskDefinitionsRequest & WithFamilyPrefix(FamilyPrefixT &&value)
ListTaskDefinitionsRequest & WithStatus(TaskDefinitionStatus value)
ListTaskDefinitionsRequest & WithSort(SortOrder value)
virtual const char * GetServiceRequestName() const override
AWS_ECS_API ListTaskDefinitionsRequest()=default
AWS_ECS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String