AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
ListTasksRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/DesiredStatus.h>
11#include <aws/ecs/model/LaunchType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ECS {
17namespace Model {
18
25 public:
26 AWS_ECS_API ListTasksRequest() = 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 "ListTasks"; }
33
34 AWS_ECS_API Aws::String SerializePayload() const override;
35
37
39
44 inline const Aws::String& GetCluster() const { return m_cluster; }
45 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
46 template <typename ClusterT = Aws::String>
47 void SetCluster(ClusterT&& value) {
48 m_clusterHasBeenSet = true;
49 m_cluster = std::forward<ClusterT>(value);
50 }
51 template <typename ClusterT = Aws::String>
52 ListTasksRequest& WithCluster(ClusterT&& value) {
53 SetCluster(std::forward<ClusterT>(value));
54 return *this;
55 }
57
59
65 inline const Aws::String& GetContainerInstance() const { return m_containerInstance; }
66 inline bool ContainerInstanceHasBeenSet() const { return m_containerInstanceHasBeenSet; }
67 template <typename ContainerInstanceT = Aws::String>
68 void SetContainerInstance(ContainerInstanceT&& value) {
69 m_containerInstanceHasBeenSet = true;
70 m_containerInstance = std::forward<ContainerInstanceT>(value);
71 }
72 template <typename ContainerInstanceT = Aws::String>
73 ListTasksRequest& WithContainerInstance(ContainerInstanceT&& value) {
74 SetContainerInstance(std::forward<ContainerInstanceT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::String& GetFamily() const { return m_family; }
86 inline bool FamilyHasBeenSet() const { return m_familyHasBeenSet; }
87 template <typename FamilyT = Aws::String>
88 void SetFamily(FamilyT&& value) {
89 m_familyHasBeenSet = true;
90 m_family = std::forward<FamilyT>(value);
91 }
92 template <typename FamilyT = Aws::String>
93 ListTasksRequest& WithFamily(FamilyT&& value) {
94 SetFamily(std::forward<FamilyT>(value));
95 return *this;
96 }
98
100
109 inline const Aws::String& GetNextToken() const { return m_nextToken; }
110 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
111 template <typename NextTokenT = Aws::String>
112 void SetNextToken(NextTokenT&& value) {
113 m_nextTokenHasBeenSet = true;
114 m_nextToken = std::forward<NextTokenT>(value);
115 }
116 template <typename NextTokenT = Aws::String>
117 ListTasksRequest& WithNextToken(NextTokenT&& value) {
118 SetNextToken(std::forward<NextTokenT>(value));
119 return *this;
120 }
122
124
134 inline int GetMaxResults() const { return m_maxResults; }
135 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
136 inline void SetMaxResults(int value) {
137 m_maxResultsHasBeenSet = true;
138 m_maxResults = value;
139 }
140 inline ListTasksRequest& WithMaxResults(int value) {
141 SetMaxResults(value);
142 return *this;
143 }
145
147
153 inline const Aws::String& GetStartedBy() const { return m_startedBy; }
154 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
155 template <typename StartedByT = Aws::String>
156 void SetStartedBy(StartedByT&& value) {
157 m_startedByHasBeenSet = true;
158 m_startedBy = std::forward<StartedByT>(value);
159 }
160 template <typename StartedByT = Aws::String>
161 ListTasksRequest& WithStartedBy(StartedByT&& value) {
162 SetStartedBy(std::forward<StartedByT>(value));
163 return *this;
164 }
166
168
173 inline const Aws::String& GetServiceName() const { return m_serviceName; }
174 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
175 template <typename ServiceNameT = Aws::String>
176 void SetServiceName(ServiceNameT&& value) {
177 m_serviceNameHasBeenSet = true;
178 m_serviceName = std::forward<ServiceNameT>(value);
179 }
180 template <typename ServiceNameT = Aws::String>
181 ListTasksRequest& WithServiceName(ServiceNameT&& value) {
182 SetServiceName(std::forward<ServiceNameT>(value));
183 return *this;
184 }
186
188
201 inline DesiredStatus GetDesiredStatus() const { return m_desiredStatus; }
202 inline bool DesiredStatusHasBeenSet() const { return m_desiredStatusHasBeenSet; }
203 inline void SetDesiredStatus(DesiredStatus value) {
204 m_desiredStatusHasBeenSet = true;
205 m_desiredStatus = value;
206 }
208 SetDesiredStatus(value);
209 return *this;
210 }
212
214
217 inline LaunchType GetLaunchType() const { return m_launchType; }
218 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
219 inline void SetLaunchType(LaunchType value) {
220 m_launchTypeHasBeenSet = true;
221 m_launchType = value;
222 }
224 SetLaunchType(value);
225 return *this;
226 }
228
230
235 inline const Aws::String& GetDaemonName() const { return m_daemonName; }
236 inline bool DaemonNameHasBeenSet() const { return m_daemonNameHasBeenSet; }
237 template <typename DaemonNameT = Aws::String>
238 void SetDaemonName(DaemonNameT&& value) {
239 m_daemonNameHasBeenSet = true;
240 m_daemonName = std::forward<DaemonNameT>(value);
241 }
242 template <typename DaemonNameT = Aws::String>
243 ListTasksRequest& WithDaemonName(DaemonNameT&& value) {
244 SetDaemonName(std::forward<DaemonNameT>(value));
245 return *this;
246 }
248 private:
249 Aws::String m_cluster;
250
251 Aws::String m_containerInstance;
252
253 Aws::String m_family;
254
255 Aws::String m_nextToken;
256
257 int m_maxResults{0};
258
259 Aws::String m_startedBy;
260
261 Aws::String m_serviceName;
262
263 DesiredStatus m_desiredStatus{DesiredStatus::NOT_SET};
264
265 LaunchType m_launchType{LaunchType::NOT_SET};
266
267 Aws::String m_daemonName;
268 bool m_clusterHasBeenSet = false;
269 bool m_containerInstanceHasBeenSet = false;
270 bool m_familyHasBeenSet = false;
271 bool m_nextTokenHasBeenSet = false;
272 bool m_maxResultsHasBeenSet = false;
273 bool m_startedByHasBeenSet = false;
274 bool m_serviceNameHasBeenSet = false;
275 bool m_desiredStatusHasBeenSet = false;
276 bool m_launchTypeHasBeenSet = false;
277 bool m_daemonNameHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace ECS
282} // namespace Aws
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetNextToken(NextTokenT &&value)
const Aws::String & GetServiceName() const
ListTasksRequest & WithLaunchType(LaunchType value)
const Aws::String & GetContainerInstance() const
const Aws::String & GetCluster() const
void SetContainerInstance(ContainerInstanceT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
ListTasksRequest & WithMaxResults(int value)
ListTasksRequest & WithDesiredStatus(DesiredStatus value)
ListTasksRequest & WithStartedBy(StartedByT &&value)
ListTasksRequest & WithFamily(FamilyT &&value)
const Aws::String & GetStartedBy() const
void SetCluster(ClusterT &&value)
const Aws::String & GetNextToken() const
ListTasksRequest & WithDaemonName(DaemonNameT &&value)
void SetServiceName(ServiceNameT &&value)
void SetDesiredStatus(DesiredStatus value)
const Aws::String & GetDaemonName() const
void SetLaunchType(LaunchType value)
virtual const char * GetServiceRequestName() const override
void SetStartedBy(StartedByT &&value)
ListTasksRequest & WithContainerInstance(ContainerInstanceT &&value)
const Aws::String & GetFamily() const
ListTasksRequest & WithNextToken(NextTokenT &&value)
DesiredStatus GetDesiredStatus() const
ListTasksRequest & WithCluster(ClusterT &&value)
AWS_ECS_API ListTasksRequest()=default
void SetDaemonName(DaemonNameT &&value)
ListTasksRequest & WithServiceName(ServiceNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String