AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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
25 public:
26 AWS_ECS_API DescribeTasksRequest() = default;
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
39
44 inline const Aws::String& GetCluster() const { return m_cluster; }
45 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
46 template <typename ClusterT = Aws::String>
47 void SetCluster(ClusterT&& value) {
48 m_clusterHasBeenSet = true;
49 m_cluster = std::forward<ClusterT>(value);
50 }
51 template <typename ClusterT = Aws::String>
52 DescribeTasksRequest& WithCluster(ClusterT&& value) {
53 SetCluster(std::forward<ClusterT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<Aws::String>& GetTasks() const { return m_tasks; }
63 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
64 template <typename TasksT = Aws::Vector<Aws::String>>
65 void SetTasks(TasksT&& value) {
66 m_tasksHasBeenSet = true;
67 m_tasks = std::forward<TasksT>(value);
68 }
69 template <typename TasksT = Aws::Vector<Aws::String>>
71 SetTasks(std::forward<TasksT>(value));
72 return *this;
73 }
74 template <typename TasksT = Aws::String>
75 DescribeTasksRequest& AddTasks(TasksT&& value) {
76 m_tasksHasBeenSet = true;
77 m_tasks.emplace_back(std::forward<TasksT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::Vector<TaskField>& GetInclude() const { return m_include; }
89 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
90 template <typename IncludeT = Aws::Vector<TaskField>>
91 void SetInclude(IncludeT&& value) {
92 m_includeHasBeenSet = true;
93 m_include = std::forward<IncludeT>(value);
94 }
95 template <typename IncludeT = Aws::Vector<TaskField>>
96 DescribeTasksRequest& WithInclude(IncludeT&& value) {
97 SetInclude(std::forward<IncludeT>(value));
98 return *this;
99 }
101 m_includeHasBeenSet = true;
102 m_include.push_back(value);
103 return *this;
104 }
106 private:
107 Aws::String m_cluster;
108
110
111 Aws::Vector<TaskField> m_include;
112 bool m_clusterHasBeenSet = false;
113 bool m_tasksHasBeenSet = false;
114 bool m_includeHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace ECS
119} // 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