AWS SDK for C++  1.9.156
AWS SDK for C++
DescribeTasksRequest.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 "DescribeTasks"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
45  inline const Aws::String& GetCluster() const{ return m_cluster; }
46 
53  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
54 
61  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
62 
69  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
70 
77  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
78 
85  inline DescribeTasksRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
86 
93  inline DescribeTasksRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
94 
101  inline DescribeTasksRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
102 
103 
107  inline const Aws::Vector<Aws::String>& GetTasks() const{ return m_tasks; }
108 
112  inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
113 
117  inline void SetTasks(const Aws::Vector<Aws::String>& value) { m_tasksHasBeenSet = true; m_tasks = value; }
118 
122  inline void SetTasks(Aws::Vector<Aws::String>&& value) { m_tasksHasBeenSet = true; m_tasks = std::move(value); }
123 
127  inline DescribeTasksRequest& WithTasks(const Aws::Vector<Aws::String>& value) { SetTasks(value); return *this;}
128 
132  inline DescribeTasksRequest& WithTasks(Aws::Vector<Aws::String>&& value) { SetTasks(std::move(value)); return *this;}
133 
137  inline DescribeTasksRequest& AddTasks(const Aws::String& value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; }
138 
142  inline DescribeTasksRequest& AddTasks(Aws::String&& value) { m_tasksHasBeenSet = true; m_tasks.push_back(std::move(value)); return *this; }
143 
147  inline DescribeTasksRequest& AddTasks(const char* value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; }
148 
149 
155  inline const Aws::Vector<TaskField>& GetInclude() const{ return m_include; }
156 
162  inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
163 
169  inline void SetInclude(const Aws::Vector<TaskField>& value) { m_includeHasBeenSet = true; m_include = value; }
170 
176  inline void SetInclude(Aws::Vector<TaskField>&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
177 
183  inline DescribeTasksRequest& WithInclude(const Aws::Vector<TaskField>& value) { SetInclude(value); return *this;}
184 
190  inline DescribeTasksRequest& WithInclude(Aws::Vector<TaskField>&& value) { SetInclude(std::move(value)); return *this;}
191 
197  inline DescribeTasksRequest& AddInclude(const TaskField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
198 
204  inline DescribeTasksRequest& AddInclude(TaskField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; }
205 
206  private:
207 
208  Aws::String m_cluster;
209  bool m_clusterHasBeenSet;
210 
211  Aws::Vector<Aws::String> m_tasks;
212  bool m_tasksHasBeenSet;
213 
214  Aws::Vector<TaskField> m_include;
215  bool m_includeHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace ECS
220 } // namespace Aws
Aws::ECS::Model::DescribeTasksRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::DescribeTasksRequest::WithInclude
DescribeTasksRequest & WithInclude(const Aws::Vector< TaskField > &value)
Definition: DescribeTasksRequest.h:183
Aws::ECS::Model::DescribeTasksRequest::SetTasks
void SetTasks(Aws::Vector< Aws::String > &&value)
Definition: DescribeTasksRequest.h:122
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::DescribeTasksRequest::DescribeTasksRequest
DescribeTasksRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::DescribeTasksRequest::AddTasks
DescribeTasksRequest & AddTasks(Aws::String &&value)
Definition: DescribeTasksRequest.h:142
Aws::ECS::Model::TaskField
TaskField
Definition: TaskField.h:17
Aws::ECS::Model::DescribeTasksRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::DescribeTasksRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: DescribeTasksRequest.h:61
Aws::ECS::Model::DescribeTasksRequest::WithTasks
DescribeTasksRequest & WithTasks(const Aws::Vector< Aws::String > &value)
Definition: DescribeTasksRequest.h:127
Aws::ECS::Model::DescribeTasksRequest::TasksHasBeenSet
bool TasksHasBeenSet() const
Definition: DescribeTasksRequest.h:112
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::DescribeTasksRequest::SetCluster
void SetCluster(const char *value)
Definition: DescribeTasksRequest.h:77
Aws::ECS::Model::DescribeTasksRequest
Definition: DescribeTasksRequest.h:24
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DescribeTasksRequest::GetTasks
const Aws::Vector< Aws::String > & GetTasks() const
Definition: DescribeTasksRequest.h:107
Aws::ECS::Model::DescribeTasksRequest::SetInclude
void SetInclude(const Aws::Vector< TaskField > &value)
Definition: DescribeTasksRequest.h:169
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::DescribeTasksRequest::GetInclude
const Aws::Vector< TaskField > & GetInclude() const
Definition: DescribeTasksRequest.h:155
Aws::ECS::Model::DescribeTasksRequest::WithCluster
DescribeTasksRequest & WithCluster(const char *value)
Definition: DescribeTasksRequest.h:101
Aws::ECS::Model::DescribeTasksRequest::SetInclude
void SetInclude(Aws::Vector< TaskField > &&value)
Definition: DescribeTasksRequest.h:176
Aws::ECS::Model::DescribeTasksRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: DescribeTasksRequest.h:53
Aws::ECS::Model::DescribeTasksRequest::GetCluster
const Aws::String & GetCluster() const
Definition: DescribeTasksRequest.h:45
Aws::ECS::Model::DescribeTasksRequest::WithInclude
DescribeTasksRequest & WithInclude(Aws::Vector< TaskField > &&value)
Definition: DescribeTasksRequest.h:190
Aws::ECS::Model::DescribeTasksRequest::AddInclude
DescribeTasksRequest & AddInclude(TaskField &&value)
Definition: DescribeTasksRequest.h:204
AWSString.h
Aws::ECS::Model::DescribeTasksRequest::WithCluster
DescribeTasksRequest & WithCluster(const Aws::String &value)
Definition: DescribeTasksRequest.h:85
Aws::ECS::Model::DescribeTasksRequest::IncludeHasBeenSet
bool IncludeHasBeenSet() const
Definition: DescribeTasksRequest.h:162
Aws::ECS::Model::DescribeTasksRequest::AddTasks
DescribeTasksRequest & AddTasks(const Aws::String &value)
Definition: DescribeTasksRequest.h:137
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::DescribeTasksRequest::AddInclude
DescribeTasksRequest & AddInclude(const TaskField &value)
Definition: DescribeTasksRequest.h:197
TaskField.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::DescribeTasksRequest::AddTasks
DescribeTasksRequest & AddTasks(const char *value)
Definition: DescribeTasksRequest.h:147
Aws::ECS::Model::DescribeTasksRequest::SetTasks
void SetTasks(const Aws::Vector< Aws::String > &value)
Definition: DescribeTasksRequest.h:117
Aws::ECS::Model::DescribeTasksRequest::WithCluster
DescribeTasksRequest & WithCluster(Aws::String &&value)
Definition: DescribeTasksRequest.h:93
Aws::ECS::Model::DescribeTasksRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: DescribeTasksRequest.h:69
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::DescribeTasksRequest::WithTasks
DescribeTasksRequest & WithTasks(Aws::Vector< Aws::String > &&value)
Definition: DescribeTasksRequest.h:132
Aws::ECS::Model::DescribeTasksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTasksRequest.h:32