AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
48 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
49 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
50 inline ListTasksRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
51 inline ListTasksRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
52 inline ListTasksRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
54
56
62 inline const Aws::String& GetContainerInstance() const{ return m_containerInstance; }
63 inline bool ContainerInstanceHasBeenSet() const { return m_containerInstanceHasBeenSet; }
64 inline void SetContainerInstance(const Aws::String& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = value; }
65 inline void SetContainerInstance(Aws::String&& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = std::move(value); }
66 inline void SetContainerInstance(const char* value) { m_containerInstanceHasBeenSet = true; m_containerInstance.assign(value); }
67 inline ListTasksRequest& WithContainerInstance(const Aws::String& value) { SetContainerInstance(value); return *this;}
68 inline ListTasksRequest& WithContainerInstance(Aws::String&& value) { SetContainerInstance(std::move(value)); return *this;}
69 inline ListTasksRequest& WithContainerInstance(const char* value) { SetContainerInstance(value); return *this;}
71
73
78 inline const Aws::String& GetFamily() const{ return m_family; }
79 inline bool FamilyHasBeenSet() const { return m_familyHasBeenSet; }
80 inline void SetFamily(const Aws::String& value) { m_familyHasBeenSet = true; m_family = value; }
81 inline void SetFamily(Aws::String&& value) { m_familyHasBeenSet = true; m_family = std::move(value); }
82 inline void SetFamily(const char* value) { m_familyHasBeenSet = true; m_family.assign(value); }
83 inline ListTasksRequest& WithFamily(const Aws::String& value) { SetFamily(value); return *this;}
84 inline ListTasksRequest& WithFamily(Aws::String&& value) { SetFamily(std::move(value)); return *this;}
85 inline ListTasksRequest& WithFamily(const char* value) { SetFamily(value); return *this;}
87
89
98 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
101 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
102 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
103 inline ListTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
104 inline ListTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
105 inline ListTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
107
109
119 inline int GetMaxResults() const{ return m_maxResults; }
120 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
121 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
122 inline ListTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
124
126
132 inline const Aws::String& GetStartedBy() const{ return m_startedBy; }
133 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
134 inline void SetStartedBy(const Aws::String& value) { m_startedByHasBeenSet = true; m_startedBy = value; }
135 inline void SetStartedBy(Aws::String&& value) { m_startedByHasBeenSet = true; m_startedBy = std::move(value); }
136 inline void SetStartedBy(const char* value) { m_startedByHasBeenSet = true; m_startedBy.assign(value); }
137 inline ListTasksRequest& WithStartedBy(const Aws::String& value) { SetStartedBy(value); return *this;}
138 inline ListTasksRequest& WithStartedBy(Aws::String&& value) { SetStartedBy(std::move(value)); return *this;}
139 inline ListTasksRequest& WithStartedBy(const char* value) { SetStartedBy(value); return *this;}
141
143
148 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
149 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
150 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
151 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
152 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
153 inline ListTasksRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
154 inline ListTasksRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
155 inline ListTasksRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
157
159
172 inline const DesiredStatus& GetDesiredStatus() const{ return m_desiredStatus; }
173 inline bool DesiredStatusHasBeenSet() const { return m_desiredStatusHasBeenSet; }
174 inline void SetDesiredStatus(const DesiredStatus& value) { m_desiredStatusHasBeenSet = true; m_desiredStatus = value; }
175 inline void SetDesiredStatus(DesiredStatus&& value) { m_desiredStatusHasBeenSet = true; m_desiredStatus = std::move(value); }
176 inline ListTasksRequest& WithDesiredStatus(const DesiredStatus& value) { SetDesiredStatus(value); return *this;}
177 inline ListTasksRequest& WithDesiredStatus(DesiredStatus&& value) { SetDesiredStatus(std::move(value)); return *this;}
179
181
184 inline const LaunchType& GetLaunchType() const{ return m_launchType; }
185 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
186 inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
187 inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
188 inline ListTasksRequest& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
189 inline ListTasksRequest& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
191 private:
192
193 Aws::String m_cluster;
194 bool m_clusterHasBeenSet = false;
195
196 Aws::String m_containerInstance;
197 bool m_containerInstanceHasBeenSet = false;
198
199 Aws::String m_family;
200 bool m_familyHasBeenSet = false;
201
202 Aws::String m_nextToken;
203 bool m_nextTokenHasBeenSet = false;
204
205 int m_maxResults;
206 bool m_maxResultsHasBeenSet = false;
207
208 Aws::String m_startedBy;
209 bool m_startedByHasBeenSet = false;
210
211 Aws::String m_serviceName;
212 bool m_serviceNameHasBeenSet = false;
213
214 DesiredStatus m_desiredStatus;
215 bool m_desiredStatusHasBeenSet = false;
216
217 LaunchType m_launchType;
218 bool m_launchTypeHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace ECS
223} // namespace Aws
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListTasksRequest & WithCluster(const char *value)
void SetStartedBy(Aws::String &&value)
ListTasksRequest & WithCluster(const Aws::String &value)
const DesiredStatus & GetDesiredStatus() const
void SetDesiredStatus(DesiredStatus &&value)
void SetContainerInstance(const char *value)
void SetCluster(const char *value)
ListTasksRequest & WithServiceName(Aws::String &&value)
void SetContainerInstance(const Aws::String &value)
const Aws::String & GetServiceName() const
const Aws::String & GetContainerInstance() const
const Aws::String & GetCluster() const
ListTasksRequest & WithLaunchType(const LaunchType &value)
void SetFamily(Aws::String &&value)
AWS_ECS_API Aws::String SerializePayload() const override
ListTasksRequest & WithMaxResults(int value)
void SetServiceName(const Aws::String &value)
ListTasksRequest & WithContainerInstance(Aws::String &&value)
void SetServiceName(const char *value)
void SetCluster(const Aws::String &value)
ListTasksRequest & WithNextToken(const char *value)
ListTasksRequest & WithDesiredStatus(DesiredStatus &&value)
const Aws::String & GetStartedBy() const
void SetStartedBy(const char *value)
void SetNextToken(const Aws::String &value)
ListTasksRequest & WithFamily(const char *value)
void SetDesiredStatus(const DesiredStatus &value)
ListTasksRequest & WithCluster(Aws::String &&value)
const Aws::String & GetNextToken() const
ListTasksRequest & WithContainerInstance(const Aws::String &value)
ListTasksRequest & WithServiceName(const char *value)
ListTasksRequest & WithStartedBy(Aws::String &&value)
ListTasksRequest & WithFamily(const Aws::String &value)
void SetLaunchType(LaunchType &&value)
virtual const char * GetServiceRequestName() const override
void SetFamily(const char *value)
ListTasksRequest & WithStartedBy(const char *value)
void SetContainerInstance(Aws::String &&value)
ListTasksRequest & WithNextToken(Aws::String &&value)
ListTasksRequest & WithNextToken(const Aws::String &value)
const Aws::String & GetFamily() const
ListTasksRequest & WithServiceName(const Aws::String &value)
ListTasksRequest & WithFamily(Aws::String &&value)
void SetFamily(const Aws::String &value)
ListTasksRequest & WithStartedBy(const Aws::String &value)
ListTasksRequest & WithLaunchType(LaunchType &&value)
void SetCluster(Aws::String &&value)
const LaunchType & GetLaunchType() const
ListTasksRequest & WithDesiredStatus(const DesiredStatus &value)
ListTasksRequest & WithContainerInstance(const char *value)
void SetStartedBy(const Aws::String &value)
void SetServiceName(Aws::String &&value)
void SetNextToken(const char *value)
void SetLaunchType(const LaunchType &value)
void SetNextToken(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String