AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ListTasksRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
25 public:
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
35
37
38
44 inline const Aws::String& GetCluster() const{ return m_cluster; }
45
51 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
52
58 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
59
65 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
66
72 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
73
79 inline ListTasksRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
80
86 inline ListTasksRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
87
93 inline ListTasksRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
94
95
102 inline const Aws::String& GetContainerInstance() const{ return m_containerInstance; }
103
110 inline bool ContainerInstanceHasBeenSet() const { return m_containerInstanceHasBeenSet; }
111
118 inline void SetContainerInstance(const Aws::String& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = value; }
119
126 inline void SetContainerInstance(Aws::String&& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = std::move(value); }
127
134 inline void SetContainerInstance(const char* value) { m_containerInstanceHasBeenSet = true; m_containerInstance.assign(value); }
135
142 inline ListTasksRequest& WithContainerInstance(const Aws::String& value) { SetContainerInstance(value); return *this;}
143
150 inline ListTasksRequest& WithContainerInstance(Aws::String&& value) { SetContainerInstance(std::move(value)); return *this;}
151
158 inline ListTasksRequest& WithContainerInstance(const char* value) { SetContainerInstance(value); return *this;}
159
160
166 inline const Aws::String& GetFamily() const{ return m_family; }
167
173 inline bool FamilyHasBeenSet() const { return m_familyHasBeenSet; }
174
180 inline void SetFamily(const Aws::String& value) { m_familyHasBeenSet = true; m_family = value; }
181
187 inline void SetFamily(Aws::String&& value) { m_familyHasBeenSet = true; m_family = std::move(value); }
188
194 inline void SetFamily(const char* value) { m_familyHasBeenSet = true; m_family.assign(value); }
195
201 inline ListTasksRequest& WithFamily(const Aws::String& value) { SetFamily(value); return *this;}
202
208 inline ListTasksRequest& WithFamily(Aws::String&& value) { SetFamily(std::move(value)); return *this;}
209
215 inline ListTasksRequest& WithFamily(const char* value) { SetFamily(value); return *this;}
216
217
227 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
228
238 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
239
249 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
250
260 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
261
271 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
272
282 inline ListTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
283
293 inline ListTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
294
304 inline ListTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
305
306
317 inline int GetMaxResults() const{ return m_maxResults; }
318
329 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
330
341 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
342
353 inline ListTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
354
355
362 inline const Aws::String& GetStartedBy() const{ return m_startedBy; }
363
370 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
371
378 inline void SetStartedBy(const Aws::String& value) { m_startedByHasBeenSet = true; m_startedBy = value; }
379
386 inline void SetStartedBy(Aws::String&& value) { m_startedByHasBeenSet = true; m_startedBy = std::move(value); }
387
394 inline void SetStartedBy(const char* value) { m_startedByHasBeenSet = true; m_startedBy.assign(value); }
395
402 inline ListTasksRequest& WithStartedBy(const Aws::String& value) { SetStartedBy(value); return *this;}
403
410 inline ListTasksRequest& WithStartedBy(Aws::String&& value) { SetStartedBy(std::move(value)); return *this;}
411
418 inline ListTasksRequest& WithStartedBy(const char* value) { SetStartedBy(value); return *this;}
419
420
426 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
427
433 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
434
440 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
441
447 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
448
454 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
455
461 inline ListTasksRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
462
468 inline ListTasksRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
469
475 inline ListTasksRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
476
477
491 inline const DesiredStatus& GetDesiredStatus() const{ return m_desiredStatus; }
492
506 inline bool DesiredStatusHasBeenSet() const { return m_desiredStatusHasBeenSet; }
507
521 inline void SetDesiredStatus(const DesiredStatus& value) { m_desiredStatusHasBeenSet = true; m_desiredStatus = value; }
522
536 inline void SetDesiredStatus(DesiredStatus&& value) { m_desiredStatusHasBeenSet = true; m_desiredStatus = std::move(value); }
537
551 inline ListTasksRequest& WithDesiredStatus(const DesiredStatus& value) { SetDesiredStatus(value); return *this;}
552
566 inline ListTasksRequest& WithDesiredStatus(DesiredStatus&& value) { SetDesiredStatus(std::move(value)); return *this;}
567
568
572 inline const LaunchType& GetLaunchType() const{ return m_launchType; }
573
577 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
578
582 inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
583
587 inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
588
592 inline ListTasksRequest& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
593
597 inline ListTasksRequest& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
598
599 private:
600
601 Aws::String m_cluster;
602 bool m_clusterHasBeenSet = false;
603
604 Aws::String m_containerInstance;
605 bool m_containerInstanceHasBeenSet = false;
606
607 Aws::String m_family;
608 bool m_familyHasBeenSet = false;
609
610 Aws::String m_nextToken;
611 bool m_nextTokenHasBeenSet = false;
612
613 int m_maxResults;
614 bool m_maxResultsHasBeenSet = false;
615
616 Aws::String m_startedBy;
617 bool m_startedByHasBeenSet = false;
618
619 Aws::String m_serviceName;
620 bool m_serviceNameHasBeenSet = false;
621
622 DesiredStatus m_desiredStatus;
623 bool m_desiredStatusHasBeenSet = false;
624
625 LaunchType m_launchType;
626 bool m_launchTypeHasBeenSet = false;
627 };
628
629} // namespace Model
630} // namespace ECS
631} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
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