AWS SDK for C++  1.9.1
AWS SDK for C++
ListTasksRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECS
17 {
18 namespace 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 
34  Aws::String SerializePayload() const override;
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 
361  inline const Aws::String& GetStartedBy() const{ return m_startedBy; }
362 
368  inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
369 
375  inline void SetStartedBy(const Aws::String& value) { m_startedByHasBeenSet = true; m_startedBy = value; }
376 
382  inline void SetStartedBy(Aws::String&& value) { m_startedByHasBeenSet = true; m_startedBy = std::move(value); }
383 
389  inline void SetStartedBy(const char* value) { m_startedByHasBeenSet = true; m_startedBy.assign(value); }
390 
396  inline ListTasksRequest& WithStartedBy(const Aws::String& value) { SetStartedBy(value); return *this;}
397 
403  inline ListTasksRequest& WithStartedBy(Aws::String&& value) { SetStartedBy(std::move(value)); return *this;}
404 
410  inline ListTasksRequest& WithStartedBy(const char* value) { SetStartedBy(value); return *this;}
411 
412 
418  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
419 
425  inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
426 
432  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
433 
439  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
440 
446  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
447 
453  inline ListTasksRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
454 
460  inline ListTasksRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
461 
467  inline ListTasksRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
468 
469 
483  inline const DesiredStatus& GetDesiredStatus() const{ return m_desiredStatus; }
484 
498  inline bool DesiredStatusHasBeenSet() const { return m_desiredStatusHasBeenSet; }
499 
513  inline void SetDesiredStatus(const DesiredStatus& value) { m_desiredStatusHasBeenSet = true; m_desiredStatus = value; }
514 
528  inline void SetDesiredStatus(DesiredStatus&& value) { m_desiredStatusHasBeenSet = true; m_desiredStatus = std::move(value); }
529 
543  inline ListTasksRequest& WithDesiredStatus(const DesiredStatus& value) { SetDesiredStatus(value); return *this;}
544 
558  inline ListTasksRequest& WithDesiredStatus(DesiredStatus&& value) { SetDesiredStatus(std::move(value)); return *this;}
559 
560 
564  inline const LaunchType& GetLaunchType() const{ return m_launchType; }
565 
569  inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
570 
574  inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
575 
579  inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
580 
584  inline ListTasksRequest& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
585 
589  inline ListTasksRequest& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
590 
591  private:
592 
593  Aws::String m_cluster;
594  bool m_clusterHasBeenSet;
595 
596  Aws::String m_containerInstance;
597  bool m_containerInstanceHasBeenSet;
598 
599  Aws::String m_family;
600  bool m_familyHasBeenSet;
601 
602  Aws::String m_nextToken;
603  bool m_nextTokenHasBeenSet;
604 
605  int m_maxResults;
606  bool m_maxResultsHasBeenSet;
607 
608  Aws::String m_startedBy;
609  bool m_startedByHasBeenSet;
610 
611  Aws::String m_serviceName;
612  bool m_serviceNameHasBeenSet;
613 
614  DesiredStatus m_desiredStatus;
615  bool m_desiredStatusHasBeenSet;
616 
617  LaunchType m_launchType;
618  bool m_launchTypeHasBeenSet;
619  };
620 
621 } // namespace Model
622 } // namespace ECS
623 } // namespace Aws
Aws::ECS::Model::ListTasksRequest::WithServiceName
ListTasksRequest & WithServiceName(const Aws::String &value)
Definition: ListTasksRequest.h:453
Aws::ECS::Model::ListTasksRequest::StartedByHasBeenSet
bool StartedByHasBeenSet() const
Definition: ListTasksRequest.h:368
Aws::ECS::Model::ListTasksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTasksRequest.h:32
Aws::ECS::Model::ListTasksRequest::SetContainerInstance
void SetContainerInstance(const Aws::String &value)
Definition: ListTasksRequest.h:118
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::ListTasksRequest::SetContainerInstance
void SetContainerInstance(Aws::String &&value)
Definition: ListTasksRequest.h:126
Aws::ECS::Model::ListTasksRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListTasksRequest.h:329
Aws::ECS::Model::ListTasksRequest::SetFamily
void SetFamily(Aws::String &&value)
Definition: ListTasksRequest.h:187
Aws::ECS::Model::ListTasksRequest::SetLaunchType
void SetLaunchType(const LaunchType &value)
Definition: ListTasksRequest.h:574
Aws::ECS::Model::ListTasksRequest::WithFamily
ListTasksRequest & WithFamily(const Aws::String &value)
Definition: ListTasksRequest.h:201
Aws::ECS::Model::ListTasksRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTasksRequest.h:238
Aws::ECS::Model::ListTasksRequest::WithDesiredStatus
ListTasksRequest & WithDesiredStatus(DesiredStatus &&value)
Definition: ListTasksRequest.h:558
Aws::ECS::Model::ListTasksRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTasksRequest.h:249
Aws::ECS::Model::ListTasksRequest::WithServiceName
ListTasksRequest & WithServiceName(const char *value)
Definition: ListTasksRequest.h:467
Aws::ECS::Model::ListTasksRequest::ContainerInstanceHasBeenSet
bool ContainerInstanceHasBeenSet() const
Definition: ListTasksRequest.h:110
Aws::ECS::Model::ListTasksRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::ListTasksRequest::DesiredStatusHasBeenSet
bool DesiredStatusHasBeenSet() const
Definition: ListTasksRequest.h:498
Aws::ECS::Model::ListTasksRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::ListTasksRequest::WithMaxResults
ListTasksRequest & WithMaxResults(int value)
Definition: ListTasksRequest.h:353
Aws::ECS::Model::ListTasksRequest::SetContainerInstance
void SetContainerInstance(const char *value)
Definition: ListTasksRequest.h:134
Aws::ECS::Model::ListTasksRequest::SetServiceName
void SetServiceName(const Aws::String &value)
Definition: ListTasksRequest.h:432
Aws::ECS::Model::ListTasksRequest::WithCluster
ListTasksRequest & WithCluster(const char *value)
Definition: ListTasksRequest.h:93
Aws::ECS::Model::ListTasksRequest::WithContainerInstance
ListTasksRequest & WithContainerInstance(const Aws::String &value)
Definition: ListTasksRequest.h:142
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ListTasksRequest::SetFamily
void SetFamily(const char *value)
Definition: ListTasksRequest.h:194
Aws::ECS::Model::ListTasksRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: ListTasksRequest.h:58
Aws::ECS::Model::ListTasksRequest::WithStartedBy
ListTasksRequest & WithStartedBy(const Aws::String &value)
Definition: ListTasksRequest.h:396
Aws::ECS::Model::LaunchType
LaunchType
Definition: LaunchType.h:17
Aws::ECS::Model::ListTasksRequest::WithNextToken
ListTasksRequest & WithNextToken(Aws::String &&value)
Definition: ListTasksRequest.h:293
LaunchType.h
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::ListTasksRequest::SetDesiredStatus
void SetDesiredStatus(const DesiredStatus &value)
Definition: ListTasksRequest.h:513
Aws::ECS::Model::ListTasksRequest::SetServiceName
void SetServiceName(Aws::String &&value)
Definition: ListTasksRequest.h:439
Aws::ECS::Model::ListTasksRequest::WithCluster
ListTasksRequest & WithCluster(Aws::String &&value)
Definition: ListTasksRequest.h:86
Aws::ECS::Model::ListTasksRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: ListTasksRequest.h:51
Aws::ECS::Model::ListTasksRequest::WithCluster
ListTasksRequest & WithCluster(const Aws::String &value)
Definition: ListTasksRequest.h:79
Aws::ECS::Model::ListTasksRequest::WithDesiredStatus
ListTasksRequest & WithDesiredStatus(const DesiredStatus &value)
Definition: ListTasksRequest.h:543
Aws::ECS::Model::ListTasksRequest::WithStartedBy
ListTasksRequest & WithStartedBy(const char *value)
Definition: ListTasksRequest.h:410
Aws::ECS::Model::ListTasksRequest::WithLaunchType
ListTasksRequest & WithLaunchType(LaunchType &&value)
Definition: ListTasksRequest.h:589
Aws::ECS::Model::ListTasksRequest::GetFamily
const Aws::String & GetFamily() const
Definition: ListTasksRequest.h:166
Aws::ECS::Model::ListTasksRequest::SetStartedBy
void SetStartedBy(Aws::String &&value)
Definition: ListTasksRequest.h:382
Aws::ECS::Model::ListTasksRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: ListTasksRequest.h:65
AWSString.h
Aws::ECS::Model::ListTasksRequest::GetContainerInstance
const Aws::String & GetContainerInstance() const
Definition: ListTasksRequest.h:102
Aws::ECS::Model::ListTasksRequest::WithFamily
ListTasksRequest & WithFamily(const char *value)
Definition: ListTasksRequest.h:215
Aws::ECS::Model::ListTasksRequest::WithLaunchType
ListTasksRequest & WithLaunchType(const LaunchType &value)
Definition: ListTasksRequest.h:584
Aws::ECS::Model::ListTasksRequest::SetCluster
void SetCluster(const char *value)
Definition: ListTasksRequest.h:72
Aws::ECS::Model::ListTasksRequest::WithStartedBy
ListTasksRequest & WithStartedBy(Aws::String &&value)
Definition: ListTasksRequest.h:403
Aws::ECS::Model::ListTasksRequest::WithServiceName
ListTasksRequest & WithServiceName(Aws::String &&value)
Definition: ListTasksRequest.h:460
Aws::ECS::Model::ListTasksRequest::GetCluster
const Aws::String & GetCluster() const
Definition: ListTasksRequest.h:44
Aws::ECS::Model::ListTasksRequest::SetFamily
void SetFamily(const Aws::String &value)
Definition: ListTasksRequest.h:180
Aws::ECS::Model::ListTasksRequest::WithContainerInstance
ListTasksRequest & WithContainerInstance(Aws::String &&value)
Definition: ListTasksRequest.h:150
Aws::ECS::Model::ListTasksRequest::ServiceNameHasBeenSet
bool ServiceNameHasBeenSet() const
Definition: ListTasksRequest.h:425
Aws::ECS::Model::ListTasksRequest::LaunchTypeHasBeenSet
bool LaunchTypeHasBeenSet() const
Definition: ListTasksRequest.h:569
Aws::ECS::Model::ListTasksRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTasksRequest.h:260
Aws::ECS::Model::ListTasksRequest::ListTasksRequest
ListTasksRequest()
Aws::ECS::Model::ListTasksRequest::GetMaxResults
int GetMaxResults() const
Definition: ListTasksRequest.h:317
Aws::ECS::Model::ListTasksRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTasksRequest.h:227
Aws::ECS::Model::ListTasksRequest
Definition: ListTasksRequest.h:24
Aws::ECS::Model::ListTasksRequest::GetStartedBy
const Aws::String & GetStartedBy() const
Definition: ListTasksRequest.h:361
Aws::ECS::Model::ListTasksRequest::GetDesiredStatus
const DesiredStatus & GetDesiredStatus() const
Definition: ListTasksRequest.h:483
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ListTasksRequest::GetLaunchType
const LaunchType & GetLaunchType() const
Definition: ListTasksRequest.h:564
Aws::ECS::Model::ListTasksRequest::GetServiceName
const Aws::String & GetServiceName() const
Definition: ListTasksRequest.h:418
Aws::ECS::Model::ListTasksRequest::WithFamily
ListTasksRequest & WithFamily(Aws::String &&value)
Definition: ListTasksRequest.h:208
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ListTasksRequest::SetDesiredStatus
void SetDesiredStatus(DesiredStatus &&value)
Definition: ListTasksRequest.h:528
Aws::ECS::Model::ListTasksRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTasksRequest.h:271
DesiredStatus.h
Aws::ECS::Model::DesiredStatus
DesiredStatus
Definition: DesiredStatus.h:17
Aws::ECS::Model::ListTasksRequest::FamilyHasBeenSet
bool FamilyHasBeenSet() const
Definition: ListTasksRequest.h:173
Aws::ECS::Model::ListTasksRequest::SetStartedBy
void SetStartedBy(const Aws::String &value)
Definition: ListTasksRequest.h:375
Aws::ECS::Model::ListTasksRequest::SetServiceName
void SetServiceName(const char *value)
Definition: ListTasksRequest.h:446
Aws::ECS::Model::ListTasksRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListTasksRequest.h:341
Aws::ECS::Model::ListTasksRequest::WithNextToken
ListTasksRequest & WithNextToken(const char *value)
Definition: ListTasksRequest.h:304
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::ListTasksRequest::SetLaunchType
void SetLaunchType(LaunchType &&value)
Definition: ListTasksRequest.h:579
Aws::ECS::Model::ListTasksRequest::WithNextToken
ListTasksRequest & WithNextToken(const Aws::String &value)
Definition: ListTasksRequest.h:282
Aws::ECS::Model::ListTasksRequest::SetStartedBy
void SetStartedBy(const char *value)
Definition: ListTasksRequest.h:389
Aws::ECS::Model::ListTasksRequest::WithContainerInstance
ListTasksRequest & WithContainerInstance(const char *value)
Definition: ListTasksRequest.h:158