AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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
22 public:
23 AWS_ECS_API ListTasksRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListTasks"; }
30
31 AWS_ECS_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetCluster() const { return m_cluster; }
42 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
43 template <typename ClusterT = Aws::String>
44 void SetCluster(ClusterT&& value) {
45 m_clusterHasBeenSet = true;
46 m_cluster = std::forward<ClusterT>(value);
47 }
48 template <typename ClusterT = Aws::String>
49 ListTasksRequest& WithCluster(ClusterT&& value) {
50 SetCluster(std::forward<ClusterT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetContainerInstance() const { return m_containerInstance; }
63 inline bool ContainerInstanceHasBeenSet() const { return m_containerInstanceHasBeenSet; }
64 template <typename ContainerInstanceT = Aws::String>
65 void SetContainerInstance(ContainerInstanceT&& value) {
66 m_containerInstanceHasBeenSet = true;
67 m_containerInstance = std::forward<ContainerInstanceT>(value);
68 }
69 template <typename ContainerInstanceT = Aws::String>
70 ListTasksRequest& WithContainerInstance(ContainerInstanceT&& value) {
71 SetContainerInstance(std::forward<ContainerInstanceT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::String& GetFamily() const { return m_family; }
83 inline bool FamilyHasBeenSet() const { return m_familyHasBeenSet; }
84 template <typename FamilyT = Aws::String>
85 void SetFamily(FamilyT&& value) {
86 m_familyHasBeenSet = true;
87 m_family = std::forward<FamilyT>(value);
88 }
89 template <typename FamilyT = Aws::String>
90 ListTasksRequest& WithFamily(FamilyT&& value) {
91 SetFamily(std::forward<FamilyT>(value));
92 return *this;
93 }
95
97
106 inline const Aws::String& GetNextToken() const { return m_nextToken; }
107 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
108 template <typename NextTokenT = Aws::String>
109 void SetNextToken(NextTokenT&& value) {
110 m_nextTokenHasBeenSet = true;
111 m_nextToken = std::forward<NextTokenT>(value);
112 }
113 template <typename NextTokenT = Aws::String>
114 ListTasksRequest& WithNextToken(NextTokenT&& value) {
115 SetNextToken(std::forward<NextTokenT>(value));
116 return *this;
117 }
119
121
131 inline int GetMaxResults() const { return m_maxResults; }
132 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
133 inline void SetMaxResults(int value) {
134 m_maxResultsHasBeenSet = true;
135 m_maxResults = value;
136 }
137 inline ListTasksRequest& WithMaxResults(int value) {
138 SetMaxResults(value);
139 return *this;
140 }
142
144
150 inline const Aws::String& GetStartedBy() const { return m_startedBy; }
151 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
152 template <typename StartedByT = Aws::String>
153 void SetStartedBy(StartedByT&& value) {
154 m_startedByHasBeenSet = true;
155 m_startedBy = std::forward<StartedByT>(value);
156 }
157 template <typename StartedByT = Aws::String>
158 ListTasksRequest& WithStartedBy(StartedByT&& value) {
159 SetStartedBy(std::forward<StartedByT>(value));
160 return *this;
161 }
163
165
170 inline const Aws::String& GetServiceName() const { return m_serviceName; }
171 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
172 template <typename ServiceNameT = Aws::String>
173 void SetServiceName(ServiceNameT&& value) {
174 m_serviceNameHasBeenSet = true;
175 m_serviceName = std::forward<ServiceNameT>(value);
176 }
177 template <typename ServiceNameT = Aws::String>
178 ListTasksRequest& WithServiceName(ServiceNameT&& value) {
179 SetServiceName(std::forward<ServiceNameT>(value));
180 return *this;
181 }
183
185
198 inline DesiredStatus GetDesiredStatus() const { return m_desiredStatus; }
199 inline bool DesiredStatusHasBeenSet() const { return m_desiredStatusHasBeenSet; }
200 inline void SetDesiredStatus(DesiredStatus value) {
201 m_desiredStatusHasBeenSet = true;
202 m_desiredStatus = value;
203 }
205 SetDesiredStatus(value);
206 return *this;
207 }
209
211
214 inline LaunchType GetLaunchType() const { return m_launchType; }
215 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
216 inline void SetLaunchType(LaunchType value) {
217 m_launchTypeHasBeenSet = true;
218 m_launchType = value;
219 }
221 SetLaunchType(value);
222 return *this;
223 }
225 private:
226 Aws::String m_cluster;
227
228 Aws::String m_containerInstance;
229
230 Aws::String m_family;
231
232 Aws::String m_nextToken;
233
234 int m_maxResults{0};
235
236 Aws::String m_startedBy;
237
238 Aws::String m_serviceName;
239
240 DesiredStatus m_desiredStatus{DesiredStatus::NOT_SET};
241
242 LaunchType m_launchType{LaunchType::NOT_SET};
243 bool m_clusterHasBeenSet = false;
244 bool m_containerInstanceHasBeenSet = false;
245 bool m_familyHasBeenSet = false;
246 bool m_nextTokenHasBeenSet = false;
247 bool m_maxResultsHasBeenSet = false;
248 bool m_startedByHasBeenSet = false;
249 bool m_serviceNameHasBeenSet = false;
250 bool m_desiredStatusHasBeenSet = false;
251 bool m_launchTypeHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace ECS
256} // 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
void SetServiceName(ServiceNameT &&value)
void SetDesiredStatus(DesiredStatus value)
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
ListTasksRequest & WithServiceName(ServiceNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String