AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeTasksRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/TaskField.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ECS_API DescribeTasksRequest();
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_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
46 inline const Aws::String& GetCluster() const{ return m_cluster; }
47 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
48 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
49 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
50 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
51 inline DescribeTasksRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
52 inline DescribeTasksRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
53 inline DescribeTasksRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetTasks() const{ return m_tasks; }
61 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
62 inline void SetTasks(const Aws::Vector<Aws::String>& value) { m_tasksHasBeenSet = true; m_tasks = value; }
63 inline void SetTasks(Aws::Vector<Aws::String>&& value) { m_tasksHasBeenSet = true; m_tasks = std::move(value); }
64 inline DescribeTasksRequest& WithTasks(const Aws::Vector<Aws::String>& value) { SetTasks(value); return *this;}
65 inline DescribeTasksRequest& WithTasks(Aws::Vector<Aws::String>&& value) { SetTasks(std::move(value)); return *this;}
66 inline DescribeTasksRequest& AddTasks(const Aws::String& value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; }
67 inline DescribeTasksRequest& AddTasks(Aws::String&& value) { m_tasksHasBeenSet = true; m_tasks.push_back(std::move(value)); return *this; }
68 inline DescribeTasksRequest& AddTasks(const char* value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; }
70
72
77 inline const Aws::Vector<TaskField>& GetInclude() const{ return m_include; }
78 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
79 inline void SetInclude(const Aws::Vector<TaskField>& value) { m_includeHasBeenSet = true; m_include = value; }
80 inline void SetInclude(Aws::Vector<TaskField>&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
81 inline DescribeTasksRequest& WithInclude(const Aws::Vector<TaskField>& value) { SetInclude(value); return *this;}
82 inline DescribeTasksRequest& WithInclude(Aws::Vector<TaskField>&& value) { SetInclude(std::move(value)); return *this;}
83 inline DescribeTasksRequest& AddInclude(const TaskField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
84 inline DescribeTasksRequest& AddInclude(TaskField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::String m_cluster;
89 bool m_clusterHasBeenSet = false;
90
92 bool m_tasksHasBeenSet = false;
93
94 Aws::Vector<TaskField> m_include;
95 bool m_includeHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ECS
100} // namespace Aws
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeTasksRequest & WithCluster(Aws::String &&value)
DescribeTasksRequest & WithCluster(const Aws::String &value)
DescribeTasksRequest & AddTasks(Aws::String &&value)
AWS_ECS_API Aws::String SerializePayload() const override
DescribeTasksRequest & AddInclude(const TaskField &value)
virtual const char * GetServiceRequestName() const override
void SetTasks(Aws::Vector< Aws::String > &&value)
DescribeTasksRequest & AddTasks(const Aws::String &value)
DescribeTasksRequest & WithTasks(Aws::Vector< Aws::String > &&value)
void SetTasks(const Aws::Vector< Aws::String > &value)
void SetCluster(const Aws::String &value)
DescribeTasksRequest & AddInclude(TaskField &&value)
const Aws::Vector< TaskField > & GetInclude() const
DescribeTasksRequest & WithCluster(const char *value)
DescribeTasksRequest & WithInclude(const Aws::Vector< TaskField > &value)
DescribeTasksRequest & WithInclude(Aws::Vector< TaskField > &&value)
DescribeTasksRequest & AddTasks(const char *value)
const Aws::Vector< Aws::String > & GetTasks() const
void SetInclude(Aws::Vector< TaskField > &&value)
DescribeTasksRequest & WithTasks(const Aws::Vector< Aws::String > &value)
void SetInclude(const Aws::Vector< TaskField > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector