AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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
38
40
46 inline const Aws::String& GetCluster() const { return m_cluster; }
47 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
48 template<typename ClusterT = Aws::String>
49 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet = true; m_cluster = std::forward<ClusterT>(value); }
50 template<typename ClusterT = Aws::String>
51 DescribeTasksRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetTasks() const { return m_tasks; }
59 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
60 template<typename TasksT = Aws::Vector<Aws::String>>
61 void SetTasks(TasksT&& value) { m_tasksHasBeenSet = true; m_tasks = std::forward<TasksT>(value); }
62 template<typename TasksT = Aws::Vector<Aws::String>>
63 DescribeTasksRequest& WithTasks(TasksT&& value) { SetTasks(std::forward<TasksT>(value)); return *this;}
64 template<typename TasksT = Aws::String>
65 DescribeTasksRequest& AddTasks(TasksT&& value) { m_tasksHasBeenSet = true; m_tasks.emplace_back(std::forward<TasksT>(value)); return *this; }
67
69
74 inline const Aws::Vector<TaskField>& GetInclude() const { return m_include; }
75 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
76 template<typename IncludeT = Aws::Vector<TaskField>>
77 void SetInclude(IncludeT&& value) { m_includeHasBeenSet = true; m_include = std::forward<IncludeT>(value); }
78 template<typename IncludeT = Aws::Vector<TaskField>>
79 DescribeTasksRequest& WithInclude(IncludeT&& value) { SetInclude(std::forward<IncludeT>(value)); return *this;}
80 inline DescribeTasksRequest& AddInclude(TaskField value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
82 private:
83
84 Aws::String m_cluster;
85 bool m_clusterHasBeenSet = false;
86
88 bool m_tasksHasBeenSet = false;
89
90 Aws::Vector<TaskField> m_include;
91 bool m_includeHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace ECS
96} // 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