AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
DescribeTasksRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECSRequest.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/TaskField.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ECS {
17namespace Model {
18
22 public:
23 AWS_ECS_API DescribeTasksRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeTasks"; }
30
31 AWS_ECS_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetCluster() const { return m_cluster; }
42 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
43 template <typename ClusterT = Aws::String>
44 void SetCluster(ClusterT&& value) {
45 m_clusterHasBeenSet = true;
46 m_cluster = std::forward<ClusterT>(value);
47 }
48 template <typename ClusterT = Aws::String>
49 DescribeTasksRequest& WithCluster(ClusterT&& value) {
50 SetCluster(std::forward<ClusterT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetTasks() const { return m_tasks; }
60 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
61 template <typename TasksT = Aws::Vector<Aws::String>>
62 void SetTasks(TasksT&& value) {
63 m_tasksHasBeenSet = true;
64 m_tasks = std::forward<TasksT>(value);
65 }
66 template <typename TasksT = Aws::Vector<Aws::String>>
68 SetTasks(std::forward<TasksT>(value));
69 return *this;
70 }
71 template <typename TasksT = Aws::String>
72 DescribeTasksRequest& AddTasks(TasksT&& value) {
73 m_tasksHasBeenSet = true;
74 m_tasks.emplace_back(std::forward<TasksT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::Vector<TaskField>& GetInclude() const { return m_include; }
86 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
87 template <typename IncludeT = Aws::Vector<TaskField>>
88 void SetInclude(IncludeT&& value) {
89 m_includeHasBeenSet = true;
90 m_include = std::forward<IncludeT>(value);
91 }
92 template <typename IncludeT = Aws::Vector<TaskField>>
93 DescribeTasksRequest& WithInclude(IncludeT&& value) {
94 SetInclude(std::forward<IncludeT>(value));
95 return *this;
96 }
98 m_includeHasBeenSet = true;
99 m_include.push_back(value);
100 return *this;
101 }
103 private:
104 Aws::String m_cluster;
105
107
108 Aws::Vector<TaskField> m_include;
109 bool m_clusterHasBeenSet = false;
110 bool m_tasksHasBeenSet = false;
111 bool m_includeHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace ECS
116} // namespace Aws
DescribeTasksRequest & WithCluster(ClusterT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeTasksRequest & WithInclude(IncludeT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< TaskField > & GetInclude() const
DescribeTasksRequest & AddTasks(TasksT &&value)
AWS_ECS_API DescribeTasksRequest()=default
const Aws::Vector< Aws::String > & GetTasks() const
DescribeTasksRequest & WithTasks(TasksT &&value)
DescribeTasksRequest & AddInclude(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