AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListTasksRequest.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/DesiredStatus.h>
11#include <aws/ecs/model/LaunchType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
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
38
40
45 inline const Aws::String& GetCluster() const { return m_cluster; }
46 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
47 template<typename ClusterT = Aws::String>
48 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet = true; m_cluster = std::forward<ClusterT>(value); }
49 template<typename ClusterT = Aws::String>
50 ListTasksRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
52
54
60 inline const Aws::String& GetContainerInstance() const { return m_containerInstance; }
61 inline bool ContainerInstanceHasBeenSet() const { return m_containerInstanceHasBeenSet; }
62 template<typename ContainerInstanceT = Aws::String>
63 void SetContainerInstance(ContainerInstanceT&& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = std::forward<ContainerInstanceT>(value); }
64 template<typename ContainerInstanceT = Aws::String>
65 ListTasksRequest& WithContainerInstance(ContainerInstanceT&& value) { SetContainerInstance(std::forward<ContainerInstanceT>(value)); return *this;}
67
69
74 inline const Aws::String& GetFamily() const { return m_family; }
75 inline bool FamilyHasBeenSet() const { return m_familyHasBeenSet; }
76 template<typename FamilyT = Aws::String>
77 void SetFamily(FamilyT&& value) { m_familyHasBeenSet = true; m_family = std::forward<FamilyT>(value); }
78 template<typename FamilyT = Aws::String>
79 ListTasksRequest& WithFamily(FamilyT&& value) { SetFamily(std::forward<FamilyT>(value)); return *this;}
81
83
92 inline const Aws::String& GetNextToken() const { return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 template<typename NextTokenT = Aws::String>
95 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
96 template<typename NextTokenT = Aws::String>
97 ListTasksRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
99
101
111 inline int GetMaxResults() const { return m_maxResults; }
112 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
113 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
114 inline ListTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
116
118
124 inline const Aws::String& GetStartedBy() const { return m_startedBy; }
125 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
126 template<typename StartedByT = Aws::String>
127 void SetStartedBy(StartedByT&& value) { m_startedByHasBeenSet = true; m_startedBy = std::forward<StartedByT>(value); }
128 template<typename StartedByT = Aws::String>
129 ListTasksRequest& WithStartedBy(StartedByT&& value) { SetStartedBy(std::forward<StartedByT>(value)); return *this;}
131
133
138 inline const Aws::String& GetServiceName() const { return m_serviceName; }
139 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
140 template<typename ServiceNameT = Aws::String>
141 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
142 template<typename ServiceNameT = Aws::String>
143 ListTasksRequest& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
145
147
160 inline DesiredStatus GetDesiredStatus() const { return m_desiredStatus; }
161 inline bool DesiredStatusHasBeenSet() const { return m_desiredStatusHasBeenSet; }
162 inline void SetDesiredStatus(DesiredStatus value) { m_desiredStatusHasBeenSet = true; m_desiredStatus = value; }
163 inline ListTasksRequest& WithDesiredStatus(DesiredStatus value) { SetDesiredStatus(value); return *this;}
165
167
170 inline LaunchType GetLaunchType() const { return m_launchType; }
171 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
172 inline void SetLaunchType(LaunchType value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
173 inline ListTasksRequest& WithLaunchType(LaunchType value) { SetLaunchType(value); return *this;}
175 private:
176
177 Aws::String m_cluster;
178 bool m_clusterHasBeenSet = false;
179
180 Aws::String m_containerInstance;
181 bool m_containerInstanceHasBeenSet = false;
182
183 Aws::String m_family;
184 bool m_familyHasBeenSet = false;
185
186 Aws::String m_nextToken;
187 bool m_nextTokenHasBeenSet = false;
188
189 int m_maxResults{0};
190 bool m_maxResultsHasBeenSet = false;
191
192 Aws::String m_startedBy;
193 bool m_startedByHasBeenSet = false;
194
195 Aws::String m_serviceName;
196 bool m_serviceNameHasBeenSet = false;
197
198 DesiredStatus m_desiredStatus{DesiredStatus::NOT_SET};
199 bool m_desiredStatusHasBeenSet = false;
200
201 LaunchType m_launchType{LaunchType::NOT_SET};
202 bool m_launchTypeHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace ECS
207} // 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